OSDN Git Service

scsi: ufs: ufs-pci: Correct check for RESET DSM
authorDaniil Lunev <dlunev@chromium.org>
Thu, 28 Jul 2022 01:18:21 +0000 (11:18 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 1 Aug 2022 23:38:06 +0000 (19:38 -0400)
commita19066788d875731a01ee7fa189b2202f0120036
treeb3ab885c016820003b93a8dc8af086be703499c9
parentef4f7e4bf1dc26aaa86cf8e5a13013684139be51
scsi: ufs: ufs-pci: Correct check for RESET DSM

dsm_fns is a bitmap, and it is 0-indexed according to the check in
__intel_dsm function. But common initialization was checking it as if it
was 1-indexed. This patch corrects the discrepancy. This change won't break
any existing calls to the function, since before the change both bits 0 and
1 were checked and needed to be set.

Link: https://lore.kernel.org/r/20220728111748.v3.1.I22460c4f4a9ccf2c96c3f9bb392b409926d80b2f@changeid
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Daniil Lunev <dlunev@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufshcd-pci.c