Skip to content

Commit

Permalink
scsi: mpi3mr: Update timestamp only for supervisor IOCs
Browse files Browse the repository at this point in the history
[ 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 <sumit.saxena@broadcom.com>
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20250220142528.20837-3-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Ranjan Kumar authored and Greg Kroah-Hartman committed May 29, 2025
1 parent a68686c commit 5b62f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/scsi/mpi3mr/mpi3mr_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2747,7 +2747,10 @@ static void mpi3mr_watchdog_work(struct work_struct *work)
return;
}

if (mrioc->ts_update_counter++ >= mrioc->ts_update_interval) {
if (!(mrioc->facts.ioc_capabilities &
MPI3_IOCFACTS_CAPABILITY_NON_SUPERVISOR_IOC) &&
(mrioc->ts_update_counter++ >= mrioc->ts_update_interval)) {

mrioc->ts_update_counter = 0;
mpi3mr_sync_timestamp(mrioc);
}
Expand Down

0 comments on commit 5b62f94

Please sign in to comment.