From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Jon Ringle <jon-7zJyie9iPacdnm+yROfE0A@public.gmane.org>
Cc: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
Alexander Bigga <ab-g5CePrrZ5ROELgA04lAiVw@public.gmane.org>,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [rtc-linux] Re: i2c/rtc init dependency problem
Date: Fri, 25 Sep 2009 20:45:33 +0200 [thread overview]
Message-ID: <20090925204533.69681f35@hyperion.delvare> (raw)
In-Reply-To: <152584230909251138r7051a279k71e10ac778e28742-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 25 Sep 2009 14:38:39 -0400, Jon Ringle wrote:
> Alexander:
>
> On Fri, Sep 25, 2009 at 10:49 AM, Jon Ringle <jon-7zJyie9iPacdnm+yROfE0A@public.gmane.org> wrote:
> > However, it still does not work with your patch. In the dump below I see:
> > [ 0.250000] i2c-core: driver [dummy] registered
> > ...
> > [ 0.290000] i2c-adapter i2c-0: adapter [IOP3xx-I2C] registered
> > ...
> > [ 3.780000] i2c-core: driver [rtc-m41t80] registered
> [Note: missing i2c-adapter i2c-0 debug msgs expected when rtc-m41t80 probe]
> > [ 3.790000] i2c /dev entries driver
> > [ 3.790000] i2c-core: driver [dev_driver] registered
> > [ 3.800000] i2c-dev: adapter [IOP3xx-I2C] registered as minor 0
> > [ 3.800000] i2c-core: driver [lm75] registered
> > [ 3.830000] i2c-adapter i2c-0: found normal entry for adapter 0, addr 0x48
> > ...
> > [ 4.050000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
>
> I think the problem is that rtc-m41t80 does not provide either of the following:
> struct i2c_driver: detect and address_data (both are null)
> as required by i2c_detect()
This should be OK. detect and address_data are optional and only needed
for drivers which autodetect their devices. The rtc-m41t80 probably
doesn't want to do this. The device should be declared by the arch or
platform.
> -> called by __attach_adapter()
> -> called by i2c_register_driver()
> -> called by i2c_add_driver()
> -> called by m41t80_rtc_init()
>
> *or*
> struct i2c_driver: attach_adapter (null)
This legacy method no longer exists, so I certainly hope it isn't
implemented ;)
> as required by __attach_adapter()
> -> called by i2c_register_driver()
> -> called by i2c_add_driver()
> -> called by m41t80_rtc_init()
--
Jean Delvare
next prev parent reply other threads:[~2009-09-25 18:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <152584230909240758h674ffe3cw4d5e6baef5efc9b8@mail.gmail.com>
[not found] ` <152584230909240758h674ffe3cw4d5e6baef5efc9b8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-24 15:19 ` [rtc-linux] i2c/rtc init dependency problem Wolfram Sang
[not found] ` <8b192c78-6ebf-42ec-b334-756f56cc5400@g6g2000vbr.googlegroups.com>
[not found] ` <8b192c78-6ebf-42ec-b334-756f56cc5400-kR2RjjGg49OEYCl0FQ7J0FYGCWtFR9XvQQ4Iyu8u01E@public.gmane.org>
2009-09-25 6:58 ` [rtc-linux] " Wolfram Sang
[not found] ` <20090925065843.GA4125-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-09-25 14:49 ` Jon Ringle
[not found] ` <152584230909250749w305b5202tba55bfedd742fea9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-25 18:38 ` Jon Ringle
[not found] ` <152584230909251138r7051a279k71e10ac778e28742-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-25 18:45 ` Jean Delvare [this message]
[not found] ` <20090925204533.69681f35-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-09-25 19:13 ` Jon Ringle
[not found] ` <152584230909251213l8f9663eo39151206e9ec8cd4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-25 20:19 ` Jon Ringle
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=20090925204533.69681f35@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=ab-g5CePrrZ5ROELgA04lAiVw@public.gmane.org \
--cc=jon-7zJyie9iPacdnm+yROfE0A@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@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 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.