[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACPK8XdahP1SfBVEkfQ3ivBeznv1RO=Qgw3msk=YB=DEyDuS6g@mail.gmail.com>
Date: Tue, 6 Apr 2021 07:18:51 +0000
From: Joel Stanley <joel@....id.au>
To: Eddie James <eajames@...ux.ibm.com>
Cc: linux-hwmon@...r.kernel.org, linux-fsi@...ts.ozlabs.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Jeremy Kerr <jk@...abs.org>,
Alistair Popple <alistair@...ple.id.au>,
Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>
Subject: Re: [PATCH 1/4] fsi: occ: Don't accept response from un-initialized OCC
On Tue, 9 Feb 2021 at 17:12, Eddie James <eajames@...ux.ibm.com> wrote:
>
> 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@...ux.ibm.com>
Reviewed-by: Joel Stanley <joel@....id.au>
I guess we should add this too?
Fixes: 7ed98dddb764 ("fsi: Add On-Chip Controller (OCC) driver")
> ---
> drivers/fsi/fsi-occ.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c
> index 10ca2e290655..cb05b6dacc9d 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;
>
> --
> 2.27.0
>
Powered by blists - more mailing lists