Home
last modified time | relevance | path

Searched hist:e34e6025 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/firmware/
H A Dturris-mox-rwtm.ce34e6025 Thu May 20 06:35:17 CDT 2021 Marek Behún <kabel@kernel.org> firmware: turris-mox-rwtm: fix reply status decoding function

The status decoding function mox_get_status() currently contains an
incorrect check: if the error status is not MBOX_STS_SUCCESS, it always
returns -EIO, so the comparison to MBOX_STS_FAIL is never executed and
we don't get the actual error code sent by the firmware.

Fix this.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>