mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ahci: remove pmp link online check in FBS EH
ata_link_online() check in ahci_error_intr() is unnecessary, it should be removed otherwise may lead to lockup with FBS enabled PMP. http://marc.info/?l=linux-ide&m=137050421603272&w=2 Reported-by: Yu Liu <liuyu.ac@gmail.com> Signed-off-by: Shane Huang <shane.huang@amd.com> Signed-off-by: Tejun Heo <tj@kernel.org> Cc: stable@vger.kernel.org
This commit is contained in:
parent
5ba59b59cb
commit
912b9ac683
1 changed files with 1 additions and 2 deletions
|
@ -1560,8 +1560,7 @@ static void ahci_error_intr(struct ata_port *ap, u32 irq_stat)
|
||||||
u32 fbs = readl(port_mmio + PORT_FBS);
|
u32 fbs = readl(port_mmio + PORT_FBS);
|
||||||
int pmp = fbs >> PORT_FBS_DWE_OFFSET;
|
int pmp = fbs >> PORT_FBS_DWE_OFFSET;
|
||||||
|
|
||||||
if ((fbs & PORT_FBS_SDE) && (pmp < ap->nr_pmp_links) &&
|
if ((fbs & PORT_FBS_SDE) && (pmp < ap->nr_pmp_links)) {
|
||||||
ata_link_online(&ap->pmp_link[pmp])) {
|
|
||||||
link = &ap->pmp_link[pmp];
|
link = &ap->pmp_link[pmp];
|
||||||
fbs_need_dec = true;
|
fbs_need_dec = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue