Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0adccfe authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: skip probing UFS card if it is not present"

parents 679dfb32 485a2d40
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8744,6 +8744,11 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
	ktime_t start = ktime_get();

reinit:
	if (hba->extcon && (ufshcd_card_get_extcon_state(hba) <= 0)) {
		ret = -ENOLINK;
		goto out;
	}

	ret = ufshcd_link_startup(hba);
	if (ret)
		goto out;