From 9b0054bc2a313a785cbdfb414a222043673a9236 Mon Sep 17 00:00:00 2001 From: Wolfgang Muees Date: Tue, 22 Sep 2009 16:45:26 -0700 Subject: [PATCH] --- yaml --- r: 164751 b: refs/heads/master c: d08ebeddfb3293fa4bdfca9c610daf1e8ec8b233 h: refs/heads/master i: 164749: b6b45061481b82de29ebdd247ff691bd2d561e97 164747: 32a2347977a60eb050ed52f9dd772831e36a7fc0 164743: 39a3ecf04fef5fb50fe15a9cc3dc4030bfd53584 164735: 2dac260dc36fc979390dfec515a2151247f8f410 v: v3 --- [refs] | 2 +- trunk/drivers/mmc/core/mmc.c | 10 +++++----- trunk/drivers/mmc/core/sd.c | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 8cbcc17bb2a0..acb8960e021f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 82cf818d54f0a415a031eabd0949a81946445198 +refs/heads/master: d08ebeddfb3293fa4bdfca9c610daf1e8ec8b233 diff --git a/trunk/drivers/mmc/core/mmc.c b/trunk/drivers/mmc/core/mmc.c index a6b5fe9d3969..ddddad46b402 100644 --- a/trunk/drivers/mmc/core/mmc.c +++ b/trunk/drivers/mmc/core/mmc.c @@ -179,11 +179,11 @@ static int mmc_read_ext_csd(struct mmc_card *card) err = mmc_send_ext_csd(card, ext_csd); if (err) { - /* - * We all hosts that cannot perform the command - * to fail more gracefully - */ - if (err != -EINVAL) + /* If the host or the card can't do the switch, + * fail more gracefully. */ + if ((err != -EINVAL) + && (err != -ENOSYS) + && (err != -EFAULT)) goto out; /* diff --git a/trunk/drivers/mmc/core/sd.c b/trunk/drivers/mmc/core/sd.c index 222a60928cdb..13b3a6b8f5b5 100644 --- a/trunk/drivers/mmc/core/sd.c +++ b/trunk/drivers/mmc/core/sd.c @@ -210,11 +210,11 @@ static int mmc_read_switch(struct mmc_card *card) err = mmc_sd_switch(card, 0, 0, 1, status); if (err) { - /* - * We all hosts that cannot perform the command - * to fail more gracefully - */ - if (err != -EINVAL) + /* If the host or the card can't do the switch, + * fail more gracefully. */ + if ((err != -EINVAL) + && (err != -ENOSYS) + && (err != -EFAULT)) goto out; printk(KERN_WARNING "%s: problem reading switch "