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 mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
bus.h mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
card.h mmc: Add quirk MMC_QUIRK_BROKEN_CACHE_FLUSH for Micron eMMC Q2J54A 2023-11-03 12:01:32 +01:00
core.c mmc: add missing MODULE_DESCRIPTION() macros 2024-06-20 14:40:55 +02:00
core.h mmc: core: refactor debugfs code 2022-12-07 13:29:13 +01:00
crypto.c blk-crypto: rename blk_keyslot_manager to blk_crypto_profile 2021-10-21 10:49:32 -06:00
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 mmc: host: factor out clearing the retune state 2021-08-24 10:15:28 +02:00
Kconfig mmc: block: add RPMB dependency 2024-09-03 14:34:44 +02:00
Makefile
mmc_ops.c mmc: core: Align to common busy polling behaviour for mmc ioctls 2023-02-15 13:24:03 +01:00
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 mmc: pwrseq: Use device_match_of_node() 2022-12-07 13:22:37 +01:00
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 mmc: core: Add host specific tuning support for SD HS mode 2023-08-25 11:45:51 +02:00
sd.c mmc: core Convert UNSTUFF_BITS macro to inline function 2024-09-03 14:34:24 +02:00
sd.h mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
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 mmc: sdio: fix possible resource leaks in some error paths 2023-02-14 00:06:22 +01:00
sdio_cis.h
sdio_io.c mmc: sdio: Spelling s/compement/complement/ 2023-01-23 15:51:38 +01:00
sdio_irq.c mmc: core: Switch to basic workqueue API for sdio_irq_work 2022-09-14 11:53:47 +02:00
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 mmc: core: constify the struct device_type usage 2024-02-27 13:48:36 +01:00
slot-gpio.c mmc: slot-gpio: Use irq_handler_t type 2024-04-26 06:47:04 +02:00
slot-gpio.h