linux-stable/drivers
Michał Mirosław da6b467e11 mmc: sdhci: fix minimum clock rate for v3 controller
commit 2a187d0335 upstream.

For SDHCIv3+ with programmable clock mode, minimal clock frequency is
still base clock / max(divider). Minimal programmable clock frequency is
always greater than minimal divided clock frequency. Without this patch,
SDHCI uses out-of-spec initial frequency when multiplier is big enough:

mmc1: mmc_rescan_try_freq: trying to init card at 468750 Hz
[for 480 MHz source clock divided by 1024]

The code in sdhci_calc_clk() already chooses a correct SDCLK clock mode.

Fixes: c3ed387762 ("mmc: sdhci: add support for programmable clock mode")
Cc: <stable@vger.kernel.org> # 4f6aa3264a: mmc: tegra: Only advertise UHS modes if IO regulator is present
Cc: <stable@vger.kernel.org>
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/ffb489519a446caffe7a0a05c4b9372bd52397bb.1579082031.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 15:02:37 +01:00
..
accessibility
acpi ACPI: PM: Avoid attaching ACPI PM domain to certain devices 2019-12-17 20:39:37 +01:00
amba
android binder: Handle start==NULL in binder_update_page_range() 2019-12-17 20:38:57 +01:00
ata ahci: Do not export local variable ahci_em_messages 2020-01-27 14:46:44 +01:00
atm firestream: fix memory leaks 2020-01-29 15:02:35 +01:00
auxdisplay
base PM: sleep: Fix possible overflow in pm_system_cancel_wakeup() 2020-01-27 14:46:40 +01:00
bcma bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA 2020-01-27 14:46:45 +01:00
block signal: Allow cifs and drbd to receive their terminating signals 2020-01-27 14:46:43 +01:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-01-09 10:17:57 +01:00
bus
cdrom cdrom: respect device capabilities during opening action 2020-01-04 13:59:52 +01:00
char hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled 2019-12-31 12:36:57 +01:00
clk clk: sunxi-ng: v3s: add the missing PLL_DDR1 2020-01-27 14:46:40 +01:00
clocksource clocksource/drivers/exynos_mct: Fix error path in timer resources initialization 2020-01-27 14:46:21 +01:00
connector
cpufreq cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency 2020-01-27 14:46:37 +01:00
cpuidle cpuidle: Do not unset the driver if it is there already 2019-12-17 20:39:33 +01:00
crypto crypto: caam - free resources in case caam_rng registration failed 2020-01-27 14:46:42 +01:00
dax
dca
devfreq PM / devfreq: Check NULL governor in available_governors_show 2020-01-09 10:17:57 +01:00
dio
dma dmaengine: ti: edma: fix missed failure handling 2020-01-27 14:46:52 +01:00
dma-buf dma-buf: Fix memory leak in sync_file_merge() 2019-12-21 10:47:50 +01:00
edac EDAC/mc: Fix edac_mc_find() in case no device is found 2020-01-27 14:46:34 +01:00
eisa
extcon extcon: sm5502: Reset registers during initialization 2019-12-31 12:37:06 +01:00
firewire net: add annotations on hh->hh_len lockless accesses 2020-01-09 10:17:59 +01:00
firmware efi/gop: Fix memory leak in __gop_query32/64() 2020-01-12 12:11:51 +01:00
fmc
fpga
fsi fsi: core: Fix small accesses and unaligned offsets via sysfs 2019-12-31 12:37:35 +01:00
gpio gpio: mpc8xxx: Add platform device to gpiochip->parent 2020-01-17 19:45:53 +01:00
gpu drm/radeon: fix bad DMA from INTERRUPT_CNTL2 2020-01-27 14:46:53 +01:00
hid HID: hidraw, uhid: Always report EPOLLOUT 2020-01-17 19:45:40 +01:00
hsi
hv Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 17:59:56 +01:00
hwmon hwmon: (core) Do not use device managed functions for memory allocations 2020-01-29 15:02:37 +01:00
hwspinlock
hwtracing intel_th: pci: Add Elkhart Lake SOC support 2019-12-31 12:37:57 +01:00
i2c i2c: imx: don't print error message on probe defer 2019-12-17 20:38:15 +01:00
ide
idle
iio iio: dac: ad5380: fix incorrect assignment to val 2020-01-27 14:46:45 +01:00
infiniband IB/iser: Fix dma_nents type definition 2020-01-27 14:46:53 +01:00
input Revert "Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers" 2020-01-29 15:02:37 +01:00
iommu iommu/amd: Wait for completion of IOTLB flush in attach_device 2020-01-27 14:46:47 +01:00
ipack
irqchip irqchip: ingenic: Error out if IRQ domain creation failed 2020-01-04 13:59:42 +01:00
isdn staging: gigaset: add endpoint-type sanity check 2019-12-17 20:39:06 +01:00
leds
lightnvm lightnvm: pblk: fix lock order in pblk_rb_tear_down_check 2020-01-27 14:46:32 +01:00
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-12-01 09:13:39 +01:00
mailbox mailbox: mailbox-test: fix null pointer if no mmio 2019-12-05 15:38:31 +01:00
mcb
md block: fix an integer overflow in logical block size 2020-01-23 08:20:30 +01:00
media media: atmel: atmel-isi: fix timeout value for stop streaming 2020-01-27 14:46:43 +01:00
memory
memstick
message scsi: mptfusion: Fix double fetch bug in ioctl 2020-01-23 08:20:31 +01:00
mfd mfd: intel-lpss: Release IDA resources 2020-01-27 14:46:39 +01:00
misc mic: avoid statically declaring a 'struct device'. 2020-01-27 14:46:40 +01:00
mmc mmc: sdhci: fix minimum clock rate for v3 controller 2020-01-29 15:02:37 +01:00
mtd mtd: spi-nor: fix silent truncation in spi_nor_read_raw() 2020-01-17 19:45:52 +01:00
mux
net net: usb: lan78xx: Add .ndo_features_check 2020-01-29 15:02:36 +01:00
nfc NFC: pn533: fix bulk-message timeout 2020-01-23 08:20:34 +01:00
ntb NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks 2020-01-27 14:46:05 +01:00
nubus
nvdimm libnvdimm/btt: fix variable 'rc' set but not used 2020-01-04 13:59:46 +01:00
nvme nvme: retain split access workaround for capability reads 2020-01-27 14:46:48 +01:00
nvmem nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing 2020-01-27 14:46:39 +01:00
of of: mdio: Fix a signedness bug in of_phy_get_and_connect() 2020-01-27 14:46:48 +01:00
oprofile
parisc
parport parport: load lowlevel driver if ports not found 2019-12-31 12:37:39 +01:00
pci PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio() 2020-01-27 14:46:19 +01:00
pcmcia
perf
phy phy: cpcap-usb: Fix flakey host idling and enumerating of devices 2020-01-14 20:05:48 +01:00
pinctrl pinctrl: iproc-gpio: Fix incorrect pinconf configurations 2020-01-27 14:46:47 +01:00
platform MIPS: Loongson: Fix return value of loongson_hwmon_init 2020-01-27 14:46:51 +01:00
pnp
power power: supply: Init device wakeup after device_add() 2020-01-27 14:46:44 +01:00
powercap
pps
ps3
ptp ptp: free ptp device pin descriptors properly 2020-01-23 08:20:35 +01:00
pwm pwm: meson: Don't disable PWM when setting duty repeatedly 2020-01-27 14:46:34 +01:00
rapidio drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() 2020-01-27 14:46:25 +01:00
ras
regulator regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB 2020-01-27 14:46:26 +01:00
remoteproc remoteproc: Check for NULL firmwares in sysfs interface 2019-11-24 08:23:15 +01:00
reset reset: Fix memory leak in reset_control_array_put() 2019-12-05 15:36:49 +01:00
rpmsg rpmsg: glink: Free pending deferred work on remove 2019-12-21 10:47:47 +01:00
rtc rtc: pcf2127: bugfix: read rtc disables watchdog 2020-01-27 14:46:44 +01:00
s390 s390/dasd: fix memleak in path handling error case 2020-01-12 12:12:00 +01:00
sbus
scsi scsi: fnic: fix msix interrupt allocation 2020-01-27 14:46:46 +01:00
sfi
sh
sn
soc soc/fsl/qe: Fix an error code in qe_pin_request() 2020-01-27 14:46:28 +01:00
spi spi: spi-fsl-spi: call spi_finalize_current_message() at the end 2020-01-27 14:46:35 +01:00
spmi
ssb
staging staging: greybus: light: fix a couple double frees 2020-01-27 14:46:45 +01:00
target scsi: target/core: Fix a race condition in the LUN lookup code 2020-01-27 14:46:29 +01:00
tc
tee tee: optee: add missing of_node_put after of_device_is_available 2019-11-24 08:22:44 +01:00
thermal thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power 2020-01-27 14:46:34 +01:00
thunderbolt
tty serial: stm32: fix clearing interrupt error flags 2020-01-27 14:46:53 +01:00
uio driver: uio: fix possible use-after-free in __uio_register_device 2020-01-27 14:46:15 +01:00
usb usb: host: xhci-hub: fix extra endianness conversion 2020-01-27 14:46:40 +01:00
uwb
vfio vfio/mdev: Fix aborting mdev child device removal if one fails 2020-01-27 14:46:33 +01:00
vhost vhost/vsock: accept only packets with the right dst_cid 2020-01-04 14:00:14 +01:00
video backlight: lm3630a: Return 0 on success in update_status functions 2020-01-27 14:46:34 +01:00
virt
virtio virtio-balloon: fix managed page counts when migrating pages between zones 2019-12-17 20:39:14 +01:00
vlynq
vme
w1 w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:13:24 +01:00
watchdog watchdog: aspeed: Fix clock behaviour for ast2600 2019-12-17 20:39:24 +01:00
xen net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head 2020-01-27 14:46:50 +01:00
zorro
Kconfig
Makefile