From: Paul Cercueil <paul.cercueil@bootlin.com>
To: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Sunil Kovvuri Goutham <sgoutham@marvell.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Paul Cercueil <paul.cercueil@bootlin.com>
Subject: [PATCH v4 0/2] mailbox: Add Marvell MHU driver
Date: Mon, 23 Nov 2026 13:52:55 +0100 [thread overview]
Message-ID: <20261123125257.111219-1-paul.cercueil@bootlin.com> (raw)
Hi Jassi,
This is the v4 of my patchset that adds support for the mailbox found in
the OcteonTX and OcteonTX2 based SoCs, which is used for SCMI
communication.
The v4 fixes building on some archs that don't define ioread64 /
iowrite64.
Sorry for the rapid-fire. If this v4 doesn't pass Sashiko's review I'll
wait a few days before sending a v5.
Changes in v4:
[2/2]:
- Use readq / writeq instead of ioread64 / iowrite64, which aren't
available on every arch.
Changes in v3:
[2/2]:
- Request an interrupt vector of exactly 3 interrupts
- Pass IRQF_NO_AUTOEN to devm_request_irq()
- Invert success condition of mrvl_mhu_last_tx_done()
Changes in v2:
[1/2]:
- Fix binding path in MAINTAINERS file
- Move MAINTAINERS entry so that it's in alphabetical order
- Fix formatting of DT example
[2/2]:
- Add Kconfig dependency on PCI
- Order includes properly
- Remove duplicated macros
- Pass a pointer to the "mhu" variable to mrvl_mhu_setup_irq(), instead
of getting it from drvdata. Then we don't even need to set drvdata.
- Use devm functions unconditionally. This fixes an issue where
pci_free_irq_vectors() was called while IRQs were still in place.
It also allows to drop mrvl_mhu_remove().
- Use pcim_iomap_region() instead of pcim_request_region() +
pcim_iomap().
- Enable IRQ in .startup(), disable it in .shutdown().
- ACK the IRQ after calling mbox_chan_received_data()
- Fix register used for polling TX done
- Clean up macros
Cheers,
-Paul
George Cherian (2):
dt-bindings: mailbox: add Marvell MHU
mailbox: marvell-mhu: add Marvell MHU driver
.../bindings/mailbox/marvell,mhu.yaml | 61 +++++
MAINTAINERS | 7 +
drivers/mailbox/Kconfig | 11 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/marvell_mhu.c | 239 ++++++++++++++++++
5 files changed, 320 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/marvell,mhu.yaml
create mode 100644 drivers/mailbox/marvell_mhu.c
--
2.47.3
next reply other threads:[~2026-11-23 12:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 12:52 Paul Cercueil [this message]
2026-11-23 12:52 ` [PATCH v4 1/2] dt-bindings: mailbox: add Marvell MHU Paul Cercueil
2026-11-23 12:52 ` [PATCH v4 2/2] mailbox: marvell-mhu: add Marvell MHU driver Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123125257.111219-1-paul.cercueil@bootlin.com \
--to=paul.cercueil@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sgoutham@marvell.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®