Thread (6 messages) 6 messages, 2 authors, 2021-06-03

Re: [PATCH] i2c: bcm-iproc: Add i2c recovery support

From: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Date: 2021-06-02 02:32:24
Also in: linux-arm-kernel, lkml

On 2/06/21 9:03 am, Ray Jui wrote:
On 5/30/2021 3:56 PM, Chris Packham wrote:
quoted
From: Richard Laing <redacted>

The bcm-iproc controller can put the SDA/SCL lines into bit-bang mode,
make use of this to support i2c bus recovery.

Signed-off-by: Richard Laing <redacted>
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
<snip>
+
quoted
+static struct i2c_bus_recovery_info bcm_iproc_recovery_info = {
static const struct ...
The kernel test bot doesn't like the suggestion.

 >> drivers/i2c/busses/i2c-bcm-iproc.c:1264:26: error: assigning to 
'struct i2c_bus_recovery_info *' from 'const struct 
i2c_bus_recovery_info *' discards qualifiers 
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]

            adap->bus_recovery_info = &bcm_iproc_recovery_info;
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~

I can see why. Are you happy for me to drop the const in v3? Or perhaps 
you have a better suggestion.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help