Commit d30adebf authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Benjamin Cabé
Browse files

drivers: espi: espi_mchp_xec: fix typo in receive_oob error checking



Check error using the proper RX mask

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 6d910647
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -555,7 +555,7 @@ static int espi_xec_receive_oob(const struct device *dev,
	uint8_t err_mask = MCHP_ESPI_OOB_RX_STS_IBERR |
			MCHP_ESPI_OOB_RX_STS_OVRUN;

	if (ESPI_OOB_REGS->TX_STS & err_mask) {
	if (ESPI_OOB_REGS->RX_STS & err_mask) {
		return -EIO;
	}