]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
scsi: ufs: ufs-qcom: Remove unnecessary WARN_ON()
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 22 Dec 2022 14:09:52 +0000 (19:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 02:49:33 +0000 (21:49 -0500)
In the reset assert and deassert callbacks, the supplied "id" is not used
at all and only the HBA reset is performed all the time. So there is no
reason to use a WARN_ON() on the "id".

Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com> # Qdrive3/sa8540p-ride
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c

index 592b35c80d748aca2d66652e53e97dac82197975..2557f034347e3c4f7a825ba3b0506abc8127c73b 100644 (file)
@@ -886,8 +886,6 @@ ufs_qcom_reset_assert(struct reset_controller_dev *rcdev, unsigned long id)
 {
        struct ufs_qcom_host *host = rcdev_to_ufs_host(rcdev);
 
-       /* Currently this code only knows about a single reset. */
-       WARN_ON(id);
        ufs_qcom_assert_reset(host->hba);
        /* provide 1ms delay to let the reset pulse propagate. */
        usleep_range(1000, 1100);
@@ -899,8 +897,6 @@ ufs_qcom_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id)
 {
        struct ufs_qcom_host *host = rcdev_to_ufs_host(rcdev);
 
-       /* Currently this code only knows about a single reset. */
-       WARN_ON(id);
        ufs_qcom_deassert_reset(host->hba);
 
        /*