Skip to contentSkip to conversation

i2c-gpio and boards conversions to GPIO descriptors

DISCUSSION Simon Guinot 2 participants 3 messages May 25, 2018 – May 26, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Linus,

I think your patch b2e63555592f "i2c: gpio: Convert to use descriptors" may have broken i2c-gpio support for some boards using old fashion platform_device declarations.

Indeed when an "i2c-gpio" platform_device is registered with a fixed id e.g. 0, then I think the device name becomes "i2c-gpio.0". And then this won't match a lookup table registered with an "i2c-gpio" dev_id.

Please double check this :)

Simon

#1 lore raw
Quoted 1 line · Simon Guinot

Hi Linus,

Forwarding to some mailing lists I missed in a first place.

Quoted 5 lines

I think your patch b2e63555592f "i2c: gpio: Convert to use descriptors" may have broken i2c-gpio support for some boards using old fashion platform_device declarations.

Quoted 7 lines

Indeed when an "i2c-gpio" platform_device is registered with a fixed id e.g. 0, then I think the device name becomes "i2c-gpio.0". And then this won't match a lookup table registered with an "i2c-gpio" dev_id.

Please double check this :)

Simon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180525/4bcae35d/attachment.sig>

#2 lore raw
In reply to Simon Guinot
Quoted 9 lines · Simon Guinot

Hi Linus,

I think your patch b2e63555592f "i2c: gpio: Convert to use descriptors" may have broken i2c-gpio support for some boards using old fashion platform_device declarations.

Indeed when an "i2c-gpio" platform_device is registered with a fixed id e.g. 0, then I think the device name becomes "i2c-gpio.0". And then this won't match a lookup table registered with an "i2c-gpio" dev_id.

Yeah what a mess, I'm sending patches to fix it up, the ARM patch already sent, I will send a separate one for the MIPS machines.

Sorry for the mess! :(

Yours,
Linus Walleij