fsi: sbefifo: Add sysfs file indicating a timeout error
authorEddie James <eajames@linux.ibm.com>
Tue, 19 Oct 2021 21:17:49 +0000 (16:17 -0500)
committerJoel Stanley <joel@jms.id.au>
Thu, 21 Oct 2021 23:24:33 +0000 (09:54 +1030)
commit826280348ec68cefeb7c3cc3689f6cafcd31c832
tree6efb853dd427124516af1ef46dd9f4496f9c8a89
parent9a93de620e0a113b5f18916f58e1c80aad2f612b
fsi: sbefifo: Add sysfs file indicating a timeout error

The SBEFIFO timeout error requires special handling in userspace
to do recovery operations. Add a sysfs file to indicate a timeout
error, and notify pollers when a timeout occurs.

This will be used by the openpower-occ-control application.

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