mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] coresight: add missing MODULE_DEVICE_TABLE() for CTCU and TPDA
@ 2026-11-27 11:31 Qianhui Xu
  2026-11-27 11:31 ` [PATCH 1/2] coresight: ctcu: add missing MODULE_DEVICE_TABLE() Qianhui Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
  To: suzuki.poulose
  Cc: mike.leach, james.clark, leo.yan, alexander.shishkin, coresight,
	linux-arm-kernel, linux-kernel

Hi,

both the CTCU and the TPDA driver are matched through an ID table, but
neither exports that table, so building them as modules produces a
module without an "of:" / "amba:" modalias.  udev cannot autoload such a
module, and the device stays unbound until somebody loads it by hand.

This was found on an SM8750 based phone (mainline v7.3.1,
CONFIG_CORESIGHT_CTCU=m and CONFIG_CORESIGHT_TPDA=m):

  # lsmod | grep -c coresight_ctcu
  0
  # modinfo -F alias coresight-ctcu
  (empty)
  # modprobe coresight-ctcu && readlink -f /sys/bus/platform/devices/10001000.ctcu/driver
  .../drivers/coresight-ctcu

Five tpda devices behave the same way.  With this series applied the
modules carry "of:N*T*Cqcom,sa8775p-ctcu" and "amba:d???F0F??" aliases,
and on the next boot both autoload with no modules-load.d help at all:

  # lsmod | grep -E 'coresight_(ctcu|tpda)'
  coresight_ctcu         16384  0
  coresight_tpda         24576  0
  # for f in /sys/bus/amba/devices/*; do [ -e $f/driver ] || n=$((n+1)); done; echo $n
  0

There is no functional change for built-in builds; MODULE_DEVICE_TABLE()
is only used for module aliases.

*** AI-assistance disclosure ***
This series was prepared with the help of an LLM coding assistant.  The
author reviewed every line, reproduced the before/after behaviour on
hardware and is responsible for the content.

Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>

Qianhui Xu (2):
  coresight: ctcu: add missing MODULE_DEVICE_TABLE()
  coresight: tpda: add missing MODULE_DEVICE_TABLE()

 drivers/hwtracing/coresight/coresight-ctcu-core.c | 1 +
 drivers/hwtracing/coresight/coresight-tpda.c      | 1 +
 2 files changed, 2 insertions(+)

-- 
2.51.0


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

end of thread, other threads:[~2026-11-27 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 11:31 [PATCH 0/2] coresight: add missing MODULE_DEVICE_TABLE() for CTCU and TPDA Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] coresight: ctcu: add missing MODULE_DEVICE_TABLE() Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] coresight: tpda: " Qianhui Xu
2026-11-27 13:02 ` [PATCH 0/2] coresight: add missing MODULE_DEVICE_TABLE() for CTCU and TPDA James Clark

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®