fsi: occ: Force sequence numbering per OCC
authorEddie James <eajames@linux.ibm.com>
Wed, 21 Jul 2021 19:02:29 +0000 (14:02 -0500)
committerJoel Stanley <joel@jms.id.au>
Fri, 15 Oct 2021 04:39:25 +0000 (15:09 +1030)
commit62f79f3d0eb9f4c224bcc3c7f6fa758515a0a7fa
tree283f2ade25a06ea7e599602b0f92e3578d9d2b08
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
fsi: occ: Force sequence numbering per OCC

Set and increment the sequence number during the submit operation.
This prevents sequence number conflicts between different users of
the interface. A sequence number conflict may result in a user
getting an OCC response meant for a different command. Since the
sequence number is now modified, the checksum must be calculated and
set before submitting the command.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210721190231.117185-2-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-occ.c