提交 e4fac92a 编写于 作者: T Tejun Heo

[PATCH] ahci: hardreset classification fix

AHCI calls ata_dev_classify() even when no device is attached which
results in false class code.  Fix it.
Signed-off-by: NTejun Heo <htejun@gmail.com>
上级 3c567b7d
......@@ -670,7 +670,7 @@ static int ahci_hardreset(struct ata_port *ap, unsigned int *class)
rc = sata_std_hardreset(ap, class);
ahci_start_engine(ap);
if (rc == 0)
if (rc == 0 && sata_dev_present(ap))
*class = ahci_dev_classify(ap);
if (*class == ATA_DEV_UNKNOWN)
*class = ATA_DEV_NONE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部