diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2009-09-22 19:45:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:37 -0400 |
commit | 7c979ec7135d96bbff34790bf4b85a8508ede7fc (patch) | |
tree | 7844a33af78db54561e2bf7d5d11d48885d3b03b /drivers/mmc | |
parent | ad1e597d4199ffcdee04b9fb402e45c5be6a5052 (diff) |
sdio: add MMC_QUIRK_LENIENT_FN0
Normally writes to SDIO function 0 outside the vendor specific CCCR
registers are prohibited.
To support embedded devices that require writes to SDIO function 0 outside
this range (e.g. TI WL127x embedded sdio wifi device),
MMC_QUIRK_LENIENT_FN0 is introduced.
A card quirks field is added to `struct mmc_card' to support non-standard
devices (e.g. embedded sdio devices).
[akpm@linux-foundation.org: code in C, not cpp!]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/sdio_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio_io.c b/drivers/mmc/core/sdio_io.c index f61fc2d4cd0a..f9aa8a7deffa 100644 --- a/drivers/mmc/core/sdio_io.c +++ b/drivers/mmc/core/sdio_io.c | |||
@@ -624,7 +624,7 @@ void sdio_f0_writeb(struct sdio_func *func, unsigned char b, unsigned int addr, | |||
624 | 624 | ||
625 | BUG_ON(!func); | 625 | BUG_ON(!func); |
626 | 626 | ||
627 | if (addr < 0xF0 || addr > 0xFF) { | 627 | if ((addr < 0xF0 || addr > 0xFF) && (!mmc_card_lenient_fn0(func->card))) { |
628 | if (err_ret) | 628 | if (err_ret) |
629 | *err_ret = -EINVAL; | 629 | *err_ret = -EINVAL; |
630 | return; | 630 | return; |