public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Michael Lawnick <ml.lawnick-Mmb7MZpHnFY@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Q: Where to initialize class attribute of adapter
Date: Tue, 14 Apr 2009 10:28:20 +0200	[thread overview]
Message-ID: <20090414102820.07b930b3@hyperion.delvare> (raw)
In-Reply-To: <49E43E3E.1020200-Mmb7MZpHnFY@public.gmane.org>

Hallo Michael,

On Tue, 14 Apr 2009 09:41:50 +0200, Michael Lawnick wrote:
> on update to kernel to 2.6.29 I've run into the issue that I2C adapter's
> class attribute in struct i2c_adapter wasn't set and so no client driver
> could be loaded.
> Currently I initialize .class in the struct declaration part, but this
> is main code for all boards that use this adapter :-( I'm now searching
> for a place where to do it in a board specific way like device tree.
> Any suggestions?

Which architecture is this, which bus driver? I think I would pass the
class value as platform data to the i2c bus driver, and in this driver
copy the value from platform data to struct i2c_adapter.

-- 
Jean Delvare

  parent reply	other threads:[~2009-04-14  8:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14  7:41 Q: Where to initialize class attribute of adapter Michael Lawnick
     [not found] ` <49E43E3E.1020200-Mmb7MZpHnFY@public.gmane.org>
2009-04-14  8:28   ` Jean Delvare [this message]
     [not found]     ` <20090414102820.07b930b3-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-14  9:30       ` Michael Lawnick
     [not found]         ` <49E457C2.1010706-Mmb7MZpHnFY@public.gmane.org>
2009-04-15 12:53           ` Jean Delvare
     [not found]             ` <20090415145330.0ae9f975-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-16  9:11               ` Michael Lawnick

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=20090414102820.07b930b3@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ml.lawnick-Mmb7MZpHnFY@public.gmane.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox