diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2014-03-06 00:09:30 +0000 |
---|---|---|
committer | Zoltan Herpai <wigyori@uid0.hu> | 2014-03-06 00:09:30 +0000 |
commit | ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7 (patch) | |
tree | ef1ef8907c63a75c4ac441f8c95325a6d5abb9ec /target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch | |
parent | 2c771cc71f3b6aceda5fe81f44a79b724e0941d0 (diff) | |
download | mtk-20170518-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.zip mtk-20170518-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.tar.gz mtk-20170518-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.tar.bz2 |
sunxi: driver refresh for 3.13 - update gmac / mmc / usb / ahci drivers to follow mainline dev trees - add driver for spi - update clock support - update a31 support - move to new DT compats where appropriate - re-order patchqueue where needed - verified working a20 smp - move most DTSes off files/ - update defconfig
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 39782
Diffstat (limited to 'target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch')
-rw-r--r-- | target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch b/target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch deleted file mode 100644 index b832dc4..0000000 --- a/target/linux/sunxi/patches-3.13/160-ahci-add-pre-start-hook.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 3eec76bc21d78e56ac8404b59f29dd9dbbd1528a Mon Sep 17 00:00:00 2001 -From: Oliver Schinagl <oliver@schinagl.nl> -Date: Mon, 2 Dec 2013 16:13:32 +0100 -Subject: [PATCH] libahci: Add a pre ahci_start_engine hook - -Allwinner A10 and A20 ARM SoCs have an AHCI sata controller which need 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 adds a pre ahci_start_engine hook for use by the Allwinner AHCI -driver (and potentially other drivers in the future). - -Signed-off-by: Hans de Goede <hdegoede@redhat.com> ---- - drivers/ata/ahci.h | 2 ++ - drivers/ata/libahci.c | 4 ++++ - 2 files changed, 6 insertions(+) - ---- a/drivers/ata/ahci.h -+++ b/drivers/ata/ahci.h -@@ -323,6 +323,8 @@ struct ahci_host_priv { - u32 em_msg_type; /* EM message type */ - struct clk *clk; /* Only for platforms supporting clk */ - void *plat_data; /* Other platform data */ -+ /* Optional pre ahci_start_engine hook */ -+ void (*pre_start_engine)(struct ata_port *ap); - }; - - extern int ahci_ignore_sss; ---- a/drivers/ata/libahci.c -+++ b/drivers/ata/libahci.c -@@ -568,8 +568,12 @@ static int ahci_scr_write(struct ata_lin - void ahci_start_engine(struct ata_port *ap) - { - void __iomem *port_mmio = ahci_port_base(ap); -+ struct ahci_host_priv *hpriv = ap->host->private_data; - u32 tmp; - -+ if (hpriv->pre_start_engine) -+ hpriv->pre_start_engine(ap); -+ - /* start DMA */ - tmp = readl(port_mmio + PORT_CMD); - tmp |= PORT_CMD_START; |