mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
mpi3mr: diag fault success beyond F000 fault code
Accept any fault as successful for diagnostic fault reset, not just the 0xF000 code. print fault information and return. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D44426
This commit is contained in:
parent
eb7a4b35de
commit
4034d7061a
|
@ -1403,14 +1403,10 @@ mpi3mr_soft_reset_success(U32 ioc_status, U32 ioc_config)
|
|||
static inline bool mpi3mr_diagfault_success(struct mpi3mr_softc *sc,
|
||||
U32 ioc_status)
|
||||
{
|
||||
U32 fault;
|
||||
|
||||
if (!(ioc_status & MPI3_SYSIF_IOC_STATUS_FAULT))
|
||||
return false;
|
||||
fault = mpi3mr_regread(sc, MPI3_SYSIF_FAULT_OFFSET) & MPI3_SYSIF_FAULT_CODE_MASK;
|
||||
if (fault == MPI3_SYSIF_FAULT_CODE_DIAG_FAULT_RESET)
|
||||
return true;
|
||||
return false;
|
||||
mpi3mr_print_fault_info(sc);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue