mfd: Fix ASIC3 SD Host Controller Configuration size
PATCH 1/1 mfd: Fix ASIC3 SD Host Controller Configuration size
The size of the TC6380AF SD Host Controller Configuration area is 0x200 bytes (assuming registers are aligned on 32-bit boundaries), not 0x400 bytes. Source: Toshiba TC6380AF Specification sections 4.2 and 4.3.1
Signed-off-by Paul Parsons <[email protected]>
---
drivers/mfd/asic3.c +2 -1
@@ -854,7 +854,8 @@ static int __init asic3_mfd_probe(struct/* MMC */ asic->tmio_cnf =ioremap ((ASIC3_SD_CONFIG_BASE >> asic->bus_shift) + - mem_sdio->start,0x400 >> asic->bus_shift); + mem_sdio->start, +ASIC3_SD_CONFIG_SIZE >> asic->bus_shift);if (!asic->tmio_cnf) { ret = -ENOMEM ;dev_dbg (asic->dev,"Couldn't ioremap SD_CONFIG\n" );
include/linux/mfd/asic3.h +1 -0
@@ -297,6 +297,7 @@ struct asic3_platform_data {* *****************************************************************************/ #define ASIC3_SD_CONFIG_BASE 0x0400/* Assumes 32 bit addressing */ +#define ASIC3_SD_CONFIG_SIZE 0x0200/* Assumes 32 bit addressing */ #define ASIC3_SD_CTRL_BASE 0x1000#define ASIC3_SDIO_CTRL_BASE 0x1200
Hi Paul,
Quoted 2 lines · Paul Parsons
The size of the TC6380AF SD Host Controller Configuration area is
0x200bytes (assuming registers are aligned on 32-bit boundaries), not0x400bytes. Source: Toshiba TC6380AF Specification sections 4.2 and 4.3.1
Patch applied, thanks a lot.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/