libahci: Allow drivers to override start_engine
authorHans de Goede <hdegoede@redhat.com>
Sat, 22 Feb 2014 15:53:30 +0000 (16:53 +0100)
committerTejun Heo <tj@kernel.org>
Sat, 22 Feb 2014 20:35:41 +0000 (15:35 -0500)
commit039ece38da45f5e6a94be3aa7611cf3634bc2461
treec496379b086ca1c4251b1fd914ecafb68eb22063
parentb2a52b6a0a03000d07edb359b4059d4d871a7602
libahci: Allow drivers to override start_engine

Allwinner A10 and A20 ARM SoCs have an AHCI sata controller which needs a
special register to be poked before starting the DMA engine.

This register gets reset on an ahci_stop_engine call, so there is no other
place then ahci_start_engine where this poking can be done.

This commit allows drivers to override ahci_start_engine behavior for use by
the Allwinner AHCI driver (and potentially other drivers in the future).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c
drivers/ata/ahci.h
drivers/ata/libahci.c
drivers/ata/sata_highbank.c