mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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 <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>
This commit is contained in:
parent
b928757432
commit
83a9d30d29
|
|
@ -2757,7 +2757,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user