]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libahci: Allow drivers to override start_engine
authorHans de Goede <hdegoede@redhat.com>
Sat, 22 Feb 2014 15:53:30 +0000 (16:53 +0100)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:17 +0000 (21:17 -0600)
commitec83380f27175952759b0888b839acb6e97cf447
tree31a3e8327e7c27b984b677493c37444caaf4d86d
parenta61f2ea36188b66845b16884cad6dcefe85f36f3
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>
(cherry picked from commit 039ece38da45f5e6a94be3aa7611cf3634bc2461)
drivers/ata/ahci.c
drivers/ata/ahci.h
drivers/ata/libahci.c
drivers/ata/sata_highbank.c