Patch "scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-ufs-qcom-fix-the-return-value-when-platform_get.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 649efdab8333ef24e4de02f618a7cdd4313647e7
Author: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
Date:   Fri Dec 8 12:28:48 2023 +0530

    scsi: ufs: qcom: Fix the return value when platform_get_resource_byname() fails
    
    [ Upstream commit 3a747c5cf9b6c36649783b28d2ef8f9c92b16a0f ]
    
    The return value should be -ENODEV indicating that the resource is not
    provided in DT, not -ENOMEM. Fix it!
    
    Fixes: c263b4ef737e ("scsi: ufs: core: mcq: Configure resource regions")
    Reviewed-by: Andrew Halaney <ahalaney@xxxxxxxxxx>
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20231208065902.11006-4-manivannan.sadhasivam@xxxxxxxxxx
    Tested-by: Andrew Halaney <ahalaney@xxxxxxxxxx> # sa8775p-ride
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index c92cdca21fe1..0f4b3f16d3d7 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -1787,7 +1787,7 @@ static int ufs_qcom_mcq_config_resource(struct ufs_hba *hba)
 		if (!res->resource) {
 			dev_info(hba->dev, "Resource %s not provided\n", res->name);
 			if (i == RES_UFS)
-				return -ENOMEM;
+				return -ENODEV;
 			continue;
 		} else if (i == RES_UFS) {
 			res_mem = res->resource;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux