* [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
@ 2009-05-06 7:32 Michael Abbott
[not found] ` <Pine.LNX.4.64.0905060829580.24668-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Michael Abbott @ 2009-05-06 7:32 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA; +Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA
All the i2c pxa error messages should probably be KERN_DEBUG
At least, all the printk messages should have a log level specfied,
and KERN_DEBUG seems appropriate.
Signed-off-by: Michael Abbott <michael.abbott-l+PWtdWbHAs2EctHIo1CcQ@public.gmane.org>
---
drivers/i2c/busses/i2c-pxa.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index bdb1f75..8cb9160 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
{
unsigned int i;
- printk("i2c: error: %s\n", why);
- printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
+ printk(KERN_DEBUG "i2c: error: %s\n", why);
+ printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
- printk("i2c: ICR: %08x ISR: %08x\n"
- "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
+ printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
+ KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
for (i = 0; i < i2c->irqlogidx; i++)
printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
printk("\n");
--
1.6.1.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <Pine.LNX.4.64.0905060829580.24668-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-06 8:22 ` Jean Delvare
[not found] ` <20090506102202.73d6045d-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Jean Delvare @ 2009-05-06 8:22 UTC (permalink / raw)
To: Michael Abbott
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Wed, 6 May 2009 08:32:09 +0100 (BST), Michael Abbott wrote:
> All the i2c pxa error messages should probably be KERN_DEBUG
>
> At least, all the printk messages should have a log level specfied,
> and KERN_DEBUG seems appropriate.
>
> Signed-off-by: Michael Abbott <michael.abbott-l+PWtdWbHAs2EctHIo1CcQ@public.gmane.org>
> ---
> drivers/i2c/busses/i2c-pxa.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> index bdb1f75..8cb9160 100644
> --- a/drivers/i2c/busses/i2c-pxa.c
> +++ b/drivers/i2c/busses/i2c-pxa.c
> @@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
> static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
> {
> unsigned int i;
> - printk("i2c: error: %s\n", why);
> - printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> + printk(KERN_DEBUG "i2c: error: %s\n", why);
> + printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
> - printk("i2c: ICR: %08x ISR: %08x\n"
> - "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> + printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
> + KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> for (i = 0; i < i2c->irqlogidx; i++)
> printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> printk("\n");
Already fixed in Linus' tree:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=154d22b04ae1741c5fcfd5d747b813a9a279abff#patch4
--
Jean Delvare
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <20090506102202.73d6045d-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2009-05-11 6:38 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905081102060.14384-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 10:11 ` 伊泽
0 siblings, 2 replies; 12+ messages in thread
From: Michael Abbott @ 2009-05-11 6:38 UTC (permalink / raw)
To: Jean Delvare
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Wed, 6 May 2009, Jean Delvare wrote:
> On Wed, 6 May 2009 08:32:09 +0100 (BST), Michael Abbott wrote:
> > All the i2c pxa error messages should probably be KERN_DEBUG
> >
> > At least, all the printk messages should have a log level specfied,
> > and KERN_DEBUG seems appropriate.
> >
> > Signed-off-by: Michael Abbott <michael.abbott-l+PWtdWbHAs2EctHIo1CcQ@public.gmane.org>
> > ---
> > drivers/i2c/busses/i2c-pxa.c | 8 ++++----
> > 1 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> > index bdb1f75..8cb9160 100644
> > --- a/drivers/i2c/busses/i2c-pxa.c
> > +++ b/drivers/i2c/busses/i2c-pxa.c
> > @@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
> > static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
> > {
> > unsigned int i;
> > - printk("i2c: error: %s\n", why);
> > - printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > + printk(KERN_DEBUG "i2c: error: %s\n", why);
> > + printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
> > - printk("i2c: ICR: %08x ISR: %08x\n"
> > - "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > + printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
> > + KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > for (i = 0; i < i2c->irqlogidx; i++)
> > printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> > printk("\n");
>
> Already fixed in Linus' tree:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=154d22b04ae1741c5fcfd5d747b813a9a279abff#patch4
Now this is very odd. I'd assumed the error messages I was getting were
just noise, but the commit you point me to uses KERN_ERR instead -- and so
I get a brief storm of these messages on boot on my target:
[ 20.667923] i2c: error: exhausted retries
[ 20.671962] i2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
[ 20.677113] i2c: ICR: 000007e0 ISR: 00000002
[ 20.677128] i2c: log: [00000446:000007e0]
This is repeated nine times in total with exactly the same numbers. Any
thoughts as to what this means? Other than these messages on startup my
I2C sensors seem to work perfectly well.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <Pine.LNX.4.64.0905081102060.14384-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-11 8:56 ` Jean Delvare
0 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-05-11 8:56 UTC (permalink / raw)
To: Michael Abbott
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Mon, 11 May 2009 07:38:59 +0100 (BST), Michael Abbott wrote:
> On Wed, 6 May 2009, Jean Delvare wrote:
> > On Wed, 6 May 2009 08:32:09 +0100 (BST), Michael Abbott wrote:
> > > All the i2c pxa error messages should probably be KERN_DEBUG
> > >
> > > At least, all the printk messages should have a log level specfied,
> > > and KERN_DEBUG seems appropriate.
> > >
> > > Signed-off-by: Michael Abbott <michael.abbott-l+PWtdWbHAs2EctHIo1CcQ@public.gmane.org>
> > > ---
> > > drivers/i2c/busses/i2c-pxa.c | 8 ++++----
> > > 1 files changed, 4 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> > > index bdb1f75..8cb9160 100644
> > > --- a/drivers/i2c/busses/i2c-pxa.c
> > > +++ b/drivers/i2c/busses/i2c-pxa.c
> > > @@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
> > > static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
> > > {
> > > unsigned int i;
> > > - printk("i2c: error: %s\n", why);
> > > - printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > > + printk(KERN_DEBUG "i2c: error: %s\n", why);
> > > + printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > > i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
> > > - printk("i2c: ICR: %08x ISR: %08x\n"
> > > - "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > > + printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
> > > + KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > > for (i = 0; i < i2c->irqlogidx; i++)
> > > printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> > > printk("\n");
> >
> > Already fixed in Linus' tree:
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=154d22b04ae1741c5fcfd5d747b813a9a279abff#patch4
>
> Now this is very odd. I'd assumed the error messages I was getting were
> just noise, but the commit you point me to uses KERN_ERR instead -- and so
> I get a brief storm of these messages on boot on my target:
>
> [ 20.667923] i2c: error: exhausted retries
> [ 20.671962] i2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
> [ 20.677113] i2c: ICR: 000007e0 ISR: 00000002
> [ 20.677128] i2c: log: [00000446:000007e0]
>
> This is repeated nine times in total with exactly the same numbers. Any
> thoughts as to what this means? Other than these messages on startup my
> I2C sensors seem to work perfectly well.
I don't know anything about the i2c-pxa driver, sorry.
--
Jean Delvare
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
2009-05-11 6:38 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905081102060.14384-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-11 10:11 ` 伊泽
[not found] ` <fd6b62c10905110311w6350828tf90d9c699b73fe30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 12+ messages in thread
From: 伊泽 @ 2009-05-11 10:11 UTC (permalink / raw)
To: Michael Abbott; +Cc: Jean Delvare, linux-i2c, linux-kernel
2009/5/11 Michael Abbott <michael@araneidae.co.uk>
>
> On Wed, 6 May 2009, Jean Delvare wrote:
> > On Wed, 6 May 2009 08:32:09 +0100 (BST), Michael Abbott wrote:
> > > All the i2c pxa error messages should probably be KERN_DEBUG
> > >
> > > At least, all the printk messages should have a log level specfied,
> > > and KERN_DEBUG seems appropriate.
> > >
> > > Signed-off-by: Michael Abbott <michael.abbott@diamond.ac.uk>
> > > ---
> > > drivers/i2c/busses/i2c-pxa.c | 8 ++++----
> > > 1 files changed, 4 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> > > index bdb1f75..8cb9160 100644
> > > --- a/drivers/i2c/busses/i2c-pxa.c
> > > +++ b/drivers/i2c/busses/i2c-pxa.c
> > > @@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
> > > static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
> > > {
> > > unsigned int i;
> > > - printk("i2c: error: %s\n", why);
> > > - printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > > + printk(KERN_DEBUG "i2c: error: %s\n", why);
> > > + printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> > > i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
> > > - printk("i2c: ICR: %08x ISR: %08x\n"
> > > - "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > > + printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
> > > + KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> > > for (i = 0; i < i2c->irqlogidx; i++)
> > > printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> > > printk("\n");
> >
> > Already fixed in Linus' tree:
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=154d22b04ae1741c5fcfd5d747b813a9a279abff#patch4
>
> Now this is very odd. I'd assumed the error messages I was getting were
> just noise, but the commit you point me to uses KERN_ERR instead -- and so
> I get a brief storm of these messages on boot on my target:
>
> [ 20.667923] i2c: error: exhausted retries
> [ 20.671962] i2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
> [ 20.677113] i2c: ICR: 000007e0 ISR: 00000002
> [ 20.677128] i2c: log: [00000446:000007e0]
>
> This is repeated nine times in total with exactly the same numbers. Any
> thoughts as to what this means? Other than these messages on startup my
> I2C sensors seem to work perfectly well.
If all error messages seem like "exhausted retries",not "timeout or
master error",there maybe some operation conflicts,and i2c controller
cannot succeed operateing after max times retry. And which mode do
your i2c work? Poll or Interrupt?
thanks
--wxc200
> --
> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <fd6b62c10905110311w6350828tf90d9c699b73fe30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-05-11 10:31 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111126020.20970-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Michael Abbott @ 2009-05-11 10:31 UTC (permalink / raw)
To: 伊泽
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Linux Kernel Mailing List
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1550 bytes --]
On Mon, 11 May 2009, ÒÁÔó wrote:
> 2009/5/11 Michael Abbott <michael-W/Bzo8D1sxa8qtKVGud/9w@public.gmane.org>
> > Now this is very odd. I'd assumed the error messages I was getting were
> > just noise, but the commit you point me to uses KERN_ERR instead -- and so
> > I get a brief storm of these messages on boot on my target:
> >
> > [ 20.667923] i2c: error: exhausted retries
> > [ 20.671962] i2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
> > [ 20.677113] i2c: ICR: 000007e0 ISR: 00000002
> > [ 20.677128] i2c: log: [00000446:000007e0]
> >
> > This is repeated nine times in total with exactly the same numbers. Any
> > thoughts as to what this means? Other than these messages on startup my
> > I2C sensors seem to work perfectly well.
> If all error messages seem like "exhausted retries",not "timeout or
> master error",there maybe some operation conflicts,and i2c controller
> cannot succeed operateing after max times retry. And which mode do
> your i2c work? Poll or Interrupt?
Well, to be honest I don't actually know (I've inherited the driver and I
haven't figured out how the I2C drivers work), but here's how the i2c is
initialised:
static struct i2c_pxa_platform_data xcep_i2c_platform_data = {
.class = I2C_CLASS_HWMON
};
...
pxa_set_i2c_info(&xcep_i2c_platform_data);
This is called in the .init_machine method, and the target system is a
PXA255.
However, after the error messages on startup, all the sensors seem to be
detected and seem to be operating normally.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <Pine.LNX.4.64.0905111126020.20970-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-11 11:28 ` Mark Brown
[not found] ` <20090511112801.GA20283-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Mark Brown @ 2009-05-11 11:28 UTC (permalink / raw)
To: Michael Abbott
Cc: ????, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Linux Kernel Mailing List
On Mon, May 11, 2009 at 11:31:51AM +0100, Michael Abbott wrote:
> static struct i2c_pxa_platform_data xcep_i2c_platform_data = {
> .class = I2C_CLASS_HWMON
> };
> ...
> pxa_set_i2c_info(&xcep_i2c_platform_data);
> This is called in the .init_machine method, and the target system is a
> PXA255.
> However, after the error messages on startup, all the sensors seem to be
> detected and seem to be operating normally.
These errors occur when attempting to talk to non-existant devices which
is almost certainly going to happen with the class based device probing
since the kernel will probe for each device at each possible address on
each I2C bus.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <20090511112801.GA20283-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2009-05-11 12:16 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111314450.30347-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 13:29 ` 伊泽
1 sibling, 1 reply; 12+ messages in thread
From: Michael Abbott @ 2009-05-11 12:16 UTC (permalink / raw)
To: Mark Brown
Cc: ????, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Linux Kernel Mailing List
On Mon, 11 May 2009, Mark Brown wrote:
> On Mon, May 11, 2009 at 11:31:51AM +0100, Michael Abbott wrote:
>
> > static struct i2c_pxa_platform_data xcep_i2c_platform_data = {
> > .class = I2C_CLASS_HWMON
> > };
>
> > ...
> > pxa_set_i2c_info(&xcep_i2c_platform_data);
>
> > This is called in the .init_machine method, and the target system is a
> > PXA255.
>
> > However, after the error messages on startup, all the sensors seem to be
> > detected and seem to be operating normally.
>
> These errors occur when attempting to talk to non-existant devices which
> is almost certainly going to happen with the class based device probing
> since the kernel will probe for each device at each possible address on
> each I2C bus.
That makes sense.
However, then, does it make sense for the PXA i2c bus prober to be calling
the "scream blue murder" routine in this frankly routine case? I guess it
could just say "no device found at address xx"
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <Pine.LNX.4.64.0905111314450.30347-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-11 12:23 ` Mark Brown
0 siblings, 0 replies; 12+ messages in thread
From: Mark Brown @ 2009-05-11 12:23 UTC (permalink / raw)
To: Michael Abbott
Cc: ????, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Linux Kernel Mailing List
On Mon, May 11, 2009 at 01:16:38PM +0100, Michael Abbott wrote:
> However, then, does it make sense for the PXA i2c bus prober to be calling
> the "scream blue murder" routine in this frankly routine case? I guess it
> could just say "no device found at address xx"
You should really convert your board to specify explicitly which chips
are on the board rather than using the old style probe routines.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <20090511112801.GA20283-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2009-05-11 12:16 ` Michael Abbott
@ 2009-05-11 13:29 ` 伊泽
[not found] ` <fd6b62c10905110629w6c9a641fr878351fb9217a32e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 12+ messages in thread
From: 伊泽 @ 2009-05-11 13:29 UTC (permalink / raw)
To: Mark Brown
Cc: Michael Abbott, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Linux Kernel Mailing List
2009/5/11 Mark Brown <broonie-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>:
> On Mon, May 11, 2009 at 11:31:51AM +0100, Michael Abbott wrote:
>
>> static struct i2c_pxa_platform_data xcep_i2c_platform_data = {
>> .class = I2C_CLASS_HWMON
>> };
>
>> ...
>> pxa_set_i2c_info(&xcep_i2c_platform_data);
>
>> This is called in the .init_machine method, and the target system is a
>> PXA255.
>
>> However, after the error messages on startup, all the sensors seem to be
>> detected and seem to be operating normally.
>
> These errors occur when attempting to talk to non-existant devices which
> is almost certainly going to happen with the class based device probing
> since the kernel will probe for each device at each possible address on
> each I2C bus.
>
that happen when the device driver registered but the hardware doesnot
exist.i once met this
when my camera driver could not find the hardware camera.
thanks
--wxc200
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <fd6b62c10905110629w6c9a641fr878351fb9217a32e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-05-11 14:01 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111458290.6308-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Michael Abbott @ 2009-05-11 14:01 UTC (permalink / raw)
To: 伊泽
Cc: Mark Brown, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Linux Kernel Mailing List
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1470 bytes --]
On Mon, 11 May 2009, ÒÁÔó wrote:
> 2009/5/11 Mark Brown <broonie-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>:
> > On Mon, May 11, 2009 at 11:31:51AM +0100, Michael Abbott wrote:
> >
> >> static struct i2c_pxa_platform_data xcep_i2c_platform_data = {
> >> .class = I2C_CLASS_HWMON
> >> };
> >
> >> ...
> >> pxa_set_i2c_info(&xcep_i2c_platform_data);
> >
> >> This is called in the .init_machine method, and the target system is a
> >> PXA255.
> >
> >> However, after the error messages on startup, all the sensors seem to be
> >> detected and seem to be operating normally.
> >
> > These errors occur when attempting to talk to non-existant devices
> > which is almost certainly going to happen with the class based device
> > probing since the kernel will probe for each device at each possible
> > address on each I2C bus.
> that happen when the device driver registered but the hardware doesnot
> exist.i once met this when my camera driver could not find the hardware
> camera.
Fair enough. I have a bit of a challenge to specify the precise list of
I2C devices at the board level, as the board support is for a CPU module
with the I2C bus off-board ... and clearly I can live with the error
messages, anyway.
Still, I think it would make more sense for these to be one-liners; I
guess routine probing failures ought to be reported in a slightly
different way. I'll see if I can figure out a sensible patch.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
[not found] ` <Pine.LNX.4.64.0905111458290.6308-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
@ 2009-05-11 14:15 ` Wolfram Sang
0 siblings, 0 replies; 12+ messages in thread
From: Wolfram Sang @ 2009-05-11 14:15 UTC (permalink / raw)
To: Michael Abbott
Cc: 伊泽, Mark Brown, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
> Still, I think it would make more sense for these to be one-liners; I
> guess routine probing failures ought to be reported in a slightly
> different way. I'll see if I can figure out a sensible patch.
You might want to have a look here as I also noted once that the
pxa-driver is a bit too talkative when writing to eeproms:
http://www.mail-archive.com/linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg00324.html
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-05-11 14:15 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 7:32 [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report Michael Abbott
[not found] ` <Pine.LNX.4.64.0905060829580.24668-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-06 8:22 ` Jean Delvare
[not found] ` <20090506102202.73d6045d-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-05-11 6:38 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905081102060.14384-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 8:56 ` Jean Delvare
2009-05-11 10:11 ` 伊泽
[not found] ` <fd6b62c10905110311w6350828tf90d9c699b73fe30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-11 10:31 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111126020.20970-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 11:28 ` Mark Brown
[not found] ` <20090511112801.GA20283-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2009-05-11 12:16 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111314450.30347-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 12:23 ` Mark Brown
2009-05-11 13:29 ` 伊泽
[not found] ` <fd6b62c10905110629w6c9a641fr878351fb9217a32e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-11 14:01 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111458290.6308-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 14:15 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).