ata: libata-core: Disable TRIM on M88V29
authorZoltán Böszörményi <zboszor@gmail.com>
Fri, 4 Feb 2022 12:57:50 +0000 (13:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:01:06 +0000 (12:01 +0100)
commitfecb05b1ce6b7b39884999de5cd15b47eb9b5426
tree9e62d701350ace62e01d0819eaddefea68e4d83c
parentb19ec7afa9297d862ed86443e0164643b97250ab
ata: libata-core: Disable TRIM on M88V29

[ Upstream commit c8ea23d5fa59f28302d4e3370c75d9c308e64410 ]

This device is a CF card, or possibly an SSD in CF form factor.
It supports NCQ and high speed DMA.

While it also advertises TRIM support, I/O errors are reported
when the discard mount option fstrim is used. TRIM also fails
when disabling NCQ and not just as an NCQ command.

TRIM must be disabled for this device.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/libata-core.c