Skip to content

pinctrl: API rework, pinconfig in mapping table, ...

Stephen Warren lkml 2 versions – Applied

Status from this message: Applied this to my tegra-diet branch (the one with just the driver and

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 5 repliesApplied
  2. v26 patches 11 repliesSuperseded

Changes in v3 from the cover letter

* Added patch "Show selected function and group in pinmux-pins debugfs".
* Fixed review feedback in "Enhance mapping table to support pin config operations".

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7pinctrl: Fix and simplify lockingdrivers/pinctrl/core.c drivers/pinctrl/core.h drivers/pinctrl/pinconf.c +2 more+215 -1220 replies
2/7pinctrl: Refactor struct pinctrl handling in core.c vs pinmux.cdrivers/pinctrl/core.c drivers/pinctrl/core.h drivers/pinctrl/pinmux.c +1 more+197 -3760 replies
3/7pinctrl: Add usecount to pins for muxingdrivers/pinctrl/core.h drivers/pinctrl/pinmux.c+28 -50 replies
4/7pinctrl: API changes to support multiple states per deviceDocumentation/pinctrl.txt arch/arm/mach-u300/core.c drivers/pinctrl/core.c +4 more+375 -2251 reply
5/7pinctrl: Enhance mapping table to support pin config operationsDocumentation/pinctrl.txt arch/arm/mach-u300/core.c drivers/pinctrl/core.c +6 more+611 -1080 replies
6/7pinctrl: Show selected function and group in pinmux-pins debugfsdrivers/pinctrl/core.h drivers/pinctrl/pinmux.c+69 -10 replies
7/7pinctrl: fix case of Tegra30's foo_groups[] arraysdrivers/pinctrl/pinctrl-tegra30.c+996 -9962 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchDong AishengLinus Walleij
1/7
2/7A-b A-b
3/7A-b
4/7A-b
5/7A-b
6/7
7/7

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

Read the v3 thread

Cover letter [PATCH V3 0/7] pinctrl: API rework, pinconfig in mapping table, ...

This is the current set of patches I have outstanding for pinctrl.

NOTE: This series assumes that commit 7d23de2 "pinctrl: resurrect verbose pinmux-pins" is dropped, since "Show selected function and group in pinmux-pins debugfs" re-implements it in a way that's compatible with all the API rework and restructing in this series.

The locking rework change is still under discussion; I haven't seen a nak/ack since I was asked to move it later in the series and I explained the difficulties in doing so while maintaining correctness.

The other changes have fixes based on review feedback.

The Tegra30 pinctrl driver fix should be OK to apply out-of-order if you want. I'd even be happy if you squashed it into the original commit that added the driver, if you branch doesn't need to be git-stable.

v3:
* Added patch "Show selected function and group in pinmux-pins debugfs".
* Fixed review feedback in "Enhance mapping table to support pin config operations".

Stephen Warren (7):
pinctrl: Fix and simplify locking
pinctrl: Refactor struct pinctrl handling in core.c vs pinmux.c
pinctrl: Add usecount to pins for muxing
pinctrl: API changes to support multiple states per device
pinctrl: Enhance mapping table to support pin config operations
pinctrl: Show selected function and group in pinmux-pins debugfs
pinctrl: fix case of Tegra30's foo_groups[] arrays

 Documentation/pinctrl.txt         |  196 +++-
 arch/arm/mach-u300/core.c         |   28 +-
 drivers/pinctrl/core.c            |  630 ++++++++----
 drivers/pinctrl/core.h            |   89 ++-
 drivers/pinctrl/pinconf.c         |  272 +++++-
 drivers/pinctrl/pinconf.h         |   40 +
 drivers/pinctrl/pinctrl-tegra30.c | 1992 ++++++++++++++++++------------------
 drivers/pinctrl/pinmux.c          |  507 ++++------
 drivers/pinctrl/pinmux.h          |   58 +-
 drivers/tty/serial/sirfsoc_uart.c |   12 +-
 include/linux/pinctrl/consumer.h  |   55 +-
 include/linux/pinctrl/machine.h   |  148 +++-
 include/linux/pinctrl/pinctrl.h   |    1 -
 13 files changed, 2343 insertions(+), 1685 deletions(-)