Skip to content

amba: store owner from modules with amba_driver_register()

Krzysztof Kozlowski dmaengine kvm linux-arm-kernel linux-crypto linux-i2c linux-input lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20240326-module-owner-amba-3ebb65256be7

Versions newest first

  1. v1 Latest19 patches 30 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/19amba: store owner from modules with amba_driver_register()drivers/amba/bus.c include/linux/amba/bus.h+16 -63 replies
2/19coresight: cti: drop owner assignmentdrivers/hwtracing/coresight/coresight-cti-core.c+0 -10 replies
3/19coresight: catu: drop owner assignmentdrivers/hwtracing/coresight/coresight-catu.c+0 -10 replies
4/19coresight: etm3x: drop owner assignmentdrivers/hwtracing/coresight/coresight-etm3x-core.c+0 -10 replies
5/19coresight: etm4x: drop owner assignmentdrivers/hwtracing/coresight/coresight-etm4x-core.c+0 -10 replies
6/19coresight: funnel: drop owner assignmentdrivers/hwtracing/coresight/coresight-funnel.c+0 -10 replies
7/19coresight: replicator: drop owner assignmentdrivers/hwtracing/coresight/coresight-replicator.c+0 -10 replies
8/19coresight: etb10: drop owner assignmentdrivers/hwtracing/coresight/coresight-etb10.c+0 -10 replies
9/19coresight: stm: drop owner assignmentdrivers/hwtracing/coresight/coresight-stm.c+0 -10 replies
10/19coresight: tmc: drop owner assignmentdrivers/hwtracing/coresight/coresight-tmc-core.c+0 -10 replies
11/19coresight: tpda: drop owner assignmentdrivers/hwtracing/coresight/coresight-tpda.c+0 -10 replies
12/19coresight: tpdm: drop owner assignmentdrivers/hwtracing/coresight/coresight-tpdm.c+0 -10 replies
13/19coresight: tpiu: drop owner assignmentdrivers/hwtracing/coresight/coresight-tpiu.c+0 -10 replies
14/19i2c: nomadik: drop owner assignmentdrivers/i2c/busses/i2c-nomadik.c+0 -13 replies
15/19hwrng: nomadik: drop owner assignmentdrivers/char/hw_random/nomadik-rng.c+0 -11 reply
16/19dmaengine: pl330: drop owner assignmentdrivers/dma/pl330.c+0 -11 reply
17/19Input: ambakmi - drop owner assignmentdrivers/input/serio/ambakmi.c+0 -11 reply
18/19memory: pl353-smc: drop owner assignmentdrivers/memory/pl353-smc.c+0 -11 reply
19/19vfio: amba: drop owner assignmentdrivers/vfio/platform/vfio_amba.c+0 -11 reply

Reviews trailers per patch

7 of 19 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSuzuki K PouloseMiquel RaynalAndi ShytiVinod KoulLinus WalleijEric AugerDmitry TorokhovWolfram Sang
SeriesA-b
1/19R-b
2/19
3/19
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19A-b A-b A-b
15/19A-b
16/19A-b
17/19A-b
18/19R-b
19/19R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v1 thread

Cover letter [PATCH 00/19] amba: store owner from modules with amba_driver_register()

Merging
=======
All further patches depend on the first amba patch, therefore please ack and this should go via one tree.

Description
===========
Modules registering driver with amba_driver_register() often forget to set .owner field.

Solve the problem by moving this task away from the drivers to the core amba bus code, just like we did for platform_driver in commit 9447057eaff8 ("platform_device: use a macro instead of platform_driver_register").

Best regards,
Krzysztof

---
Krzysztof Kozlowski (19):
amba: store owner from modules with amba_driver_register()
coresight: cti: drop owner assignment
coresight: catu: drop owner assignment
coresight: etm3x: drop owner assignment
coresight: etm4x: drop owner assignment
coresight: funnel: drop owner assignment
coresight: replicator: drop owner assignment
coresight: etb10: drop owner assignment
coresight: stm: drop owner assignment
coresight: tmc: drop owner assignment
coresight: tpda: drop owner assignment
coresight: tpdm: drop owner assignment
coresight: tpiu: drop owner assignment
i2c: nomadik: drop owner assignment
hwrng: nomadik: drop owner assignment
dmaengine: pl330: drop owner assignment
Input: ambakmi - drop owner assignment
memory: pl353-smc: drop owner assignment
vfio: amba: drop owner assignment

 drivers/amba/bus.c                                 | 11 +++++++----
 drivers/char/hw_random/nomadik-rng.c               |  1 -
 drivers/dma/pl330.c                                |  1 -
 drivers/hwtracing/coresight/coresight-catu.c       |  1 -
 drivers/hwtracing/coresight/coresight-cti-core.c   |  1 -
 drivers/hwtracing/coresight/coresight-etb10.c      |  1 -
 drivers/hwtracing/coresight/coresight-etm3x-core.c |  1 -
 drivers/hwtracing/coresight/coresight-etm4x-core.c |  1 -
 drivers/hwtracing/coresight/coresight-funnel.c     |  1 -
 drivers/hwtracing/coresight/coresight-replicator.c |  1 -
 drivers/hwtracing/coresight/coresight-stm.c        |  1 -
 drivers/hwtracing/coresight/coresight-tmc-core.c   |  1 -
 drivers/hwtracing/coresight/coresight-tpda.c       |  1 -
 drivers/hwtracing/coresight/coresight-tpdm.c       |  1 -
 drivers/hwtracing/coresight/coresight-tpiu.c       |  1 -
 drivers/i2c/busses/i2c-nomadik.c                   |  1 -
 drivers/input/serio/ambakmi.c                      |  1 -
 drivers/memory/pl353-smc.c                         |  1 -
 drivers/vfio/platform/vfio_amba.c                  |  1 -
 include/linux/amba/bus.h                           | 11 +++++++++--
 20 files changed, 16 insertions(+), 24 deletions(-)

---
base-commit: 1fdad13606e104ff103ca19d2d660830cb36d43e
change-id: 20240326-module-owner-amba-3ebb65256be7

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>