u-boot/drivers
Andrew Gabbasov 786e8f818c mmc: Fix handling of bus widths and DDR card capabilities
If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask,
it is never cleared, even if switching to DDR mode fails, and if
the controller driver uses this flag to check the DDR mode, it can
take incorrect actions.

Also, DDR related checks in mmc_startup() incorrectly handle the case
when the host controller does not support some bus widths (e.g. can't
support 8 bits), since the host_caps is checked for DDR bit, but not
bus width bits.

This fix clearly separates using of card_caps bitmask, having there
the flags for the capabilities, that the card can support, and actual
operation mode, described outside of card_caps (i.e. bus_width and
ddr_mode fields in mmc structure). Separate host controller drivers
may need to be updated to use the actual flags. Respectively,
the capabilities checks in mmc_startup are made more correct and clear.

Also, some clean up is made with errors handling and code syntax layout.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
2014-12-12 21:08:06 +02:00
..
bios_emulator bios_emulator: Always print errors when opcode decode fails 2014-11-25 07:11:17 -07:00
block Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2014-12-10 09:07:25 -05:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: core: remove unnecessary return condition in uclass lookup 2014-11-22 10:16:49 +01:00
crypto crypto/fsl: Add command for encapsulating/decapsulating blobs 2014-10-16 14:20:40 -07:00
ddr/fsl fsl/sleep: updated the deep sleep framework for QorIQ platforms 2014-12-11 09:41:18 -08:00
demo kbuild: refactor some makefiles 2014-09-24 18:30:29 -04:00
dfu Merge branch 'master' of git://git.denx.de/u-boot-usb 2014-12-11 18:40:49 -05:00
dma dma: keystone_nav: remove spurious qm_cfg verification 2014-11-06 11:04:39 -05:00
fpga fs: API changes enabling extra parameter to return size of type loff_t 2014-11-23 06:49:04 -05:00
gpio Merge git://git.denx.de/u-boot-dm 2014-11-24 12:01:48 -05:00
hwmon kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
i2c i2c: Correct spelling error 2014-12-08 07:27:22 +01:00
input tegra: make local functions static 2014-10-25 07:27:37 -04:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc mxc_ocotp: Do not disable the OCOTP clock after every access 2014-12-01 10:20:19 +01:00
mmc mmc: Fix handling of bus widths and DDR card capabilities 2014-12-12 21:08:06 +02:00
mtd driver/mtd: Fix IFC compilation warnings 2014-12-11 09:42:32 -08:00
net net/phy: enable serdes auto-negotiation for vsc8514 phy 2014-12-05 08:06:15 -08:00
pci arm: ls102xa: Update PCIe dts node status 2014-12-11 09:35:56 -08:00
pcmcia kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
power Merge branch 'master' of git://git.denx.de/u-boot-ti 2014-12-08 16:35:06 -05:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe u_qe: add u_qe_upload_firmware for u_qe 2014-11-19 12:56:19 -08:00
rtc Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
serial Merge branch 'master' of git://git.denx.de/u-boot-ti 2014-12-08 16:35:06 -05:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
spi arm: omap: add support for am57xx devices 2014-12-04 11:04:14 -05:00
thermal thermal: imx_thermal: Do not display calibration data 2014-12-01 10:20:18 +01:00
tpm Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb Merge branch 'master' of git://git.denx.de/u-boot-usb 2014-12-11 18:40:49 -05:00
video Merge git://git.denx.de/u-boot-x86 2014-12-01 15:24:07 -05:00
watchdog kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2014-11-26 11:23:26 -05:00