Skip to content

Commit d30adeb

Browse files
committed
drivers: espi: espi_mchp_xec: fix typo in receive_oob error checking
Check error using the proper RX mask Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 6d91064 commit d30adeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/espi/espi_mchp_xec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static int espi_xec_receive_oob(const struct device *dev,
555555
uint8_t err_mask = MCHP_ESPI_OOB_RX_STS_IBERR |
556556
MCHP_ESPI_OOB_RX_STS_OVRUN;
557557

558-
if (ESPI_OOB_REGS->TX_STS & err_mask) {
558+
if (ESPI_OOB_REGS->RX_STS & err_mask) {
559559
return -EIO;
560560
}
561561

0 commit comments

Comments
 (0)