WSL2-Linux-Kernel/drivers/mmc/core
Robert Marko 4a489c8e9c mmc: core: disable TRIM on Micron MTFC4GACAJCN-1M
commit dbfbddcddc upstream.

It seems that Micron MTFC4GACAJCN-1M despite advertising TRIM support does
not work when the core is trying to use REQ_OP_WRITE_ZEROES.

We are seeing the following errors in OpenWrt under 6.1 on Qnap Qhora 301W
that we did not previously have and tracked it down to REQ_OP_WRITE_ZEROES:
[   18.085950] I/O error, dev loop0, sector 596 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 2

Disabling TRIM makes the error go away, so lets add a quirk for this eMMC
to disable TRIM.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230530213259.1776512-1-robimarko@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:47:32 +02:00
..
Kconfig
Makefile
block.c mmc: block: ensure error propagation for non-blk 2023-06-21 15:59:19 +02:00
block.h
bus.c
bus.h
card.h mmc: core: Add SD card quirk for broken discard 2022-10-29 10:12:58 +02:00
core.c mmc: core: Fix ambiguous TRIM and DISCARD arg 2022-12-08 11:28:42 +01:00
core.h
crypto.c
crypto.h
debugfs.c
host.c mmc: host: Return an error when ->enable_sdio_irq() ops is missing 2022-04-08 14:24:02 +02:00
host.h
mmc.c mmc: core: Set HS clock speed before sending HS CMD13 2022-05-12 12:30:02 +02:00
mmc_ops.c
mmc_ops.h
mmc_test.c mmc: mmc_test: Fix removal of debugfs file 2022-12-08 11:28:42 +01:00
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c mmc: pwrseq: sd8787: Fix WILC CHIP_EN and RESETN toggling order 2023-06-09 10:32:31 +02:00
pwrseq_simple.c
queue.c
queue.h
quirks.h mmc: core: disable TRIM on Micron MTFC4GACAJCN-1M 2023-07-23 13:47:32 +02:00
regulator.c
sd.c mmc: core: Normalize the error handling branch in sd_read_ext_regs() 2022-12-31 13:14:17 +01:00
sd.h
sd_ops.c
sd_ops.h
sdio.c
sdio_bus.c mmc: sdio: fix possible resource leaks in some error paths 2023-02-22 12:57:06 +01:00
sdio_bus.h
sdio_cis.c mmc: sdio: fix possible resource leaks in some error paths 2023-02-22 12:57:06 +01:00
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c
slot-gpio.c
slot-gpio.h