mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
FROMGIT: scsi: ufs: ufs-qcom: Remove unnecessary WARN_ON()
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
Change-Id: I2979206c0c765d9cb3317550a83092bbb17d3bc8
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 267974767
(cherry picked from commit a98c2183e8 git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Todd Kjos
parent
8bdd3e967a
commit
b8697b11af
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user