Skip to content

Commit 83a9d30

Browse files
Ranjan Kumarmartinkpetersen
authored andcommitted
scsi: mpi3mr: Update timestamp only for supervisor IOCs
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]>
1 parent b928757 commit 83a9d30

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
@@ -2757,7 +2757,10 @@ static void mpi3mr_watchdog_work(struct work_struct *work)
27572757
return;
27582758
}
27592759

2760-
if (mrioc->ts_update_counter++ >= mrioc->ts_update_interval) {
2760+
if (!(mrioc->facts.ioc_capabilities &
2761+
MPI3_IOCFACTS_CAPABILITY_NON_SUPERVISOR_IOC) &&
2762+
(mrioc->ts_update_counter++ >= mrioc->ts_update_interval)) {
2763+
27612764
mrioc->ts_update_counter = 0;
27622765
mpi3mr_sync_timestamp(mrioc);
27632766
}

0 commit comments

Comments
 (0)