scsi: ufs-qcom: Implement device_reset vops
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 28 Aug 2019 19:17:55 +0000 (12:17 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 7 Sep 2019 20:36:03 +0000 (16:36 -0400)
commitb8416b2fedbf1cfe1c3645c627b2341d253880bd
treee2b085f6e9024efe16e13bee7bdd33018797a436
parentd8d9f7931ac2698fc2b37d2db748c47122ee2a6f
scsi: ufs-qcom: Implement device_reset vops

The UFS_RESET pin on Qualcomm SoCs are controlled by TLMM and exposed
through the GPIO framework. Acquire the device-reset GPIO and use this to
implement the device_reset vops, to allow resetting the attached memory.

Based on downstream support implemented by Subhash Jadavani
<subhashj@codeaurora.org>.

Link: https://lore.kernel.org/r/20190828191756.24312-3-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Avri Altman <Avri.Altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
drivers/scsi/ufs/ufs-qcom.c
drivers/scsi/ufs/ufs-qcom.h