* [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver
@ 2024-10-15 21:33 Andrew Davis
2024-10-15 21:33 ` [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper Andrew Davis
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Andrew Davis @ 2024-10-15 21:33 UTC (permalink / raw)
To: Jassi Brar, Arnd Bergmann, Bjorn Andersson, Mathieu Poirier,
Martyn Welch, Hari Nagalla
Cc: linux-arm-kernel, linux-kernel, Andrew Davis
Hello all,
This driver can be compile tested on non-TI platforms. Enabling this
also allows compile testing of drivers down the dependency tree,
such as TI_SCI_PROTOCOL.
Thanks,
Andrew
Changes for v2:
- Add patch fixing compile test warning in ti_sci.c that
is exposed by this series
- Add acks/review tags
Andrew Davis (3):
firmware: ti_sci: Remove use of of_match_ptr() helper
mailbox: ti-msgmgr: Remove use of of_match_ptr() helper
mailbox: ti-msgmgr: Allow building under COMPILE_TEST
drivers/firmware/ti_sci.c | 2 +-
drivers/mailbox/Kconfig | 2 +-
drivers/mailbox/ti-msgmgr.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--
2.39.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper
2024-10-15 21:33 [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Andrew Davis
@ 2024-10-15 21:33 ` Andrew Davis
2024-10-15 21:33 ` [PATCH v2 2/3] mailbox: ti-msgmgr: " Andrew Davis
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Davis @ 2024-10-15 21:33 UTC (permalink / raw)
To: Jassi Brar, Arnd Bergmann, Bjorn Andersson, Mathieu Poirier,
Martyn Welch, Hari Nagalla
Cc: linux-arm-kernel, linux-kernel, Andrew Davis
When OF support is disabled the of_device_id struct match table can be
conditionally compiled out, this helper allows the assignment to also be
turned into a NULL conditionally. When the of_device_id struct is not
conditionally defined based on OF then the table will be unused causing a
warning. The two options are to either set the table as _maybe_unused, or
to just remove this helper since the table will always be defined.
Do the latter here.
Signed-off-by: Andrew Davis <afd@ti.com>
---
drivers/firmware/ti_sci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index 160968301b1fb..6a6bf7a2d1349 100644
--- a/drivers/firmware/ti_sci.c
+++ b/drivers/firmware/ti_sci.c
@@ -3421,7 +3421,7 @@ static struct platform_driver ti_sci_driver = {
.probe = ti_sci_probe,
.driver = {
.name = "ti-sci",
- .of_match_table = of_match_ptr(ti_sci_of_match),
+ .of_match_table = ti_sci_of_match,
.suppress_bind_attrs = true,
},
};
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] mailbox: ti-msgmgr: Remove use of of_match_ptr() helper
2024-10-15 21:33 [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Andrew Davis
2024-10-15 21:33 ` [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper Andrew Davis
@ 2024-10-15 21:33 ` Andrew Davis
2024-10-15 21:33 ` [PATCH v2 3/3] mailbox: ti-msgmgr: Allow building under COMPILE_TEST Andrew Davis
2024-10-25 17:59 ` (subset) [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Davis @ 2024-10-15 21:33 UTC (permalink / raw)
To: Jassi Brar, Arnd Bergmann, Bjorn Andersson, Mathieu Poirier,
Martyn Welch, Hari Nagalla
Cc: linux-arm-kernel, linux-kernel, Andrew Davis
When OF support is disabled the of_device_id struct match table can be
conditionally compiled out, this helper allows the assignment to also be
turned into a NULL conditionally. When the of_device_id struct is not
conditionally defined based on OF then the table will be unused causing a
warning. The two options are to either set the table as _maybe_unused, or
to just remove this helper since the table will always be defined.
Do the latter here.
Signed-off-by: Andrew Davis <afd@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nishanth Menon <nm@ti.com>
---
drivers/mailbox/ti-msgmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c
index 9d2d4ff6cda40..8eb8df8d95a4c 100644
--- a/drivers/mailbox/ti-msgmgr.c
+++ b/drivers/mailbox/ti-msgmgr.c
@@ -920,7 +920,7 @@ static struct platform_driver ti_msgmgr_driver = {
.probe = ti_msgmgr_probe,
.driver = {
.name = "ti-msgmgr",
- .of_match_table = of_match_ptr(ti_msgmgr_of_match),
+ .of_match_table = ti_msgmgr_of_match,
.pm = &ti_msgmgr_pm_ops,
},
};
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] mailbox: ti-msgmgr: Allow building under COMPILE_TEST
2024-10-15 21:33 [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Andrew Davis
2024-10-15 21:33 ` [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper Andrew Davis
2024-10-15 21:33 ` [PATCH v2 2/3] mailbox: ti-msgmgr: " Andrew Davis
@ 2024-10-15 21:33 ` Andrew Davis
2024-10-25 17:59 ` (subset) [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Davis @ 2024-10-15 21:33 UTC (permalink / raw)
To: Jassi Brar, Arnd Bergmann, Bjorn Andersson, Mathieu Poirier,
Martyn Welch, Hari Nagalla
Cc: linux-arm-kernel, linux-kernel, Andrew Davis
The TI message manager driver can be compiled without ARCH_KEYSTONE
nor ARCH_K3 enabled. Allow it to be built under COMPILE_TEST.
Signed-off-by: Andrew Davis <afd@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nishanth Menon <nm@ti.com>
---
drivers/mailbox/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig
index 6fb995778636a..af721d769fdf2 100644
--- a/drivers/mailbox/Kconfig
+++ b/drivers/mailbox/Kconfig
@@ -127,7 +127,7 @@ config STI_MBOX
config TI_MESSAGE_MANAGER
tristate "Texas Instruments Message Manager Driver"
- depends on ARCH_KEYSTONE || ARCH_K3
+ depends on ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
default ARCH_K3
help
An implementation of Message Manager slave driver for Keystone
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: (subset) [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver
2024-10-15 21:33 [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Andrew Davis
` (2 preceding siblings ...)
2024-10-15 21:33 ` [PATCH v2 3/3] mailbox: ti-msgmgr: Allow building under COMPILE_TEST Andrew Davis
@ 2024-10-25 17:59 ` Nishanth Menon
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Menon @ 2024-10-25 17:59 UTC (permalink / raw)
To: Jassi Brar, Arnd Bergmann, Bjorn Andersson, Mathieu Poirier,
Martyn Welch, Hari Nagalla, Andrew Davis
Cc: Nishanth Menon, linux-arm-kernel, linux-kernel
Hi Andrew Davis,
On Tue, 15 Oct 2024 16:33:19 -0500, Andrew Davis wrote:
> This driver can be compile tested on non-TI platforms. Enabling this
> also allows compile testing of drivers down the dependency tree,
> such as TI_SCI_PROTOCOL.
>
> Thanks,
> Andrew
>
> [...]
I have applied the following to branch ti-drivers-soc-next on [1].
Thank you!
[1/3] firmware: ti_sci: Remove use of of_match_ptr() helper
commit: a4c14f509509a6a24f25edb7619f55f204a8433f
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-25 18:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 21:33 [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Andrew Davis
2024-10-15 21:33 ` [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper Andrew Davis
2024-10-15 21:33 ` [PATCH v2 2/3] mailbox: ti-msgmgr: " Andrew Davis
2024-10-15 21:33 ` [PATCH v2 3/3] mailbox: ti-msgmgr: Allow building under COMPILE_TEST Andrew Davis
2024-10-25 17:59 ` (subset) [PATCH v2 0/3] Enable compile testing of TI MSGMGR/SPROXY driver Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).