Commit 66a87fff authored by Linus Torvalds's avatar Linus Torvalds
Browse files
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
parents edb9b8f3 69f2c934
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3109,7 +3109,7 @@ int sata_down_spd_limit(struct ata_link *link, u32 spd_limit)
	 */
	if (spd > 1)
		mask &= (1 << (spd - 1)) - 1;
	else
	else if (link->sata_spd)
		return -EINVAL;

	/* were we already at the bottom? */