# 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 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/08/8930302
- Thread: https://ratatoskr.run/linux-input/2017/07/8930268/t.md

```text
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:
> >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

- [signature.asc](https://ratatoskr.run/linux-input/2017/08/8930302/attachment/0) (application/pgp-signature, 833 bytes)
