RE: [PATCH v6 2/5] scsi: ufs-qcom: name the dev_ref_clk_ctrl registers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Eric Biggers <ebiggers@xxxxxxxxxx>, "linux-scsi@xxxxxxxxxxxxxxx" <linux-scsi@xxxxxxxxxxxxxxx>
- Subject: RE: [PATCH v6 2/5] scsi: ufs-qcom: name the dev_ref_clk_ctrl registers
- From: Avri Altman <Avri.Altman@xxxxxxx>
- Date: Sun, 12 Jul 2020 08:42:55 +0000
- Accept-language: en-US
- In-reply-to: <20200710072013.177481-3-ebiggers@kernel.org>
- Ironport-sdr: qgeMVIWSpRv3q/NLb6pt9V0l+Fd4bAUyjO/oK+666yhWGF0kzEeHDLrz+wC4crO/2sqXlfORhG 9EcFh8T1KGGdg/Ey+kI+I6N/xHoQsZAFRu9QLYPyFFNcY5HBS1xgx9JPAEI0LynVWtIKtQ+gqe ST++eHB4IS1PziMtzq3WgT2X2YCgrrpnLYXUHlpwOnQmRMgVhZdnEIYgGOb9F1dw53Rv3dBnlY Jun26IG3sLbd8U3N2M7GAKBXVfN+2lpa46YGqtoCkaM+5rr9+0kdgcOwuzHkWH+8/InIXNihAJ Q+k=
- References: <20200710072013.177481-1-ebiggers@kernel.org> <20200710072013.177481-3-ebiggers@kernel.org>
- Thread-index: AQHWVorJmO0LKMZIxEy6qo2UY5jvX6kDo5zQ
- Thread-topic: [PATCH v6 2/5] scsi: ufs-qcom: name the dev_ref_clk_ctrl registers
- Wdcipoutbound: EOP-TRUE
>
>
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> In preparation for adding another optional register range to the
> ufs-qcom driver, name the existing optional register range
> "dev_ref_clk_ctrl_mem". This allows the driver to refer to the optional
> register ranges by name rather than index.
>
> No device-tree files actually have to be updated due to this change,
> since none of them actually declares these registers.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
Reviewed-by: Avri Altman <avri.altman@xxxxxxx>
> ---
> drivers/scsi/ufs/ufs-qcom.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c
> index 2e6ddb5cdfc2..bd0b4ed7b37a 100644
> --- a/drivers/scsi/ufs/ufs-qcom.c
> +++ b/drivers/scsi/ufs/ufs-qcom.c
> @@ -1275,7 +1275,8 @@ static int ufs_qcom_init(struct ufs_hba *hba)
> host->dev_ref_clk_en_mask = BIT(26);
> } else {
> /* "dev_ref_clk_ctrl_mem" is optional resource */
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
> + res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
> + "dev_ref_clk_ctrl_mem");
> if (res) {
> host->dev_ref_clk_ctrl_mmio =
> devm_ioremap_resource(dev, res);
> --
> 2.27.0
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]