Message ID | 20190828191756.24312-1-bjorn.andersson@linaro.org |
---|---|
Headers | show |
Series | Qualcomm UFS device reset support | expand |
On Wed, 28 Aug 2019 12:17:55 -0700, Bjorn Andersson wrote: > 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>. > > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > --- > > Changes since v3: > - Renamed device-reset-gpios to just reset-gpios. > - Explicitly bail on !host->device_reset, to not rely on passing NULL to > gpiod_set_value_cansleep() > > .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 2 ++ > drivers/scsi/ufs/ufs-qcom.c | 36 +++++++++++++++++++ > drivers/scsi/ufs/ufs-qcom.h | 4 +++ > 3 files changed, 42 insertions(+) > Acked-by: Rob Herring <robh@kernel.org>