linux-uconsole/drivers/mmc/core
Ming Lei b32dc79a5a mmc: core: align max segment size with logical block size
[ Upstream commit c53336c8f5 ]

Logical block size is the lowest possible block size that the storage
device can address. Max segment size is often related with controller's
DMA capability. And it is reasonable to align max segment size with
logical block size.

SDHCI sets un-aligned max segment size, and causes ADMA error, so
fix it by aligning max segment size with logical block size.

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Faiz Abbas <faiz_abbas@ti.com>
Cc: linux-block@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:21:13 +01:00
..
block.c mmc: core: align max segment size with logical block size 2019-12-05 09:21:13 +01:00
block.h
bus.c
bus.h
card.h mmc: core: Add a new quirk for limiting clock rate 2018-05-02 15:08:39 +02:00
core.c mmc: core: API to temporarily disable retuning for SDIO CRC errors 2019-06-25 11:35:53 +08:00
core.h mmc: core: Drop the unused mmc_power_save|restore_host() 2018-07-16 11:21:45 +02:00
debugfs.c
host.c mmc: core: Fix debounce time to use microseconds 2018-09-27 00:39:32 +02:00
host.h
Kconfig
Makefile
mmc.c mmc: core: complete HS400 before checking status 2019-07-14 08:11:13 +02:00
mmc_ops.c mmc: core: Adjust and reuse the macro of R1_STATUS(x) 2018-07-16 11:21:45 +02:00
mmc_ops.h
mmc_test.c
pwrseq.c
pwrseq.h
pwrseq_emmc.c mmc: core: make pwrseq_emmc (partially) support sleepy GPIO controllers 2019-05-31 06:46:22 -07:00
pwrseq_sd8787.c
pwrseq_simple.c mmc: pwrseq: Use kmalloc_array instead of stack VLA 2018-05-02 15:08:29 +02:00
queue.c mmc: core: align max segment size with logical block size 2019-12-05 09:21:13 +01:00
queue.h mmc: block: Fix unsupported parallel dispatch of requests 2018-08-21 16:12:41 +02:00
quirks.h mmc: core: sdio: Set SDIO clock of SDR104 to 150MHz for Marvell 8887 chip 2018-05-02 15:08:39 +02:00
sd.c mmc: core: Fix init of SD cards reporting an invalid VDD range 2019-09-06 10:22:17 +02:00
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: core: Prevent processing SDIO IRQs when the card is suspended 2019-06-25 11:35:53 +08:00
sdio_bus.c mmc: sdio: Respect all error codes from dev_pm_domain_attach() 2018-05-14 22:58:45 +02:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c mmc: core: Add sdio_retune_hold_now() and sdio_retune_release() 2019-06-25 11:35:53 +08:00
sdio_irq.c mmc: core: Clarify sdio_irq_pending flag for MMC_CAP2_SDIO_IRQ_NOTHREAD 2019-10-05 13:09:56 +02:00
sdio_ops.c
sdio_ops.h
sdio_uart.c tty: replace ->proc_fops with ->proc_show 2018-05-16 07:24:30 +02:00
slot-gpio.c mmc: slot-gpio: Fix debounce time to use miliseconds again 2018-09-28 17:43:48 +02:00
slot-gpio.h