Skip to content

staging: fsl-mc: restructuring and cleanup

Stuart Yoder lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14staging: fsl-mc: rename mc-private.h to mc-bus.hdrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c drivers/staging/fsl-mc/bus/mc-allocator.c +3 more+9 -90 replies
2/14staging: fsl-mc: improve naming of source filesdrivers/staging/fsl-mc/bus/Makefile drivers/staging/fsl-mc/bus/fsl-mc-allocator.c drivers/staging/fsl-mc/bus/fsl-mc-bus.c +1 more+3 -30 replies
3/14staging: fsl-mc: move allocator private definitions out of mc-bus.hdrivers/staging/fsl-mc/bus/fsl-mc-allocator.c drivers/staging/fsl-mc/include/mc-bus.h+5 -50 replies
4/14staging: fsl-mc: move resource pool init/cleanup into allocatordrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/bus/fsl-mc-allocator.c drivers/staging/fsl-mc/include/mc-bus.h+56 -520 replies
5/14staging: fsl-mc: create private include for fsl-mc bus componentsdrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/bus/fsl-mc-allocator.c drivers/staging/fsl-mc/bus/fsl-mc-bus.c +2 more+47 -230 replies
6/14staging: fsl-mc: move dprc-driver private definitions out of mc-bus.hdrivers/staging/fsl-mc/bus/dprc-driver.c drivers/staging/fsl-mc/include/mc-bus.h+6 -60 replies
7/14staging: fsl-mc: move bus private definitions into fsl-mc-bus.cdrivers/staging/fsl-mc/bus/fsl-mc-bus.c drivers/staging/fsl-mc/include/mc-bus.h drivers/staging/fsl-mc/include/mc.h+33 -330 replies
8/14staging: fsl-mc: make fsl_mc_get_root_dprc publicdrivers/staging/fsl-mc/bus/fsl-mc-bus.c drivers/staging/fsl-mc/include/mc.h+6 -20 replies
9/14staging: fsl-mc: remove unneeded forward declarationsdrivers/staging/fsl-mc/include/mc-bus.h drivers/staging/fsl-mc/include/mc.h+0 -50 replies
10/14staging: fsl-mc: move bus definitions from mc.h to mc-bus.hdrivers/staging/fsl-mc/include/mc-bus.h drivers/staging/fsl-mc/include/mc.h+16 -160 replies
11/14staging: fsl-mc: remove unneeded includesdrivers/staging/fsl-mc/bus/fsl-mc-msi.c drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c drivers/staging/fsl-mc/include/mc-bus.h +1 more+0 -60 replies
12/14staging: fsl-mc: split mc-io definitions into a separate filedrivers/staging/fsl-mc/bus/Makefile drivers/staging/fsl-mc/bus/fsl-mc-allocator.c drivers/staging/fsl-mc/bus/fsl-mc-private.h +3 more+327 -3000 replies
13/14staging: fsl-mc: explicitly include files where they are neededdrivers/staging/fsl-mc/bus/fsl-mc-bus.c drivers/staging/fsl-mc/bus/mc-io.c drivers/staging/fsl-mc/bus/mc-sys.c +1 more+5 -20 replies
14/14staging: fsl-mc: make order of includes consistentdrivers/staging/fsl-mc/bus/dpmcp.c drivers/staging/fsl-mc/bus/dpmng.c drivers/staging/fsl-mc/bus/dprc-driver.c +7 more+17 -110 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] staging: fsl-mc: restructuring and cleanup

In preparation for moving this driver out of staging a review of the .h files intended to be public in include/linux/fsl turned up some needed cleanup. This patch series makes no functional changes to the driver, but does some restructuring to put public/private definitions in the right places and have a clear split between driver sub-components.
-update the public mc.h and mc-bus.h files to contain only public
definitions
-move all private definitions to their corresponding .c files or
to the new fsl-mc-private.h file for definitions private to the bus driver
-rename some source files to improve clarity
-create a new mc-io component to contain all APIs related to the
mc-io abstraction
-remove unneeded includes and forward definitions

Stuart Yoder (14):
staging: fsl-mc: rename mc-private.h to mc-bus.h
staging: fsl-mc: improve naming of source files
staging: fsl-mc: move allocator private definitions out of mc-bus.h
staging: fsl-mc: move resource pool init/cleanup into allocator
staging: fsl-mc: create private include for fsl-mc bus components
staging: fsl-mc: move dprc-driver private definitions out of mc-bus.h
staging: fsl-mc: move bus private definitions into fsl-mc-bus.c
staging: fsl-mc: make fsl_mc_get_root_dprc public
staging: fsl-mc: remove unneeded forward declarations
staging: fsl-mc: move bus definitions from mc.h to mc-bus.h
staging: fsl-mc: remove unneeded includes
staging: fsl-mc: split mc-io definitions into a separate file
staging: fsl-mc: explicitly include files where they are needed
staging: fsl-mc: make order of includes consistent

 drivers/staging/fsl-mc/bus/Makefile                |   7 +-
 drivers/staging/fsl-mc/bus/dpmcp.c                 |   1 +
 drivers/staging/fsl-mc/bus/dpmng.c                 |   1 +
 drivers/staging/fsl-mc/bus/dprc-driver.c           |  67 +----
 drivers/staging/fsl-mc/bus/dprc.c                  |   1 +
 .../bus/{mc-allocator.c => fsl-mc-allocator.c}     | 202 ++++---------
 .../staging/fsl-mc/bus/{mc-bus.c => fsl-mc-bus.c}  |  43 ++-
 .../staging/fsl-mc/bus/{mc-msi.c => fsl-mc-msi.c}  |   4 +-
 drivers/staging/fsl-mc/bus/fsl-mc-private.h        |  52 ++++
 .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c |   4 +-
 drivers/staging/fsl-mc/bus/mc-io.c                 | 320 +++++++++++++++++++++
 drivers/staging/fsl-mc/bus/mc-sys.c                | 155 +---------
 .../fsl-mc/include/{mc-private.h => mc-bus.h}      |  91 ++----
 drivers/staging/fsl-mc/include/mc-sys.h            |  15 -
 drivers/staging/fsl-mc/include/mc.h                |  20 --
 15 files changed, 520 insertions(+), 463 deletions(-)
 rename drivers/staging/fsl-mc/bus/{mc-allocator.c => fsl-mc-allocator.c} (80%)
 rename drivers/staging/fsl-mc/bus/{mc-bus.c => fsl-mc-bus.c} (94%)
 rename drivers/staging/fsl-mc/bus/{mc-msi.c => fsl-mc-msi.c} (98%)
 create mode 100644 drivers/staging/fsl-mc/bus/fsl-mc-private.h
 create mode 100644 drivers/staging/fsl-mc/bus/mc-io.c
 rename drivers/staging/fsl-mc/include/{mc-private.h => mc-bus.h} (53%)
Signature · 1 line
1.9.0