mpt3sas: Fix ActiveCablePowerRequirement's endianness
Subsystems (2)
Sreekanth Reddy
maintainerPATCH 1/1 mpt3sas: Fix ActiveCablePowerRequirement's endianness
Covert ActiveCablePowerRequirement's value to target CPU endian before displaying it.
Signed-off-by Sreekanth Reddy <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_scsih.c +2 -1
@@ -10804,7 +10804,8 @@ mpt3sas_scsih_event_callback(struct MPT3SAS_ADAPTER *ioc, u8 msix_index,pr_notice ("cannot be powered and devices connected\n" );pr_notice ("to this active cable will not be seen\n" );pr_notice ("This active cable requires %d mW of power\n" , - ActiveCableEventData->ActiveCablePowerRequirement); +le32_to_cpu ( + ActiveCableEventData->ActiveCablePowerRequirement));break ;case MPI26_EVENT_ACTIVE_CABLE_DEGRADED :
Signature · 1 line
2.27.0
Martin K. Petersen
AppliedQuoted 2 lines · Sreekanth Reddy
Covert ActiveCablePowerRequirement's value to target CPU endian before displaying it.
Applied to 5.13/scsi-queue, thanks!
[1/1] mpt3sas: Fix ActiveCablePowerRequirement's endianness
https://git.kernel.org/mkp/scsi/c/c0629d70ca55
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering