Skip to content

Commit 5b62f94

Browse files
Ranjan Kumargregkh
authored andcommitted
scsi: mpi3mr: Update timestamp only for supervisor IOCs
[ Upstream commit 83a9d30 ] The driver issues the time stamp update command periodically. Even if the command fails with supervisor only IOC Status. Instead check the Non-Supervisor capability bit reported by IOC as part of IOC Facts. Co-developed-by: Sumit Saxena <[email protected]> Signed-off-by: Sumit Saxena <[email protected]> Signed-off-by: Ranjan Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent a68686c commit 5b62f94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/scsi/mpi3mr/mpi3mr_fw.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2747,7 +2747,10 @@ static void mpi3mr_watchdog_work(struct work_struct *work)
27472747
return;
27482748
}
27492749

2750-
if (mrioc->ts_update_counter++ >= mrioc->ts_update_interval) {
2750+
if (!(mrioc->facts.ioc_capabilities &
2751+
MPI3_IOCFACTS_CAPABILITY_NON_SUPERVISOR_IOC) &&
2752+
(mrioc->ts_update_counter++ >= mrioc->ts_update_interval)) {
2753+
27512754
mrioc->ts_update_counter = 0;
27522755
mpi3mr_sync_timestamp(mrioc);
27532756
}

0 commit comments

Comments
 (0)