Skip to content

LPC/MBOX work

Cyril Bur openbmc 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 6 repliesIn review
  2. v25 patches 22 repliesSuperseded
  3. v13 patches 18 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Documentation: dt: mailbox: Add Aspeed ast2400/2500 bindingsDocumentation/devicetree/bindings/mailbox/aspeed-mbox.txt+44 -00 replies
2/5Documentation: dt: misc: Add Aspeed ast2400/2500 LPC Control bindingsDocumentation/devicetree/bindings/misc/aspeed-lpc-ctrl.txt+78 -01 reply
3/5ARM: dts: aspeed: Add mailbox and LPC Control nodesarch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts +2 more+63 -01 reply
4/5drivers/misc: Add aspeed ast2400/ast2500 lpc controlling driverdrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/aspeed-lpc-ctrl.c +1 more+317 -00 replies
5/5drivers/mailbox: Add aspeed ast2400/ast2500 mbox driverdrivers/mailbox/Kconfig drivers/mailbox/Makefile drivers/mailbox/aspeed-mbox.c+377 -04 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] LPC/MBOX work

I thought I would put it one final time on here mostly because patch 5/5, the mbox driver, got quite a rework today thanks for the review Ben!

Notable differences is that I've completely ditched the ioctl() in favour of arbitrary reads and writes. This gives userspace the ability to touch only one reg which was the aim of the ioctl() anyway. The userspace complexity is similar, or perhaps a little more simple, no sacrifice there.

In the process of having the kernel allow access of any sized read/write to all 16 of the data regs I realise that some of the intended protocol had snuck in, or rather hadn't been completed removed, that got addressed too.

Also added a mutex to avoid multiple writers.

Thanks,

Cyril

Cyril Bur (5):
Documentation: dt: mailbox: Add Aspeed ast2400/2500 bindings
Documentation: dt: misc: Add Aspeed ast2400/2500 LPC Control bindings
ARM: dts: aspeed: Add mailbox and LPC Control nodes drivers/misc: Add aspeed ast2400/ast2500 lpc controlling driver drivers/mailbox: Add aspeed ast2400/ast2500 mbox driver

 .../devicetree/bindings/mailbox/aspeed-mbox.txt    |  44 +++
 .../devicetree/bindings/misc/aspeed-lpc-ctrl.txt   |  78 +++++
 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts     |   6 +
 arch/arm/boot/dts/aspeed-bmc-opp-firestone.dts     |   6 +
 arch/arm/boot/dts/aspeed-bmc-opp-garrison.dts      |   6 +
 arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts      |   7 +
 arch/arm/boot/dts/aspeed-g4.dtsi                   |  38 +++
 drivers/mailbox/Kconfig                            |   9 +
 drivers/mailbox/Makefile                           |   3 +
 drivers/mailbox/aspeed-mbox.c                      | 365 +++++++++++++++++++++
 drivers/misc/Kconfig                               |   9 +
 drivers/misc/Makefile                              |   1 +
 drivers/misc/aspeed-lpc-ctrl.c                     | 282 ++++++++++++++++
 include/uapi/linux/aspeed-lpc-ctrl.h               |  25 ++
 14 files changed, 879 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/aspeed-mbox.txt
 create mode 100644 Documentation/devicetree/bindings/misc/aspeed-lpc-ctrl.txt
 create mode 100644 drivers/mailbox/aspeed-mbox.c
 create mode 100644 drivers/misc/aspeed-lpc-ctrl.c
 create mode 100644 include/uapi/linux/aspeed-lpc-ctrl.h
Signature · 1 line
2.11.0