All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@kernel.org>
To: Vincent Whitchurch <vincent.whitchurch@axis.com>
Cc: kernel@axis.com, linux-i2c@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/1] i2c: core: support no-detect property
Date: Wed, 19 Oct 2022 22:24:00 +0200	[thread overview]
Message-ID: <Y1Bc4AjlZPs512Ao@shikoro> (raw)
In-Reply-To: <20220429130749.3032462-2-vincent.whitchurch@axis.com>

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2022-10-19 20:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-29 13:07 [PATCH v3 0/1] i2c: Allow disabling auto detection via devicetree Vincent Whitchurch
2022-04-29 13:07 ` [PATCH v3 1/1] i2c: core: support no-detect property Vincent Whitchurch
2022-10-19 20:24   ` Wolfram Sang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y1Bc4AjlZPs512Ao@shikoro \
    --to=wsa@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@axis.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vincent.whitchurch@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.