ide-atapi: start DMA after issuing a packet command
authorBorislav Petkov <petkovbb@gmail.com>
Tue, 31 Mar 2009 18:14:58 +0000 (20:14 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:14:58 +0000 (20:14 +0200)
commit2eba08270990b99fb5429b76ee97184ddd272f7f
treeed34e557681f7cf6c78144703eb84931377adcc3
parentda19620d99377a52b953245089f831a9c3f049c2
ide-atapi: start DMA after issuing a packet command

Apparently¹, some ATAPI devices want to see the packet command first
before enabling DMA otherwise they simply hang indefinitely. Reorder the
two steps and start DMA only after having issued the command first.

[1] http://marc.info/?l=linux-kernel&m=123835520317235&w=2

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Reported-by: Michael Roth <mroth@nessie.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-atapi.c