diff options
Diffstat (limited to 'drivers/ata/ahci-tegra.c')
-rw-r--r-- | drivers/ata/ahci-tegra.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ata/ahci-tegra.c b/drivers/ata/ahci-tegra.c index 5c58da143c5a..df524ff72cc8 100644 --- a/drivers/ata/ahci-tegra.c +++ b/drivers/ata/ahci-tegra.c @@ -258,9 +258,9 @@ static int tegra_ahci_controller_resume(struct platform_device *pdev); static int tegra_ahci_suspend(struct platform_device *pdev, pm_message_t mesg); static int tegra_ahci_resume(struct platform_device *pdev); static enum port_idle_status tegra_ahci_is_port_idle(struct ata_port *ap); -static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap); +//static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap); static bool tegra_ahci_are_all_ports_idle(struct ata_host *host); -static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host); +//static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host); #ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE static unsigned int tegra_ahci_qc_issue(struct ata_queued_cmd *qc); static int tegra_ahci_hardreset(struct ata_link *link, unsigned int *class, @@ -1623,6 +1623,7 @@ static enum port_idle_status tegra_ahci_is_port_idle(struct ata_port *ap) return PORT_IS_IDLE; } +#if 0 static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap) { void __iomem *port_mmio = ahci_port_base(ap); @@ -1637,6 +1638,7 @@ static enum port_idle_status tegra_ahci_is_port_slumber(struct ata_port *ap) return PORT_IS_SLUMBER; return PORT_IS_IDLE_NOT_SLUMBER; } +#endif /* check if all supported ports are idle (no outstanding commands) */ static bool tegra_ahci_are_all_ports_idle(struct ata_host *host) @@ -1651,6 +1653,7 @@ static bool tegra_ahci_are_all_ports_idle(struct ata_host *host) return true; } +#if 0 /* check if all supported ports are in slumber */ static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host) { int i; @@ -1663,6 +1666,7 @@ static bool tegra_ahci_are_all_ports_slumber(struct ata_host *host) } return true; } +#endif #ifdef CONFIG_TEGRA_SATA_IDLE_POWERGATE static void tegra_ahci_to_add_idle_timer(struct ata_host *host) |