]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00215810-2 AHCI: sata drops to 1.5Gbps after suspend/resume several times
authorRichard Zhu <r65037@freescale.com>
Tue, 10 Jul 2012 05:14:02 +0000 (13:14 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:21 +0000 (14:12 +0200)
Add the AHCI platform suspend/resume function callback to
fix this issue.

Signed-off-by: Richard Zhu <r65037@freescale.com>
include/linux/ahci_platform.h

index be3d9a77d6edd66cbf0208bf9145490a90981129..73a25005d88aa7cc76f7e8049b9697be18955c39 100644 (file)
@@ -23,6 +23,8 @@ struct ata_port_info;
 struct ahci_platform_data {
        int (*init)(struct device *dev, void __iomem *addr);
        void (*exit)(struct device *dev);
+       int (*suspend)(struct device *dev);
+       int (*resume)(struct device *dev);
        const struct ata_port_info *ata_port_info;
        unsigned int force_port_map;
        unsigned int mask_port_map;