Skip to content

staging: fsl-mc: module loading support, fixes, and cleanup

Stuart Yoder lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11staging: fsl-mc: add support for the modalias sysfs attributedrivers/staging/fsl-mc/bus/mc-bus.c+25 -00 replies
2/11staging: fsl-mc: implement uevent callback and set the modaliasdrivers/staging/fsl-mc/bus/mc-bus.c+7 -10 replies
3/11staging: fsl-mc: clean up the device id structdrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/bus/mc-allocator.c drivers/staging/fsl-mc/bus/mc-bus.c +1 more+6 -101 reply
4/11staging: fsl-mc: add support for device table matchingdrivers/staging/fsl-mc/include/mc.h include/linux/mod_devicetable.h scripts/mod/devicetable-offsets.c +1 more+32 -130 replies
5/11staging: fsl-mc: export mc_get_versiondrivers/staging/fsl-mc/bus/dpmng.c+1 -00 replies
6/11staging: fsl-mc: make fsl_mc_is_root_dprc() globaldrivers/staging/fsl-mc/bus/mc-bus.c drivers/staging/fsl-mc/include/mc.h+15 -153 replies
7/11staging: fsl-mc: fix asymmetry in destroy of mc_iodrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/bus/mc-bus.c+9 -40 replies
8/11staging: fsl-mc: dprc: add missing irq freedrivers/staging/fsl-mc/bus/dprc-driver.c+5 -00 replies
9/11staging: fsl-mc: dprc: fix ordering problem freeing resources in remove of dprcdrivers/staging/fsl-mc/bus/dprc-driver.c+6 -40 replies
10/11staging: fsl-mc: properly set hwirq in msi set_descdrivers/staging/fsl-mc/bus/mc-msi.c+16 -10 replies
11/11staging: fsl-mc: convert mc command build/parse to use C structsdrivers/staging/fsl-mc/bus/dpbp.c drivers/staging/fsl-mc/bus/dpmcp-cmd.h drivers/staging/fsl-mc/bus/dpmcp.c +7 more+1056 -6330 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchMatthias Brugger
1/11
2/11
3/11R-b
4/11
5/11
6/11R-b
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] staging: fsl-mc: module loading support, fixes, and cleanup

This patch series does some cleanup and further sets the stage for additional fsl-mc device drivers.

-Patches 1-4 add missing fsl-mc support for modalias and udev-based
module loading of drivers.
-Patch 5 exports a function some drivers rely on.
-Patch 6 makes a needed helper function visible to the dprc driver. -Patch 7 fixes a bug where an asymmetry existed in how mc_io structs
were destroyed.
-Patch 8 fixes a bug where an irq free was missing in the dprc driver. -Patch 9 fixes a bug where there was an ordering issue with how resources
were freed.
-Patch 10 fixes a bug with how hwirq numbers were determined, which
prevented more than one dprc from being used by the kernel
-Patch 11 is a cleanup patch to improve the readability/maintainability of
the functions that build/parse MC commands. It uses structs instead of the previous shift/mask macros. This sets the precedence we want other new drivers to follow.

Bharat Bhushan (1):
staging: fsl-mc: fix asymmetry in destroy of mc_io

Ioana Radulescu (1):
staging: fsl-mc: convert mc command build/parse to use C structs

Stuart Yoder (9):
staging: fsl-mc: add support for the modalias sysfs attribute
staging: fsl-mc: implement uevent callback and set the modalias
staging: fsl-mc: clean up the device id struct
staging: fsl-mc: add support for device table matching
staging: fsl-mc: export mc_get_version
staging: fsl-mc: make fsl_mc_is_root_dprc() global
staging: fsl-mc: dprc: add missing irq free
staging: fsl-mc: dprc: fix ordering problem freeing resources in
remove of dprc
staging: fsl-mc: properly set hwirq in msi set_desc

 drivers/staging/fsl-mc/bus/dpbp.c         | 132 ++++--
 drivers/staging/fsl-mc/bus/dpmcp-cmd.h    |  86 +++-
 drivers/staging/fsl-mc/bus/dpmcp.c        |  89 ++--
 drivers/staging/fsl-mc/bus/dpmng-cmd.h    |  12 +-
 drivers/staging/fsl-mc/bus/dpmng.c        |  15 +-
 drivers/staging/fsl-mc/bus/dprc-cmd.h     | 379 +++++++++++++++-
 drivers/staging/fsl-mc/bus/dprc-driver.c  |  20 +-
 drivers/staging/fsl-mc/bus/dprc.c         | 715 ++++++++++--------------------
 drivers/staging/fsl-mc/bus/mc-allocator.c |   2 +-
 drivers/staging/fsl-mc/bus/mc-bus.c       |  71 ++-
 drivers/staging/fsl-mc/bus/mc-msi.c       |  17 +-
 drivers/staging/fsl-mc/bus/mc-sys.c       |  46 +-
 drivers/staging/fsl-mc/include/dpbp-cmd.h | 125 +++++-
 drivers/staging/fsl-mc/include/mc-cmd.h   |  91 ++--
 drivers/staging/fsl-mc/include/mc.h       |  21 +-
 include/linux/mod_devicetable.h           |  16 +
 scripts/mod/devicetable-offsets.c         |   4 +
 scripts/mod/file2alias.c                  |  12 +
 18 files changed, 1175 insertions(+), 678 deletions(-)
Signature · 1 line
1.9.0