projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af3d7f9
)
fsi: occ: Don't accept response from un-initialized OCC
author
Eddie James
<eajames@linux.ibm.com>
Tue, 9 Feb 2021 17:12:32 +0000
(11:12 -0600)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:41 +0000
(16:56 +0200)
[ Upstream commit
8a4659be08576141f47d47d94130eb148cb5f0df
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/fsi/fsi-occ.c
patch
|
blob
|
history
diff --git
a/drivers/fsi/fsi-occ.c
b/drivers/fsi/fsi-occ.c
index
9eeb856
..
a691f97
100644
(file)
--- a/
drivers/fsi/fsi-occ.c
+++ b/
drivers/fsi/fsi-occ.c
@@
-445,6
+445,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;