fsi: occ: Don't accept response from un-initialized OCC
authorEddie James <eajames@linux.ibm.com>
Tue, 9 Feb 2021 17:12:32 +0000 (11:12 -0600)
committerJoel Stanley <joel@jms.id.au>
Fri, 4 Jun 2021 04:59:54 +0000 (14:29 +0930)
commit8a4659be08576141f47d47d94130eb148cb5f0df
tree9bfd89c62d5d7fbabffe0ee8ee8c28b813675630
parentf72ddbe1d7b7d0b2a1179a8dded704ed87001351
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>
drivers/fsi/fsi-occ.c