mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
[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: Tejun Heo <htejun@gmail.com>
This commit is contained in:
parent
3c567b7d11
commit
e4fac92ae7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue