Re: [PATCH v4 2/3] scsi: ufs-qcom: Implement device_reset vops

From: Rob Herring
Date: Mon Sep 02 2019 - 09:39:00 EST


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@xxxxxxxxxxxxxx>.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
> ---
>
> 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@xxxxxxxxxx>