macio: re-add TRIM support
commit0e826a061a3e8e8485488a7da02cc139fc07d620
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 29 Jul 2015 19:27:48 +0000 (29 21:27 +0200)
committerJohn Snow <jsnow@redhat.com>
Fri, 31 Jul 2015 20:38:50 +0000 (31 16:38 -0400)
tree52586b7e1d3fadbec72080d4c9724c183b5ed9e8
parentcb48f67ad8c7b33c617d4f8144a27706e69fd688
macio: re-add TRIM support

Commit bd4214fc dropped TRIM support by mistake. Given it is still
advertised to the host when using a drive with discard=on, this cause
the IDE bus to hang when the host issues a TRIM command.

This patch fixes that by re-adding the TRIM code, ported to the new
new DMA implementation.

Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: John Snow <jsnow@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-id: 1438198068-32428-1-git-send-email-aurelien@aurel32.net
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/macio.c