Thread (17 messages) 17 messages, 5 authors, 2017-08-29

Re: [PATCH 1/2] i2c: core: Allow the driver to override the default i2c_bus match behavior

From: Wolfram Sang <hidden>
Date: 2017-08-14 21:21:17
Also in: linux-i2c

On Mon, Aug 14, 2017 at 10:13:23PM +0200, Hans de Goede wrote:
Hi,

On 22-07-17 20:55, Hans de Goede wrote:
quoted
Some ACPI devices report multiple ids for a single i2c_client, while not
really implementing the hw-interface asociated with some of these ids.

For some of these devices calling probe and having probe fail with
-ENODEV is a problem in itself as this causes the device to be
powered-up and down again (causes its PS0 and PS3 ACPI methods to be
executed) which puts some devices in an unusable state.

This commit adds a match callback to i2c_driver, allowing drivers to
override the default i2c_bus match behavior and tell the core they
are not the right driver for the device, avoiding i2c_bus_type.probe
getting called, avoiding the undesirable power up / down cycle.

Signed-off-by: Hans de Goede <redacted>
What is the status of this series ? I thought there was agreement
on merging this through the i2c (wsa/linux.git) tree ?
Yes, but I need to review the I2C core changes first.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help