diff options
author | Eddie James <eajames@linux.ibm.com> | 2021-02-09 20:12:32 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2021-06-04 07:59:54 +0300 |
commit | 8a4659be08576141f47d47d94130eb148cb5f0df (patch) | |
tree | 9bfd89c62d5d7fbabffe0ee8ee8c28b813675630 | |
parent | f72ddbe1d7b7d0b2a1179a8dded704ed87001351 (diff) |
fsi: occ: Don't accept response from un-initialized OCC
If the OCC is not initialized and responds as such, the driver
should continue waiting for a valid response until the timeout
expires.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Fixes: 7ed98dddb764 ("fsi: Add On-Chip Controller (OCC) driver")
Link: https://lore.kernel.org/r/20210209171235.20624-2-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | drivers/fsi/fsi-occ.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index f9a88083e5f3..dc74bffedd72 100644 --- a/drivers/fsi/fsi-occ.c +++ b/drivers/fsi/fsi-occ.c @@ -495,6 +495,7 @@ int fsi_occ_submit(struct device *dev, const void *request, size_t req_len, goto done; if (resp->return_status == OCC_RESP_CMD_IN_PRG || + resp->return_status == OCC_RESP_CRIT_INIT || resp->seq_no != seq_no) { rc = -ETIMEDOUT; |