]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: ufs-qcom: Refactor MCQ register dump logic
authorNitin Rawat <quic_nitirawa@quicinc.com>
Wed, 3 Sep 2025 07:48:15 +0000 (13:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 10 Sep 2025 02:52:03 +0000 (22:52 -0400)
commitbc5dbf7739594b05c673ab3905471257be9921e7
treed8d59a0ea03835ca743ff6c05aec8dc205c9e68f
parent2b9887b17ebe942cbef7cffc4e19fa2aa5fed4c8
scsi: ufs: ufs-qcom: Refactor MCQ register dump logic

Refactor MCQ register dump to align with the new resource mapping.  As
part of refactor, below changes are done:

 - Update ufs_qcom_dump_regs() function signature to accept direct
   base address instead of resource ID enum

 - Modify ufs_qcom_dump_mcq_hci_regs() to use hba->mcq_base and
   calculated addresses from MCQ operation info

 - Replace enum ufshcd_res with direct memory-mapped I/O addresses

Additionally remove the ufshcd_res_info structure and associated enum
ufshcd_res definitions from the UFS host controller header.  These were
previously used for MCQ resource mapping but are no longer needed
following recent refactoring to use direct base addresses instead of
multiple separate resource regions.

Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c
include/ufs/ufshcd.h