linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "mmc_host mmc0: WARNING: IMR=0x00004040" on debug console
@ 2012-01-19 14:04 Thomas Bechtold
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Bechtold @ 2012-01-19 14:04 UTC (permalink / raw)
  To: linux-mmc

Hi,

i updated from kernel 2.6.35.3 (from kernel.org) to kernel 3.2.1 (from 
kernel.org) on arm (at91stamp9G20) and have a MMC card which can be 
completly disabled with a hardware switch. The mmc card is then used by 
another processor without linux. That works very well.
My question is, why i get always the message "mmc_host mmc0: WARNING: 
IMR=0x00004040" after i removed the mmc card slot once. That's a new 
behavior with 3.2.1. I had no message with 2.6.35.3.
When the mmc slot returns to linux, the message stops and i get:

mmc_host mmc0: WARNING: IMR=0x00004040
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address b368
mmcblk0: mmc0:b368 H1697 1.91 GiB
  mmcblk0: unknown partition table

That's fine.

Should i just ignore the message (or simple patch 
driver/mmc/host/atmel_mci.c)?

TIA


Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* "mmc_host mmc0: WARNING: IMR=0x00004040" on debug console
@ 2012-01-19 16:11 Thomas Bechtold
  2012-02-04 22:54 ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Bechtold @ 2012-01-19 16:11 UTC (permalink / raw)
  To: linux-mmc

Hi,

i updated from kernel 2.6.35.3 (from kernel.org) to kernel 3.2.1 (from 
kernel.org) on arm (at91stamp9G20) and have a MMC card which can be 
completly disabled with a hardware switch. The mmc card is then used by 
another processor without linux. That works very well.
My question is, why i get always the message "mmc_host mmc0: WARNING: 
IMR=0x00004040" after i removed the mmc card slot once. That's a new 
behavior with 3.2.1. I had no message with 2.6.35.3.
When the mmc slot returns to linux, the message stops and i get:

mmc_host mmc0: WARNING: IMR=0x00004040
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address b368
mmcblk0: mmc0:b368 H1697 1.91 GiB
  mmcblk0: unknown partition table

That's fine.

Should i just ignore the message (or simple patch 
driver/mmc/host/atmel_mci.c)?

TIA


Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "mmc_host mmc0: WARNING: IMR=0x00004040" on debug console
  2012-01-19 16:11 "mmc_host mmc0: WARNING: IMR=0x00004040" on debug console Thomas Bechtold
@ 2012-02-04 22:54 ` Chris Ball
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2012-02-04 22:54 UTC (permalink / raw)
  To: Thomas Bechtold; +Cc: linux-mmc, Nicolas Ferre, Ludovic Desroches

Hi, adding some recent atmel-mci.c committers to the thread,

On Thu, Jan 19 2012, Thomas Bechtold wrote:
> i updated from kernel 2.6.35.3 (from kernel.org) to kernel 3.2.1 (from 
> kernel.org) on arm (at91stamp9G20) and have a MMC card which can be 
> completly disabled with a hardware switch. The mmc card is then used by 
> another processor without linux. That works very well.
> My question is, why i get always the message "mmc_host mmc0: WARNING: 
> IMR=0x00004040" after i removed the mmc card slot once. That's a new 
> behavior with 3.2.1. I had no message with 2.6.35.3.
> When the mmc slot returns to linux, the message stops and i get:
>
> mmc_host mmc0: WARNING: IMR=0x00004040
> mmc0: host does not support reading read-only switch. assuming write-enable.
> mmc0: new SD card at address b368
> mmcblk0: mmc0:b368 H1697 1.91 GiB
>   mmcblk0: unknown partition table
>
> That's fine.
>
> Should i just ignore the message (or simple patch 
> driver/mmc/host/atmel_mci.c)?

It would be good to leave the warning in for situations that we still
don't expect, and it looks like IMR=0x00004040 decodes to ATMCI_ENDTX
and ATMCI_TXBUFE, so you could try something like:

        if (iflags & ~(ATMCI_SDIOIRQA | ATMCI_SDIOIRQB)) {
                /* Interrupts with ENDTX and TXBUFE set are seen
                 * with at91stamp9G20 hardware when switching the
                 * processor that MMC is attached to, so don't warn
                 * if they are set. 
                 */
                if (iflags & ~(ATMCI_ENDTX | ATMCI_TXBUFE)) {
                        dev_warn(&slot->mmc->class_dev, "WARNING: IMR="
                                 "0x%08x\n", iflags);
                }
        }

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-04 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-19 16:11 "mmc_host mmc0: WARNING: IMR=0x00004040" on debug console Thomas Bechtold
2012-02-04 22:54 ` Chris Ball
  -- strict thread matches above, loose matches on Subject: below --
2012-01-19 14:04 Thomas Bechtold

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).