diff options
author | Samuel Morris <samorris@lexmark.com> | 2018-05-29 06:06:11 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-06-18 13:58:42 -0400 |
commit | 332c42a9ff7f75a4d9dd263a6e5da32b45de12ec (patch) | |
tree | 4e06ce77ee39591c6a5965eed816fda7c3b2c6f2 | |
parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) |
ata: ahci: rpm_put port on port_stop to match rpm_get in port_start
This change balances out the final ahci_port_resume in port_start to
ensure reference counts are correct after port stop.
Signed-off-by: Samuel Morris <samorris@lexmark.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | drivers/ata/libahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 965842a08743..5038cee7d982 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -2436,6 +2436,8 @@ static void ahci_port_stop(struct ata_port *ap) | |||
2436 | * re-enabling INTx. | 2436 | * re-enabling INTx. |
2437 | */ | 2437 | */ |
2438 | writel(1 << ap->port_no, host_mmio + HOST_IRQ_STAT); | 2438 | writel(1 << ap->port_no, host_mmio + HOST_IRQ_STAT); |
2439 | |||
2440 | ahci_rpm_put_port(ap); | ||
2439 | } | 2441 | } |
2440 | 2442 | ||
2441 | void ahci_print_info(struct ata_host *host, const char *scc_s) | 2443 | void ahci_print_info(struct ata_host *host, const char *scc_s) |