[GIT PULL] MMC/MEMSTICK fixes for v7.4-rc6

From: Ulf Hansson

Date: Wed Dec 02 2026 - 08:33:45 EST


Hi Linus,

Here's a pull-request with some MMC/MEMSTICK fixes intended for v7.4-rc6.
Details about the highlights are as usual found in the signed tag.

Please pull this in!

Kind regards
Ulf Hansson


The following changes since commit 6b8b1e8827837bf4cf1f87219038fddae9e81b0b:

mmc: jz4740: Remove the host before resetting the controller (2026-11-05 18:56:25 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v7.4-rc1-2

for you to fetch changes up to 428260df6b8740cfbcbd83c6279109c996366d08:

mmc: bcm2835: restore scatterlist after DMA setup failure (2026-11-30 17:01:45 +0100)

----------------------------------------------------------------
MMC core:
- Saturate erase timeout instead of overflowing
- Use GFP_NOIO for SD cache flush buffers
- Fix probing of SDIO functions on ACPI systems
- Mark the end of a truncated scatterlist
- Clear MQRQ_XFER_SINGLE_BLOCK for new requests
- Add ISSI IS22TF128G eMMC to fixed secure erase time quirk

MMC host:
- bcm2835: Restore scatterlist after DMA setup failure
- dw_mmc: Fix support for clk-phase in DT
- dw_mmc: Fix races at remove
- mmci: Fix support for tuning for stm32
- mmci: Do not count a data CRC error as a complete transfer
- mmci: Reset and restore SDMMC state on system resume for stm32
- rtsx_usb_sdmmc: Allow legacy SD init after CMD8 timeout
- sdhci-pci-gli: GL9767: Wait for UHS-II wakeup before LPM
- sunxi: Report manual stop errors correctly
- sh_mmcif: Fixes for DMA and sg_miter handling

MEMSTICK:
- Remove the host ID after device_del()
- ms_block: Fix memory leaks and double free
- mspro_block: Wait for running dispatches
- mspro_block: Don't hand a finished request back to the host
- rtsx_usb_ms/r592: Fix races at remove

----------------------------------------------------------------
Arnd Bergmann (1):
mmc: sh_mmcif: rework sg_miter handling

Artem Novak (1):
mmc: bcm2835: restore scatterlist after DMA setup failure

BeaCox (1):
mmc: dw_mmc: drain bh_work on host removal

Brandt, Oliver - Lenze (1):
mmc: dw_mmc: Read clk-phase DT settings earlier

Changyul Lee (1):
memstick: core: Remove the host ID after device_del()

Christophe Kerello (3):
mmc: mmci: stm32: reset and restore SDMMC state on system resume
mmc: mmci: stm32: release the delay block before enabling it
mmc: mmci: stm32: use the delay block above 100 MHz on stm32mp25 SoC

Guangshuo Li (1):
memstick: ms_block: Fix potential block buffer leak

Hans de Goede (1):
mmc: sdio: Set acpi_device.power.flags.ignore_parent flag on sdio_func companion

Ho Jie Feng (3):
memstick: mspro_block: don't hand a finished request back to the host
memstick: mspro_block: wait for running dispatches in mspro_block_stop()
memstick: ms_block: don't erase the old block of an unmapped LBA

Jernej Skrabec (1):
mmc: sunxi: Report manual stop errors correctly

Jonathan Schmid (1):
mmc: core: clear MQRQ_XFER_SINGLE_BLOCK for new requests

Kees Cook (1):
mmc: mmc_test: Set "cnt" to the allocated size explicitly

Mateusz Nowicki (1):
mmc: mmci: do not count a data CRC error as a complete transfer

Matthew Schwartz (1):
mmc: sdhci-pci-gli: GL9767: Wait for UHS-II wakeup before LPM

Michael Haener (2):
mmc: add ISSI IS22TF128G to fixed secure erase time quirk
mmc: core: saturate erase timeout instead of overflowing

Myeonghun Pak (2):
memstick: r592: shut down the detect timer on removal
memstick: rtsx_usb_ms: disable poll_card work on removal

Samarth Narang (1):
mmc: sh_mmcif: unmap DMA buffers only after the transfer has stopped

Sean Rhodes (1):
mmc: rtsx_usb_sdmmc: allow legacy SD init after CMD8 timeout

Thomas Fourier (1):
memstick: ms_block: fix double free in msb_ftl_initialize() error path

Xiaolei Wang (1):
mmc: core: use GFP_NOIO for SD cache flush buffers

Zhu Ling (1):
mmc: core: Mark the end of a truncated scatterlist

drivers/memstick/core/memstick.c | 2 +-
drivers/memstick/core/ms_block.c | 13 +++---
drivers/memstick/core/mspro_block.c | 9 ++--
drivers/memstick/host/r592.c | 2 +-
drivers/memstick/host/rtsx_usb_ms.c | 2 +-
drivers/mmc/core/block.c | 1 +
drivers/mmc/core/card.h | 1 +
drivers/mmc/core/core.c | 19 ++++++--
drivers/mmc/core/mmc_test.c | 1 +
drivers/mmc/core/queue.c | 2 +
drivers/mmc/core/quirks.h | 9 ++++
drivers/mmc/core/sd.c | 4 +-
drivers/mmc/core/sdio_bus.c | 24 +++++++++-
drivers/mmc/host/bcm2835.c | 13 +++++-
drivers/mmc/host/dw_mmc.c | 9 +++-
drivers/mmc/host/mmci.c | 63 ++++++++++++++++++++++++-
drivers/mmc/host/mmci.h | 4 ++
drivers/mmc/host/mmci_stm32_sdmmc.c | 28 +++++++++---
drivers/mmc/host/rtsx_usb_sdmmc.c | 8 ++--
drivers/mmc/host/sdhci-pci-gli.c | 29 +++++++++++-
drivers/mmc/host/sh_mmcif.c | 91 +++++++++++++++++--------------------
drivers/mmc/host/sunxi-mmc.c | 6 ++-
22 files changed, 252 insertions(+), 88 deletions(-)