Skip to content

pinctrl: samsung: Data structure clean-up

Tomasz Figa linux-arm-kernel linux-samsung-soc lkml 2 versions – Applied

Status from this message: I've merged Abhilash's patches so now this work needs to be rebased

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesApplied
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- rebased on current devel branch of pinctrl tree.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5pinctrl: samsung: Make samsung_pinctrl_get_soc_data use ERR_PTR()drivers/pinctrl/samsung/pinctrl-samsung.c+3 -30 replies
2/5pinctrl: samsung: Drop unused label field in samsung_pin_ctrl structdrivers/pinctrl/samsung/pinctrl-exynos.c drivers/pinctrl/samsung/pinctrl-s3c24xx.c drivers/pinctrl/samsung/pinctrl-s3c64xx.c +1 more+0 -300 replies
3/5pinctrl: samsung: Constify samsung_pin_bank_type structdrivers/pinctrl/samsung/pinctrl-exynos.c drivers/pinctrl/samsung/pinctrl-s3c24xx.c drivers/pinctrl/samsung/pinctrl-s3c64xx.c +2 more+23 -250 replies
4/5pinctrl: samsung: Constify samsung_pin_ctrl structdrivers/pinctrl/samsung/pinctrl-exynos.c drivers/pinctrl/samsung/pinctrl-s3c24xx.c drivers/pinctrl/samsung/pinctrl-s3c64xx.c +2 more+96 -950 replies
5/5pinctrl: samsung: Separate per-bank init and runtime datadrivers/pinctrl/samsung/pinctrl-exynos.c drivers/pinctrl/samsung/pinctrl-s3c24xx.c drivers/pinctrl/samsung/pinctrl-s3c64xx.c +2 more+72 -330 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchMarek Szyprowski
1/5T-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] pinctrl: samsung: Data structure clean-up

This series intends to clean up data structures used by pinctrl-samsung driver. More specifically, it separates initial compile time constants from data used at runtime, allowing unused variant data to be dropped and selected structures constified to improve safety.

As a side effect, size of vmlinux built from multi_v7_defconfig was reduced from:

text data bss dec hex filename
10296708 1227100 313544 11837352 b49fa8 vmlinux

to:

text data bss dec hex filename
10296740 1176860 313544 11787144 b3db88 vmlinux

and quite a bit of data were moved from normal data sections to .init.data:

pre:

Idx Name          Size      VMA       LMA       File off  Algn
  3 .rodata       0026c080  c0881000  c0881000  00681000  2**6
 23 .init.data    0003ff7c  c0bdb830  c0bdb830  009e3830  2**3
 24 .data..percpu 00002100  c0c1c000  c0c1c000  00a24000  2**6
 25 .data         000e98e0  c0c20000  c0c20000  00a28000  2**6

post:

Idx Name          Size      VMA       LMA       File off  Algn
  3 .rodata       0026bf20  c0881000  c0881000  00681000  2**6
 23 .init.data    00041bbc  c0bdb830  c0bdb830  009e3830  2**3
 24 .data..percpu 00002100  c0c1e000  c0c1e000  00a26000  2**6
 25 .data         000db860  c0c22000  c0c22000  00a2a000  2**6

This series should not introduce any functional changes.

Tested on S3C6410-based Mini6410 board booted using device tree, with GPIO leds and GPIO keyboard. Compile tested for s3c24xx, exynos, s5pv210.

Changes since v1:
- rebased on current devel branch of pinctrl tree.

Tomasz Figa (5):
pinctrl: samsung: Make samsung_pinctrl_get_soc_data use ERR_PTR()
pinctrl: samsung: Drop unused label field in samsung_pin_ctrl struct
pinctrl: samsung: Constify samsung_pin_bank_type struct
pinctrl: samsung: Constify samsung_pin_ctrl struct
pinctrl: samsung: Separate per-bank init and runtime data

 drivers/pinctrl/samsung/pinctrl-exynos.c  | 111 ++++++++++----------------
 drivers/pinctrl/samsung/pinctrl-s3c24xx.c |  30 +++----
 drivers/pinctrl/samsung/pinctrl-s3c64xx.c |  31 ++++----
 drivers/pinctrl/samsung/pinctrl-samsung.c | 126 ++++++++++++++++--------------
 drivers/pinctrl/samsung/pinctrl-samsung.h |  78 ++++++++++++------
 5 files changed, 192 insertions(+), 184 deletions(-)
Signature · 1 line
2.1.1