linux-stable/drivers
Avri Altman 025723a9ba mmc: core: Add SD card quirk for broken discard
commit 07d2872bf4 upstream.

Some SD-cards from Sandisk that are SDA-6.0 compliant reports they supports
discard, while they actually don't. This might cause mk2fs to fail while
trying to format the card and revert it to a read-only mode.

To fix this problem, let's add a card quirk (MMC_QUIRK_BROKEN_SD_DISCARD)
to indicate that we shall fall-back to use the legacy erase command
instead.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220928095744.16455-1-avri.altman@wdc.com
[Ulf: Updated the commit message]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-21 12:37:35 +02:00
..
accessibility
acpi * A performance fix for recent large AMD systems that avoids an ancient 2022-09-26 14:53:38 -07:00
amba
android
ata ata: libata-sata: Fix device queue depth control 2022-09-28 20:47:31 +09:00
atm
auxdisplay
base
bcma
block virtio-blk: Fix WARN_ON_ONCE in virtio_queue_rq() 2022-09-27 18:30:49 -04:00
bluetooth
bus
cdrom
char random: use expired timer rather than wq for mixing fast pool 2022-10-15 08:02:57 +02:00
clk clk: imx93: drop of_match_ptr 2022-09-28 18:37:36 -07:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto Revert "crypto: qat - reduce size of mapped region" 2022-10-15 08:02:57 +02:00
cxl
dax devdax: Fix soft-reservation memory description 2022-09-24 18:05:53 -07:00
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware MMC core: 2022-09-28 11:36:31 -07:00
fpga
fsi
gnss
gpio gpiolib: acpi: Add a quirk for Asus UM325UAZ 2022-10-12 09:39:04 +02:00
gpu Merge tag 'amd-drm-fixes-6.0-2022-09-30-1' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes 2022-09-30 23:10:55 +02:00
greybus
hid
hsi
hte
hv
hwmon hwmon: (aquacomputer_d5next) Fix Quadro fan speed offsets 2022-10-12 09:39:04 +02:00
hwspinlock
hwtracing
i2c i2c: davinci: fix PM disable depth imbalance in davinci_i2c_probe 2022-10-02 00:46:42 +02:00
i3c
idle
iio iio: pressure: dps310: Reset chip after timeout 2022-10-21 12:37:35 +02:00
infiniband
input Input: xpad - fix wireless 360 controller breaking after suspend 2022-10-15 08:02:59 +02:00
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media media fixes for v6.0-rc8 2022-10-01 09:27:18 -07:00
memory
memstick
message
mfd
misc misc: pci_endpoint_test: Fix pci_endpoint_test_{copy,write,read}() panic 2022-10-15 08:02:59 +02:00
mmc mmc: core: Add SD card quirk for broken discard 2022-10-21 12:37:35 +02:00
most
mtd mtd: rawnand: atmel: Unmap streaming DMA mappings 2022-10-21 12:37:32 +02:00
mux
net hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-21 12:37:34 +02:00
nfc
ntb
nubus
nvdimm Merge branch 'for-6.0/dax' into libnvdimm-fixes 2022-09-24 18:14:12 -07:00
nvme nvme-pci: set min_align_mask before calculating max_hw_sectors 2022-10-15 08:02:54 +02:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf arm64 fixes for -rc7 2022-09-23 15:28:51 -07:00
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset reset: npcm: fix iprst2 and iprst4 setting 2022-09-22 17:48:35 +02:00
rpmsg
rtc
s390 s390 updates for v6.0-rc7 2022-09-24 17:35:42 -07:00
sbus
scsi scsi: stex: Properly zero out the passthrough command structure 2022-10-15 08:02:56 +02:00
sh
siox
slimbus
soc sunxi SRAM controller fixes for 2022-09-23 14:29:00 +02:00
soundwire
spi
spmi
ssb
staging media fixes for v6.0-rc8 2022-10-01 09:27:18 -07:00
target
tc
tee
thermal
thunderbolt thunderbolt: Fix for v6.0 final 2022-09-27 10:47:36 +02:00
tty serial: sifive: enable clocks for UART when probed 2022-09-22 16:38:18 +02:00
ufs
uio
usb usb: add quirks for Lenovo OneLink+ Dock 2022-10-21 12:37:35 +02:00
vdpa vdpa/mlx5: Fix MQ to support non power of two num queues 2022-09-27 18:32:45 -04:00
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen xen: branch for v6.0-rc7 2022-09-23 08:31:24 -07:00
zorro
Kconfig
Makefile