linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mcb: Add modpost support for processing MODULE_DEVICE_TABLE
@ 2025-11-27 15:54 Jose Javier Rodriguez Barbarin
  2025-11-27 15:54 ` [PATCH 1/2] mcb: Add missing modpost build support Jose Javier Rodriguez Barbarin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jose Javier Rodriguez Barbarin @ 2025-11-27 15:54 UTC (permalink / raw)
  To: linus.walleij, brgl, jic23, dlechner, nuno.sa, andy, gregkh,
	jirislaby, morbidrsa, jth, wim, linux, nathan, nsc
  Cc: linux-gpio, linux-kernel, linux-iio, linux-serial, linux-watchdog,
	linux-kbuild, Jose Javier Rodriguez Barbarin

During the process of update of one of the device drivers that are part of
mcb bus (gpio-menz127.c), one maintainer of the GPIO subsystem asked me
why I was adding new MODULE_ALIAS when I also added the same new
information on MODULE_DEVICE_TABLE.

You can find the messages here:

https://lore.kernel.org/linux-gpio/80a20b13-7c6a-4483-9741-568424f957ef@kernel.org/

After a deeper analysis, I came across that the mcb_table_id defined inside
MODULE_DEVICE_TABLE on all device drivers was being ignored as modpost was
not processing the mcb MODULE_DEVICE_TABLE entries. For this reason, former
contributors were using MODULE_ALIAS for enabling mcb to autoload the
device drivers.

My proposal with these changes is to complete the mcb bus by adding
modpost support for processing mcb MODULE_DEVICE_TABLE and removing
MODULE_ALIAS from all device drivers as they are no longer needed.

Jose Javier Rodriguez Barbarin (2):
  mcb: Add missing modpost build support
  mcb: Remove MODULE_ALIAS from all mcb client drivers

 drivers/gpio/gpio-menz127.c            | 1 -
 drivers/iio/adc/men_z188_adc.c         | 1 -
 drivers/tty/serial/8250/8250_men_mcb.c | 3 ---
 drivers/tty/serial/men_z135_uart.c     | 1 -
 drivers/watchdog/menz69_wdt.c          | 1 -
 scripts/mod/devicetable-offsets.c      | 3 +++
 scripts/mod/file2alias.c               | 9 +++++++++
 7 files changed, 12 insertions(+), 7 deletions(-)

-- 
2.51.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-28 10:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 15:54 [PATCH 0/2] mcb: Add modpost support for processing MODULE_DEVICE_TABLE Jose Javier Rodriguez Barbarin
2025-11-27 15:54 ` [PATCH 1/2] mcb: Add missing modpost build support Jose Javier Rodriguez Barbarin
2025-11-27 16:10   ` Andy Shevchenko
2025-11-28  7:54     ` Jiri Slaby
2025-11-28  9:02       ` Andy Shevchenko
2025-11-28 10:35         ` Jose Javier Rodriguez Barbarin
2025-11-27 15:54 ` [PATCH 2/2] mcb: Remove MODULE_ALIAS from all mcb client drivers Jose Javier Rodriguez Barbarin
2025-11-27 16:12   ` Andy Shevchenko
2025-11-28 10:38     ` Jose Javier Rodriguez Barbarin
2025-11-27 16:16 ` [PATCH 0/2] mcb: Add modpost support for processing MODULE_DEVICE_TABLE Andy Shevchenko
2025-11-28 10:46   ` Jose Javier Rodriguez Barbarin

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).