Re: [PATCH v3 1/1] i2c: core: support no-detect property

From: Wolfram Sang
Date: Wed Oct 19 2022 - 16:24:14 EST


On Fri, Apr 29, 2022 at 03:07:49PM +0200, Vincent Whitchurch wrote:
> If the devicetree specifies the no-detect property (documented in
> dt-schema [0]) for the I2C bus, we know that there are no other devices
> on the bus other than the ones listed in the devicetree, so avoid
> calling drivers' detect callbacks and wasting time looking for devices
> which do not exist.

Setting 'classes' in the adapter struct to 0 (actually to
'I2C_CLASS_DEPRECATED' for a while) is not good enough? Or do you need
class based instantiation on some busses?

Attachment: signature.asc
Description: PGP signature