Skip to content

RFC OMAP: mailbox: removing static declarations

Omar Ramirez Luna linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7OMAP2+: hwmod_data: define number of mailboxesarch/arm/mach-omap2/omap_hwmod_2420_data.c arch/arm/mach-omap2/omap_hwmod_2430_data.c arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +2 more+32 -00 replies
2/7OMAP2+: devices: get the number of supported mailboxesarch/arm/mach-omap2/devices.c+7 -10 replies
3/7OMAP: mailbox: use OMAP's naming convention for devicesarch/arm/mach-omap1/mailbox.c arch/arm/mach-omap2/devices.c arch/arm/mach-omap2/mailbox.c+3 -30 replies
4/7OMAP: mailbox: move framework functions under header filearch/arm/plat-omap/include/plat/mailbox.h arch/arm/plat-omap/mailbox.c+39 -310 replies
5/7OMAP: mailbox: implement dynamic mailbox configurationarch/arm/plat-omap/include/plat/mailbox.h arch/arm/plat-omap/mailbox.c+182 -1120 replies
6/7OMAP1: mailbox: adapt to dynamic mailbox requestsarch/arm/mach-omap1/mailbox.c+54 -380 replies
7/7OMAP2+: mailbox: remove mailbox static declarationsarch/arm/mach-omap2/mailbox.c+54 -1560 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/7] OMAP: mailbox: removing static declarations

Hi,

This is the first attempt in making the omap mailbox framework generic enough to support other mailbox drivers, in this series the way the mailbox are defined and registered is changed to support requests of mailboxes through an id. So far, the mailbox static declarations have been removed allowing a dynamic mailbox configuration.

The next steps would involve removing omap references in the code and omap specific fields (like "type" embedded in the operations structure) along with a trivial cleanup.

The end goal would be moving the mailbox driver into drivers folder and also converting other mailbox drivers to reuse this code, the first candidate being ux-500 mailbox driver (arch/arm/mach-ux500/mbox-db5500.c).

Tested using one patch on top of Kevin Hilman mailbox loopback test, can be found at: https://gitorious.org/~or.rmz/omap-test/mbox-test-clone

If accepted patches 5 to 7 should be a single patch, to avoid compilation issues.

I'll appreciate any comments or suggestions.

Omar Ramirez Luna (7):
OMAP2+: hwmod_data: define number of mailboxes OMAP2+: devices: get the number of supported mailboxes
OMAP: mailbox: use OMAP's naming convention for devices
OMAP: mailbox: move framework functions under header file
OMAP: mailbox: implement dynamic mailbox configuration
OMAP1: mailbox: adapt to dynamic mailbox requests OMAP2+: mailbox: remove mailbox static declarations

 arch/arm/mach-omap1/mailbox.c              |   94 +++++----
 arch/arm/mach-omap2/devices.c              |    8 +-
 arch/arm/mach-omap2/mailbox.c              |  212 +++++---------------
 arch/arm/mach-omap2/omap_hwmod_2420_data.c |    6 +
 arch/arm/mach-omap2/omap_hwmod_2430_data.c |    6 +
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |    6 +
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c |    6 +
 arch/arm/plat-omap/include/plat/mailbox.h  |   62 +++----
 arch/arm/plat-omap/mailbox.c               |  298 ++++++++++++++++++----------
 9 files changed, 364 insertions(+), 334 deletions(-)

Regards,

Omar