diff options
author | Gabriele Mazzotta <gabriele.mzt@gmail.com> | 2015-04-25 20:52:36 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-04-25 23:50:14 +0300 |
commit | 8393b811f38acdf7fd8da2028708edad3e68ce1f (patch) | |
tree | 416d3ec188647783e4364f162a793ef3369aabc0 /drivers/ata/libahci.c | |
parent | e0e2674b92056c24c69940d5f405ea4aef5e4010 (diff) | |
download | linux-8393b811f38acdf7fd8da2028708edad3e68ce1f.tar.xz |
libata: Add helper to determine when PHY events should be ignored
This is a preparation commit that will allow to add other criteria
according to which PHY events should be dropped.
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/ata/libahci.c')
-rw-r--r-- | drivers/ata/libahci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 61a9c07e0dff..287c4ba0219f 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1707,8 +1707,7 @@ static void ahci_handle_port_interrupt(struct ata_port *ap, if (unlikely(resetting)) status &= ~PORT_IRQ_BAD_PMP; - /* if LPM is enabled, PHYRDY doesn't mean anything */ - if (ap->link.lpm_policy > ATA_LPM_MAX_POWER) { + if (sata_lpm_ignore_phy_events(&ap->link)) { status &= ~PORT_IRQ_PHYRDY; ahci_scr_write(&ap->link, SCR_ERROR, SERR_PHYRDY_CHG); } |