[PATCH linux dev-4.10 v2 0/3] drivers: fsi: Fixup SBEFIFO and OCC locking

Eddie James eajames at linux.vnet.ibm.com
Thu Feb 15 08:31:45 AEDT 2018


This series provides a couple of fixes designed to make the FSI client drivers
play nicely with Jeremy's incoming FSI spinlock changes. Firstly, the SBEFIFO
driver must switch to use a workqueue instead of a poll timer so that we can
avoid spinlocking the entire function. Therefore, the second patch switches to
a mutex instead of a spinlock there. Lastly, switch to irqsave and irqrestore
functions in the OCC driver to cleanup the locking there.

Changes since v1:
 * lock the mutex around the transfer deletions in sbefifo_remove. Otherwise,
   it may free memory that sbefifo_worker is accessing.

Eddie James (3):
  drivers: fsi: SBEFIFO: switch to workqueue instead of timer
  drivers: fsi: sbefifo: switch to mutex in work function
  drivers: fsi: occ: switch to irqsave and irqrestore

 drivers/fsi/fsi-sbefifo.c | 97 +++++++++++++++++++++++++++++++----------------
 drivers/fsi/occ.c         | 44 +++++++++++----------
 2 files changed, 89 insertions(+), 52 deletions(-)

-- 
1.8.3.1



More information about the openbmc mailing list