linux-uconsole/include
Shawn Lin e61fd89e2f BACKPORT: FROMLIST: mmc: core: Don't try UHS-I mode if 4-bit mode isn't supported
Per SD specification physical layer v4.0, section 3.9.4, it
says "UHS-I supports only 4-bit mode. Host shall select 4-bit
mode by ACMD6. However mmc_sd_init_uhs_card() still go ahead
to initialize the cards anyway, whether card or host won't
support 4-bit mode.

This breaks the platforms which only support 1-bit mode but
with a UHS-I card inserted, as all the tuning process is broken
due to this. Alternatively, we should check the return value from
mmc_set_bus_width to see if host could finish the request to switch
the bus with on its side. But that needs more thing to do than this
patch that just bails out early to try to use high speed mode if 4-bit
mode isn't available for whatever reason. And this patch could also
fix the same problem for sdio since R4_18V_PRESENT won't be set for
ocr when mmc_sdio_init_card() finds mmc_host_uhs() is false.

Note that This patch doesn't keep the checking of card->scr.sda_spec3
and comparing card->scr.bus_widths with SD_SCR_BUS_WIDTH_4 within
mmc_sd_init_uhs_card since if the sd cards response with SD_ROCR_S18A,
it definitely support UHS-I mode, which implicitly means these checks
are always true.

Change-Id: I2e91418b3216d9efac672af604014d7095bf4a1a
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from https://patchwork.kernel.org/patch/10241773/)
2018-02-27 11:31:21 +08:00
..
acpi UPSTREAM: device property: Avoid potential dereferences of invalid pointers 2017-08-30 14:50:28 +08:00
asm-generic Revert "pinctrl: rockchip: Make the gpio base started from 1000" 2018-02-25 19:35:21 +08:00
clocksource
crypto Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-01-22 11:50:22 +05:30
drm phy: rockchip: inno-hdmi: fix 4k10 bit display abnormal 2018-01-30 16:24:50 +08:00
dt-bindings clk: rockchip: px30: Add clock id for aclk_bus_src and aclk_peri_src 2018-02-22 10:55:21 +08:00
keys
kvm
linux BACKPORT: FROMLIST: mmc: core: Don't try UHS-I mode if 4-bit mode isn't supported 2018-02-27 11:31:21 +08:00
math-emu
media rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
memory
misc
net LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
pcmcia
ras
rdma RDMA/core: Fix incorrect structure packing for booleans 2017-03-12 06:37:29 +01:00
rxrpc
scsi scsi: sg: disable SET_FORCE_LOW_DMA 2018-01-23 19:50:14 +01:00
soc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sound Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-12-01 11:04:13 +08:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:35:31 +01:00
trace rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
uapi LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
video
xen fix xen_swiotlb_dma_mmap prototype 2017-10-05 09:41:48 +02:00
Kbuild