]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sata_mv: fix broken DSM/TRIM support (v2)
authorMark Lord <kernel@teksavvy.com>
Fri, 20 Aug 2010 01:40:44 +0000 (21:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:44 +0000 (13:17 -0700)
commite400b099fd811ffd80830c55f074a8b1281ab0be
treed926aedbee55197f236c2ca4824ab5cdcba35986
parenteeee02441b1a6063313b31d37b6eba601e48fe42
sata_mv: fix broken DSM/TRIM support (v2)

commit 44b733809a5aba7f6b15a548d31a56d25bf3851c upstream.

Fix DSM/TRIM commands in sata_mv (v2).
These need to be issued using old-school "BM DMA",
rather than via the EDMA host queue.

Since the chips don't have proper BM DMA status,
we need to be more careful with setting the ATA_DMA_INTR bit,
since DSM/TRIM often has a long delay between "DMA complete"
and "command complete".

GEN_I chips don't have BM DMA, so no TRIM for them.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/sata_mv.c