firmware: arm_scmi: Add delayed response status check
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 8 Jun 2021 10:30:56 +0000 (11:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Aug 2021 07:05:24 +0000 (09:05 +0200)
commit1b1a00b13c34b0dd1ef3de6eed25f7cb1c2dfd35
tree63dd0b9df529968cab79fcd2c5640dfe3e8fc013
parent93ef561406a712b32e9a2203b406877081fa0df7
firmware: arm_scmi: Add delayed response status check

commit f1748b1ee1fa0fd1a074504045b530b62f949188 upstream.

A successfully received delayed response could anyway report a failure at
the protocol layer in the message status field.

Add a check also for this error condition.

Link: https://lore.kernel.org/r/20210608103056.3388-1-cristian.marussi@arm.com
Fixes: 58ecdf03dbb9 ("firmware: arm_scmi: Add support for asynchronous commands and delayed response")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/arm_scmi/driver.c