All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: linux-i2c@vger.kernel.org,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 3/3] i2c: Export i2c_init_adapter() for use by drivers in early initialisation
Date: Tue, 23 Aug 2016 23:33:09 +0200	[thread overview]
Message-ID: <20160823213308.GG20872@katana> (raw)
In-Reply-To: <1465462435-5240-3-git-send-email-chris@chris-wilson.co.uk>

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

On Thu, Jun 09, 2016 at 09:53:55AM +0100, Chris Wilson wrote:
> Some drivers require use of their i2c adapter long before they can add
> the adapter to userspace (i.e. before they establish and expose their
> objects in the sysfs kobject tree). Currently i2c_add_adapter()
> registers the adapter with userspace, which causes a conflict in the
> ordering of the driver's initialisation. Exporting i2c_init_adapter()
> allows for the i2c adapter to be used early in the initialisation in
> order to detect whether the device the adapter is attached to is even
> present. The drivers still need to call i2c_add_adapter() (or
> i2c_add_number_adapter()) as per normal to complete their registration.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: linux-i2c@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org

Do you have a patch for some i2c driver making use of this change?


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-08-23 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-09  8:53 [PATCH 1/3] i2c: Split adapter initialisation from registers Chris Wilson
2016-06-09  8:53 ` Chris Wilson
2016-06-09  8:53 ` [PATCH 2/3] i2c: Mark adapter as initialised Chris Wilson
2016-06-09  8:53   ` Chris Wilson
2016-06-09  8:53 ` [PATCH 3/3] i2c: Export i2c_init_adapter() for use by drivers in early initialisation Chris Wilson
2016-06-09  8:53   ` Chris Wilson
2016-08-23 21:33   ` 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=20160823213308.GG20872@katana \
    --to=wsa@the-dreams.de \
    --cc=chris@chris-wilson.co.uk \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ville.syrjala@linux.intel.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.