Skip to content

gpio: exar: refactor the driver

Bartosz Golaszewski linux-gpio lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 8 repliesIn review
  2. v47 patches 10 repliesSuperseded
  3. v3 posting 2/27 patches 11 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/20 of 7 patches1 replySuperseded
v28 patches6 repliesSuperseded
v11 patch4 repliesSuperseded

Changes in v5 from the cover letter

- set the reg_bits to 11 in regmap config
- collect review tags from Andy

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7gpio: exar: add a newline after the copyright noticedrivers/gpio/gpio-exar.c+1 -00 replies
2/7gpio: exar: include idr.hdrivers/gpio/gpio-exar.c+1 -00 replies
3/7gpio: exar: switch to a simpler IDA interfacedrivers/gpio/gpio-exar.c+3 -30 replies
4/7gpio: exar: use a helper variable for &pdev->devdrivers/gpio/gpio-exar.c+7 -80 replies
5/7gpio: exar: unduplicate address and offset computationdrivers/gpio/gpio-exar.c+28 -120 replies
6/7gpio: exar: switch to using regmapdrivers/gpio/Kconfig drivers/gpio/gpio-exar.c+43 -540 replies
7/7gpio: exar: use devm action for freeing the IDA and drop remove()drivers/gpio/gpio-exar.c+12 -150 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/7] gpio: exar: refactor the driver

From: Bartosz Golaszewski <[email protected]>

I just wanted to convert the driver to using simpler IDA API but ended up quickly converting it to using regmap. Unfortunately I don't have the HW to test it so marking the patches that introduce functional change as RFT and Cc'ing the original author.

v1 -> v2:
- add new regmap helper: regmap_assign_bits()
- fix lvl vs sel register access
- set value in direction_output callback

v2 -> v3:
- drop the regmap helper from series

v3 -> v4:
- renamed the regmap variable to 'regmap' as leaving the old name caused me to miss an assignment leading to a crash (culprit spotted by Andy Shevchenko)

v4 -> v5:
- set the reg_bits to 11 in regmap config
- collect review tags from Andy

Bartosz Golaszewski (7):
gpio: exar: add a newline after the copyright notice
gpio: exar: include idr.h
gpio: exar: switch to a simpler IDA interface
gpio: exar: use a helper variable for &pdev->dev
gpio: exar: unduplicate address and offset computation
gpio: exar: switch to using regmap
gpio: exar: use devm action for freeing the IDA and drop remove()

 drivers/gpio/Kconfig     |   1 +
 drivers/gpio/gpio-exar.c | 160 ++++++++++++++++++++-------------------
 2 files changed, 82 insertions(+), 79 deletions(-)
Signature · 1 line
2.29.1