summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2024-08-11 16:37:56 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2024-08-13 04:11:23 +0200
commitb9d104465a6c2f1bb27ae247bd90b4ab079a1699 (patch)
tree9a036a94936448f77a2387b75fd83d92c8e4fdeb /include
parentMerge patch series "NCR5380: Bug fixes and other improvements" (diff)
downloadlinux-b9d104465a6c2f1bb27ae247bd90b4ab079a1699.tar.xz
linux-b9d104465a6c2f1bb27ae247bd90b4ab079a1699.zip
scsi: ufs: Prepare to add HCI capabilities sysfs
Prepare so we'll be able to read various other HCI registers. While at it, fix the HCPID & HCMID register names to stand for what they really are. Also replace the pm_runtime_{get/put}_sync() calls in auto_hibern8_show to ufshcd_rpm_{get/put}_sync() as any host controller register reads should. Reviewed-by: Keoseong Park <keosung.park@samsung.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20240811143757.2538212-2-avri.altman@wdc.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/ufs/ufshci.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ufs/ufshci.h b/include/ufs/ufshci.h
index 38fe97971a65..194e3655902e 100644
--- a/include/ufs/ufshci.h
+++ b/include/ufs/ufshci.h
@@ -25,8 +25,9 @@ enum {
REG_CONTROLLER_CAPABILITIES = 0x00,
REG_MCQCAP = 0x04,
REG_UFS_VERSION = 0x08,
- REG_CONTROLLER_DEV_ID = 0x10,
- REG_CONTROLLER_PROD_ID = 0x14,
+ REG_EXT_CONTROLLER_CAPABILITIES = 0x0C,
+ REG_CONTROLLER_PID = 0x10,
+ REG_CONTROLLER_MID = 0x14,
REG_AUTO_HIBERNATE_IDLE_TIMER = 0x18,
REG_INTERRUPT_STATUS = 0x20,
REG_INTERRUPT_ENABLE = 0x24,