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

Commit c1f300ea authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan Committed by Subhash Jadavani
Browse files

scsi: ufs: perform full reset at initialization



The phy initialization sequence assumes a POR state but
the bootloaders can leave PHY at an already initialized
state, hence there could potentially be issues with the
initialization from ufs driver. Perform a full reset to
start from a power on reset state. Also a reset is
required by the UFS hardware programming guide.

Change-Id: I0118b0d3013166aeec0bb0bc0ef181e48998e758
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 6a714c1b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9419,6 +9419,9 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
		goto exit_gating;
	}

	/* Reset controller to power on reset (POR) state */
	ufshcd_vops_full_reset(hba);

	/* Host controller enable */
	err = ufshcd_hba_enable(hba);
	if (err) {