Skip to content

Commit 3a747c5

Browse files
Mani-Sadhasivammartinkpetersen
authored andcommitted
scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails
The return value should be -ENODEV indicating that the resource is not provided in DT, not -ENOMEM. Fix it! Fixes: c263b4e ("scsi: ufs: core: mcq: Configure resource regions") Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20231208065902.11006-4-manivannan.sadhasivam@linaro.org Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8775p-ride Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 3bf7ab4 commit 3a747c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ufs/host/ufs-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ static int ufs_qcom_mcq_config_resource(struct ufs_hba *hba)
17011701
if (!res->resource) {
17021702
dev_info(hba->dev, "Resource %s not provided\n", res->name);
17031703
if (i == RES_UFS)
1704-
return -ENOMEM;
1704+
return -ENODEV;
17051705
continue;
17061706
} else if (i == RES_UFS) {
17071707
res_mem = res->resource;

0 commit comments

Comments
 (0)