Skip to content

Commit 66a87ff

Browse files
committed
Merge tag 'ata-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
Pull libata fix from Damien Le Moal: "Fix device probe issues with some combination of adapters & devices that do not report a current link speed, leading to device probe failures if a link speed was not previously reported and saved (me)" * tag 'ata-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata: ata: libata: Fix sata_down_spd_limit() when no link speed is reported
2 parents edb9b8f + 69f2c93 commit 66a87ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ int sata_down_spd_limit(struct ata_link *link, u32 spd_limit)
31093109
*/
31103110
if (spd > 1)
31113111
mask &= (1 << (spd - 1)) - 1;
3112-
else
3112+
else if (link->sata_spd)
31133113
return -EINVAL;
31143114

31153115
/* were we already at the bottom? */

0 commit comments

Comments
 (0)