aboutsummaryrefslogtreecommitdiff
path: root/libflash/ipmi-hiomap.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-10-03 11:22:10 +1000
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-10-19 12:08:19 +0530
commitc496563de915cb00c6e99586568743ea890af2f2 (patch)
treeec647c7c88427df3952bf57565dda646ab6ec853 /libflash/ipmi-hiomap.c
parent4abe8137c82af48a565be3823d0f6006b4b00163 (diff)
downloadskiboot-c496563de915cb00c6e99586568743ea890af2f2.zip
skiboot-c496563de915cb00c6e99586568743ea890af2f2.tar.gz
skiboot-c496563de915cb00c6e99586568743ea890af2f2.tar.bz2
flash: AST BMC endian fixes
Fix endian for the 4-byte LPC copy similarly to other flash drivers. This allows flash to be detected on POWER8 AST BMC systems with a LE skiboot. Fix incorrect comments in those other drivers while we're here. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/ipmi-hiomap.c')
-rw-r--r--libflash/ipmi-hiomap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c
index c889d63..29355d6 100644
--- a/libflash/ipmi-hiomap.c
+++ b/libflash/ipmi-hiomap.c
@@ -620,7 +620,7 @@ static int lpc_window_write(struct ipmi_hiomap *ctx, uint32_t pos,
uint32_t chunk;
if (len > 3 && !(off & 3)) {
- /* endian swap: see lpc_window_write */
+ /* endian swap: see lpc_window_read */
uint32_t dat = be32_to_cpu(*(__be32 *)buf);
rc = lpc_write(OPAL_LPC_FW, off, dat, 4);