1
linux/drivers/mmc/core
Guenter Roeck c26339faed mmc: core: Only set maximum DMA segment size if DMA is supported
Since upstream commit 334304ac2b ("dma-mapping: don't return errors
from dma_set_max_seg_size") calling dma_set_max_seg_size() on a device
not supporting DMA results in a warning traceback. This is seen when
booting the sifive_u machine from SD. The underlying SPI controller
(sifive,spi0 compatible) explicitly sets dma_mask to NULL.

Avoid the backtrace by only calling dma_set_max_seg_size() if DMA is
supported.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: 334304ac2b ("dma-mapping: don't return errors from dma_set_max_seg_size")
Link: https://lore.kernel.org/r/20240924210123.2288529-1-linux@roeck-us.net
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-10-03 01:23:57 +02:00
..
block.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
block.h
bus.c
bus.h
card.h
core.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
core.h
crypto.c
crypto.h
debugfs.c mmc: debugfs: add card entry for quirks 2024-04-02 12:25:08 +02:00
host.c mmc: core: Remove unused of_gpio.h 2024-04-02 12:21:38 +02:00
host.h
Kconfig mmc: block: add RPMB dependency 2024-09-03 14:34:44 +02:00
Makefile
mmc_ops.c
mmc_ops.h mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
mmc_test.c mmc: mmc_test: Fix NULL dereference on allocation failure 2024-08-20 13:47:36 +02:00
mmc.c mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
pwrseq_emmc.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_sd8787.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq_simple.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
pwrseq.c
pwrseq.h
queue.c mmc: core: Only set maximum DMA segment size if DMA is supported 2024-10-03 01:23:57 +02:00
queue.h block: move cache control settings out of queue->flags 2024-06-19 07:58:28 -06:00
quirks.h mmc: core: apply SD quirks earlier during probe 2024-08-26 13:07:26 +02:00
regulator.c mmc: core: Use dev_err_probe for deferred regulators 2024-09-13 14:09:29 +02:00
sd_ops.c mmc: core: Replace the argument of mmc_sd_switch() with defines 2024-09-03 14:14:51 +02:00
sd_ops.h
sd.c mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
sd.h
sdio_bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
sdio.c
slot-gpio.c mmc: slot-gpio: Use irq_handler_t type 2024-04-26 06:47:04 +02:00
slot-gpio.h