mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-23 02:51:47 +00:00
scsi: hisi_sas: Correct the number of global debugfs registers
[ Upstream commit73e33f969e
] In function debugfs_debugfs_snapshot_global_reg_v3_hw() it uses debugfs_axi_reg.count (which is the number of axi debugfs registers) to acquire the number of global debugfs registers. Use debugfs_global_reg.count to acquire the number of global debugfs registers instead. Fixes:623a4b6d5c
("scsi: hisi_sas: Move debugfs code to v3 hw driver") Signed-off-by: Yihang Li <liyihang9@huawei.com> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Link: https://lore.kernel.org/r/1702525516-51258-6-git-send-email-chenxiang66@hisilicon.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d1932df3c4
commit
d4a84572bc
1 changed files with 1 additions and 1 deletions
|
@ -3478,7 +3478,7 @@ static void debugfs_snapshot_global_reg_v3_hw(struct hisi_hba *hisi_hba)
|
|||
u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_GLOBAL].data;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < debugfs_axi_reg.count; i++, databuf++)
|
||||
for (i = 0; i < debugfs_global_reg.count; i++, databuf++)
|
||||
*databuf = hisi_sas_read32(hisi_hba, 4 * i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue