All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MMC] Change SDHCI version error to a warning
@ 2006-07-11 19:07 Pierre Ossman
  2006-07-13 12:13 ` Russell King
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Ossman @ 2006-07-11 19:07 UTC (permalink / raw)
  To: rmk+lkml; +Cc: Pierre Ossman, linux-kernel

O2 Micro's controllers have a larger specification version value and are
therefore denied by the driver. When bypassing this check they seem to work
fine. This patch makes the code a bit more forgiving by changing the
warning to an error.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
---

 drivers/mmc/sdhci.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index fd34d84..9ec4200 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -1193,10 +1193,8 @@ static int __devinit sdhci_probe_slot(st
 	version = (version & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT;
 	if (version != 0) {
 		printk(KERN_ERR "%s: Unknown controller version (%d). "
-			"Cowardly refusing to continue.\n", host->slot_descr,
+			"You may experience problems.\n", host->slot_descr,
 			version);
-		ret = -ENODEV;
-		goto unmap;
 	}
 
 	caps = readl(host->ioaddr + SDHCI_CAPABILITIES);


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

* Re: [PATCH] [MMC] Change SDHCI version error to a warning
  2006-07-11 19:07 [PATCH] [MMC] Change SDHCI version error to a warning Pierre Ossman
@ 2006-07-13 12:13 ` Russell King
  2006-07-13 12:17   ` Pierre Ossman
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2006-07-13 12:13 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: linux-kernel

On Tue, Jul 11, 2006 at 09:07:10PM +0200, Pierre Ossman wrote:
> O2 Micro's controllers have a larger specification version value and are
> therefore denied by the driver. When bypassing this check they seem to work
> fine. This patch makes the code a bit more forgiving by changing the
> warning to an error.

Doesn't this patch change the error to a warning instead?

> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
> ---
> 
>  drivers/mmc/sdhci.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index fd34d84..9ec4200 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -1193,10 +1193,8 @@ static int __devinit sdhci_probe_slot(st
>  	version = (version & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT;
>  	if (version != 0) {
>  		printk(KERN_ERR "%s: Unknown controller version (%d). "
> -			"Cowardly refusing to continue.\n", host->slot_descr,
> +			"You may experience problems.\n", host->slot_descr,
>  			version);
> -		ret = -ENODEV;
> -		goto unmap;
>  	}
>  
>  	caps = readl(host->ioaddr + SDHCI_CAPABILITIES);

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

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

* Re: [PATCH] [MMC] Change SDHCI version error to a warning
  2006-07-13 12:13 ` Russell King
@ 2006-07-13 12:17   ` Pierre Ossman
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Ossman @ 2006-07-13 12:17 UTC (permalink / raw)
  To: linux-kernel

Russell King wrote:
> On Tue, Jul 11, 2006 at 09:07:10PM +0200, Pierre Ossman wrote:
>> O2 Micro's controllers have a larger specification version value and are
>> therefore denied by the driver. When bypassing this check they seem to work
>> fine. This patch makes the code a bit more forgiving by changing the
>> warning to an error.
> 
> Doesn't this patch change the error to a warning instead?

*doh*

Must have been late when I wrote the commit message. It should of course
be a change from an error to a warning in order to just nag users
instead of completely blocking them.

Rgds
Pierre


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

end of thread, other threads:[~2006-07-13 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-11 19:07 [PATCH] [MMC] Change SDHCI version error to a warning Pierre Ossman
2006-07-13 12:13 ` Russell King
2006-07-13 12:17   ` Pierre Ossman

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.