9
0
Fork 0
barebox/drivers/mci
Juergen Beisert 6a5e4f0c89 MCI/MXS: fix signed/unsigned mismatch
Using the MXS MCI driver with an eight bit capable eMMC results into the
'devinfo' message the interface uses '0' bits for data transfer:

 barebox:/ devinfo mxs_mci0
 resources:
 num   : 0
 start : 0x80034000
 size  : 0x00002000
 driver: mxs_mci
 bus: platform

  Interface
   Min. bus clock: 1476 Hz
   Max. bus clock: 48000000 Hz
   Current bus clock: 24000000 Hz
   Bus width: 0 bit

The eight bit interface width is stored internally as value '2'. And a two bit
'2' ends up into 0xfffffffe when used as an array index. Using an unsigned
field instead fixes this issue:

 barebox:/ devinfo mxs_mci0
 resources:
 num   : 0
 start : 0x80034000
 size  : 0x00002000
 driver: mxs_mci
 bus: platform

  Interface
   Min. bus clock: 1476 Hz
   Max. bus clock: 48000000 Hz
   Current bus clock: 24000000 Hz
   Bus width: 8 bit

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-05-08 23:24:50 +02:00
..
Kconfig ARM OMAP AM33XX: create new ARCH for AM33xx 2012-12-20 11:43:10 +01:00
Makefile mfd: Using MFD_xx prefix for symbols 2013-02-18 09:21:08 +01:00
atmel-mci-regs.h atmel_mci: use linux regs define 2013-01-25 19:52:14 +01:00
atmel_mci.c MCI: atmel: Fix possible null pointer dereference 2013-04-30 09:35:55 +02:00
imx-esdhc.c mci: imx-esdhc: remove cache snoop register access 2013-04-26 23:20:24 +02:00
imx-esdhc.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
imx.c MCI: imx: Fix possible null pointer dereference 2013-04-30 09:35:55 +02:00
mci-core.c Merge branch 'for-next/param' 2013-05-06 09:30:50 +02:00
mci_spi.c Introduce device_spi_driver() macro and use it for SPI drivers 2013-03-14 07:15:45 +01:00
mxs.c MCI/MXS: fix signed/unsigned mismatch 2013-05-08 23:24:50 +02:00
omap_hsmmc.c mfd: Using MFD_xx prefix for symbols 2013-02-18 09:21:08 +01:00
pxamci.c Use new device_platform_driver() macro for drivers 2013-02-13 09:23:28 +01:00
pxamci.h mci: pxamci fix CMD12 handling 2012-04-17 22:02:54 +02:00
s3c.c Use new device_platform_driver() macro for drivers 2013-02-13 09:23:28 +01:00
twl6030.c omap_hsmmc: setup mmc voltage on twl6030 2011-12-21 12:48:08 +01:00