mbox series

[0/7] Make kernel fsi driver generic

Message ID 20200526051226.70904-1-amitay@ozlabs.org
Headers show
Series Make kernel fsi driver generic | expand

Message

Amitay Isaacs May 26, 2020, 5:12 a.m. UTC
Currently the kernel fsi driver only works for the primary fsi connected
to the first processor because of hard-coded paths.  Move the path definition
to device-tree, so all slave fsi devices connected to fsi hub can also be
accessed.  This avoids the need for using hmfsi driver to access slave fsi
devices.

This patchset changes the sbefifo driver to always use the kernel fsi driver
for all slave fsi devices.  However, the kernel driver still uses hmfsi driver
for all slave fsi devices.  This is intentional as on p9 systems, the kernel
is not yet updated to create /sys devices to access slave fsi devices.

Amitay Isaacs (7):
  libpdbg: Store fsi_fd state information in fsi structure
  libpdbg: Do not hard-code fsi device path
  dts: Add fsi device (relative) path for kernel fsi driver
  dts: Switch to kernel fsi driver in sbefifo backend
  libpdbg: Rescan fsi bus only once
  libpdbg: If device path does not exist, log at INFO level
  libpdbg: Drop unused definitions

 bmc-kernel.dts.m4  |   1 +
 bmc-sbefifo.dts.m4 |   4 +-
 libpdbg/dtb.c      |   2 -
 libpdbg/hwunit.h   |   1 +
 libpdbg/kernel.c   | 104 ++++++++++++++++++++++++---------------------
 5 files changed, 60 insertions(+), 52 deletions(-)