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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:41 +0000 (16:56 +0200)
commit719c4db394edb0aeecb2eb91558abb8cdccac173
tree5a22e3b5869f03c59a12fd2c85248f75f469431f
parentaf3d7f9e266bb03b103b197f3909c213bcb81362
fsi: occ: Don't accept response from un-initialized OCC

[ 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