Skip to content

drivers: fsi: sbefifo: Add in-kernel API

Eddie James openbmc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drivers: fsi: sbefifo: Add in-kernel APIdrivers/fsi/fsi-sbefifo.c include/linux/fsi-sbefifo.h+185 -290 replies
2/3drivers: fsi: sbefifo: Add OCC driverdrivers/fsi/Kconfig drivers/fsi/Makefile drivers/fsi/occfifo.c+660 -00 replies
3/3ARM: dts: aspeed: witherspoon: Add example sbefifo and occfifo devicesarch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH linux dev-4.7 0/3] drivers: fsi: sbefifo: Add in-kernel API

From: "Edward A. James" <[email protected]>

This patchset provides an in-kernel API for the SBEFIFO driver and the first user, a driver to access the P9 OCC hardware. There are also some potential devicetree bindings for the SBEFIFO and OCC devices.

The OCC provides a read/write interface, but only performs a single, atomic, OCC "command and response" operation per write operation. The driver cannot perform multiple writes in a row without first reading back to the user the response generated for each command. I can't see a use case for doing multiple commands without fetching the response.

Any feedback, particularly on how to improve the dt bindings or how to inform the OCC client that the SBEFIFO device has gone away (via unbinding FSI, or other means), would be helpful.

Edward A. James (3):
drivers: fsi: sbefifo: Add in-kernel API
drivers: fsi: sbefifo: Add OCC driver
ARM: dts: aspeed: witherspoon: Add example sbefifo and occfifo devices

 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts |  16 +
 drivers/fsi/Kconfig                              |  10 +
 drivers/fsi/Makefile                             |   1 +
 drivers/fsi/fsi-sbefifo.c                        | 173 +++++-
 drivers/fsi/occfifo.c                            | 649 +++++++++++++++++++++++
 include/linux/fsi-sbefifo.h                      |  41 ++
 6 files changed, 861 insertions(+), 29 deletions(-)
 create mode 100644 drivers/fsi/occfifo.c
 create mode 100644 include/linux/fsi-sbefifo.h
Signature · 1 line
1.8.3.1