linux-uconsole/drivers
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
..
accessibility
acpi LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
adc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
amba
android Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
ata LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
atm atm: horizon: Fix irq release error 2017-12-16 10:33:55 +01:00
auxdisplay
base LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
bcma
block rbd: set max_segments to USHRT_MAX 2018-01-17 09:35:30 +01:00
bluetooth rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
bus sunxi-rsb: Include OF based modalias in device uevent 2018-01-10 09:27:09 +01:00
cdrom
char hwrng: core - sleep interruptible in read 2018-01-17 09:35:28 +01:00
cir rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
clk clk: rockchip: px30: Add support to set parent rate for vopb dclk 2018-02-26 17:08:53 +08:00
clocksource clocksource: arch_timer: make virtual counter access configurable 2018-01-22 13:16:20 +05:30
cmmb rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
connector
cpufreq soc: rockchip: add functions to select opp level form device-tree 2018-01-02 10:21:39 +08:00
cpuidle Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-01-22 11:50:22 +05:30
crypto crypto: n2 - cure use after free 2018-01-10 09:27:08 +01:00
dca
devfreq PM / devfreq: event: add support for px30 dfi 2018-02-08 14:53:27 +08:00
dio
dma dmaengine: pl330: fix bug that chan descdone is null 2018-01-29 14:12:32 +08:00
dma-buf UPSTREAM: dma-buf: add support for compat ioctl 2017-08-15 18:43:45 +08:00
edac EDAC, i5000, i5400: Fix definition of NRECMEMB register 2017-12-16 10:33:54 +01:00
eisa
extcon 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
firewire
firmware Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
fmc
fpga
gpio Revert "gpio: rockchip: Make the gpio base added at gpiolib" 2018-02-25 19:34:31 +08:00
gpu drm/rockchip: Fix cvbs display err when power off 2018-02-26 17:21:08 +08:00
headset_observe rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
hid hid/hid-rkvr: fix compile warning 2018-02-07 18:46:00 +08:00
hsi
hv x86/retpoline/hyperv: Convert assembler indirect jumps 2018-01-23 19:50:13 +01:00
hwmon Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
hwspinlock
hwtracing Merge tag 'v4.4.107' into linux-linaro-lsk-v4.4 2017-12-21 12:06:47 +08:00
i2c Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
ide
idle
iio 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
infiniband IB/srpt: Disable RDMA access by the initiator 2018-01-17 09:35:24 +01:00
input drivers/input/touchscreen/cy8c_touchpad: fix compile warning 2018-02-13 10:01:26 +08:00
iommu iommu/rockchip: return -ENODEV when a disabled iommu node is referenced by master 2018-02-09 11:08:29 +08:00
ipack
irqchip Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
isdn isdn: kcapi: avoid uninitialized data 2017-12-25 14:22:13 +01:00
leds leds: leds-is31fl32xx: enable multi-control mode and solve register failed issue during reboot. 2017-12-13 18:36:20 +08:00
lguest
lightnvm
macintosh
mailbox rk: rm include/linux/rockchip/common.h 2017-11-17 14:55:40 +08:00
mcb
md Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-02-01 12:02:38 +08:00
media camera: rockchip: camsys_drv: Another solution of isp reset failure for rk3326. 2018-02-27 09:24:13 +08:00
memory ARM: OMAP2+: gpmc-onenand: propagate error on initialization failure 2017-12-16 10:33:51 +01:00
memstick
message
mfd mfd: remove unused rk808-irq 2018-02-26 17:30:52 +08:00
misc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
mmc 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
mtd rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
net ethernet: stmmac: dwmac-rk: Add speed setting for gmac controller of px30 2018-02-24 10:37:58 +08:00
nfc Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-11-02 17:00:07 +08:00
ntb ntb_transport: fix bug calculating num_qps_mw 2017-08-30 10:19:29 +02:00
nubus
nvdimm libnvdimm, namespace: make 'resource' attribute only readable by root 2017-11-30 08:37:23 +00:00
nvme 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
nvmem nvmem: rockchip-otp: Fix section mismatch when compile 2018-02-26 19:57:25 +08:00
of BACKPORT: device property: Introduce fwnode_property_get_reference_args 2017-11-27 14:12:20 +08:00
oprofile
parisc parisc: Hide Diva-built-in serial aux and graphics card 2018-01-02 20:33:20 +01:00
parport parisc, parport_gsc: Fixes for printk continuation lines 2017-06-17 06:39:37 +02:00
pci LSK 18.02 v4.4-android 2018-02-07 20:59:20 +08:00
pcmcia
perf LSK 17.07 v4.4-android 2017-07-26 19:32:04 +08:00
phy phy: rockchip-inno-usb3: use fixed-regulator for vbus power 2018-02-26 17:18:33 +08:00
pinctrl UPSTREAM: pinctrl: Add pinctrl driver for the RK805 PMIC 2018-02-26 18:16:18 +08:00
platform 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
pnp
power power_supply: cw201x: add hw_id check for android things SOM 2018-02-25 19:33:19 +08:00
powercap
pps
ps3
ptp
pwm pwm: rockchip: add pwm en for voppwm 2018-01-30 16:23:46 +08:00
rapidio
ras
regulator regulator: rk808: rk809: the sw1 enable bit intercnvert with sw2 2018-02-13 11:21:32 +08:00
remoteproc
reset
rk_nand drivers: rk_nand: fix nand driver shutdown issue 2018-02-06 14:28:25 +08:00
rpmsg
rtc mfd: RK817 & RK809: Add new mfd driver for RK817 & RK809 2018-02-05 16:18:20 +08:00
s390 s390/qeth: no ETH header for outbound AF_IUCV 2017-12-25 14:22:12 +01:00
sbus
scsi Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-02-01 12:02:38 +08:00
sfi
sh
smc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sn
soc soc: rockchip: grf: disable jtag switching for PX30 Soc 2018-02-26 11:55:20 +08:00
spi spi: rockchip: add compatible rockchip,px30-spi for px30 2018-02-09 18:57:11 +08:00
spmi spmi: Include OF based modalias in device uevent 2017-07-27 15:06:10 -07:00
ssb
staging fiq_debugger: rockchip: deal with this_cpu and current_cpu are different 2018-02-08 14:29:02 +08:00
switch rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:35:31 +01:00
tc
tee BACKPORT: tee: indicate privileged dev in gen_caps 2018-01-22 13:16:20 +05:30
testcode rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
thermal thermal: rockchip: fix channal invertion issue for px30 2018-02-10 11:34:03 +08:00
thunderbolt
tty Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-01-26 19:26:47 +08:00
uio
usb CHROMIUM: usb: dwc3: rockchip: reset host controller at resume 2018-02-10 09:03:29 +08:00
uwb uwb: ensure that endpoint is interrupt 2017-10-12 11:27:35 +02:00
vfio vfio-pci: Handle error from pci_iomap 2017-08-06 19:19:46 -07:00
vhost fix a page leak in vhost_scsi_iov_to_sgl() error recovery 2017-11-30 08:37:22 +00:00
video video: rockchip: vpu: fix wrong freq assigned 2018-02-24 18:08:41 +08:00
virt
virtio virtio: release virtio index when fail to device_register 2017-12-16 10:33:48 +01:00
vlynq
vme
w1
watchdog 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
xen xen: xenbus driver must not accept invalid transaction ids 2017-11-30 08:37:28 +00:00
zorro
Kconfig LSK 17.07 v4.4-android 2017-07-26 19:32:04 +08:00
Makefile LSK 17.07 v4.4-android 2017-07-26 19:32:04 +08:00