OSDN Git Service

scsi: ufs: scale up the gear in 2 steps
authorSubhash Jadavani <subhashj@codeaurora.org>
Thu, 23 Mar 2017 19:55:25 +0000 (12:55 -0700)
committerSubhash Jadavani <subhashj@codeaurora.org>
Mon, 3 Apr 2017 17:30:43 +0000 (10:30 -0700)
commitd0960c5f3000b0a6a79ec4307ba24dff23ff8b1f
treec8dd667c8d1b5658eff405c638da576a0e8dbdbe
parentbee947b93ddd31550e9a4eb17cf2f0180396a611
scsi: ufs: scale up the gear in 2 steps

Some UFS devices may stop responding after switching from HS-G1 to HS-G3.
Also, it is found that these devices work fine if we do 2 steps switch:
HS-G1 to HS-G2 followed by HS-G2 to HS-G3.
This change introduce UFS_DEVICE_QUIRK_HS_G1_TO_HS_G3_SWITCH quirk for
these devices to apply this 2 steps gear switch workaround.

Change-Id: I38eec2e1bfa842169cbfec441d900a807e715f8c
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
drivers/scsi/ufs/ufs_quirks.c
drivers/scsi/ufs/ufs_quirks.h
drivers/scsi/ufs/ufshcd.c