]> git.baikalelectronics.ru Git - kernel.git/commit
libata/pdc_adma: make SFF EH handle non-bmdma SFF drivers and standardize pdc_adma ops
authorTejun Heo <htejun@gmail.com>
Tue, 25 Mar 2008 12:34:39 +0000 (21:34 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:20 +0000 (15:44 -0400)
commitccd0ec6ad21a4f9c785e5268168d03aad2ff6749
treea4c61c016c6bd340d941ad141c14a8f7d837ab7f
parentc316c6f641f81439ac05bb2e07206bfec13f8f39
libata/pdc_adma: make SFF EH handle non-bmdma SFF drivers and standardize pdc_adma ops

pdc_adma has interface similar to SFF but has its own DMA interface.
It currently implements noop bmdma ops to avoid crashing
ata_bmdma_error_handler() which BTW actually is EH for SFF drivers.

This patch makes ata_bmdma_error_handler() dereference bmdma ops iff
bmdma_addr is initialized as done in ata_bmdma_post_internal_cmd.
This change allows pdc_adma to standardize ops and use SFF
error_handler and post_internal_cmd.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Mark Lord <liml@rtr.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-sff.c
drivers/ata/pdc_adma.c