Skip to content

platform/x86: int3472: don't use gpiod_toggle_active_low()

Hans de Goede linux-acpi linux-gpio platform-driver-x86 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 3 repliesIn review
  2. v25 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5platform/x86: int3472: Add new skl_int3472_fill_gpiod_lookup() helperdrivers/platform/x86/intel/int3472/discrete.c+22 -101 reply
2/5platform/x86: int3472: Add new skl_int3472_gpiod_get_from_temp_lookup() helperdrivers/platform/x86/intel/int3472/discrete.c+26 -00 replies
3/5platform/x86: int3472: Stop using gpiod_toggle_active_low()drivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/common.h drivers/platform/x86/intel/int3472/discrete.c +1 more+40 -581 reply
4/5platform/x86: int3472: Switch to devm_get_gpiod()drivers/platform/x86/intel/int3472/clk_and_regulator.c drivers/platform/x86/intel/int3472/discrete.c drivers/platform/x86/intel/int3472/led.c+6 -261 reply
5/5gpio: acpi: remove acpi_get_and_request_gpiod()drivers/gpio/gpiolib-acpi.c include/linux/gpio/consumer.h+0 -360 replies

Reviews trailers per patch

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

PatchAndy ShevchenkoMika WesterbergBartosz Golaszewski
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] platform/x86: int3472: don't use gpiod_toggle_active_low()

Hi All,

Here is v3 of Bartosz' and my "don't use gpiod_toggle_active_low()" series.

New in v3:
- Correctly preserve Bartosz as author for 2 of the patches
- Add Reviewed-by tags from Mika and Andy
- Fix wrong size of gpio lookup table allocation in new skl_int3472_gpiod_get_from_temp_lookup() helper. There must also be an empty terminating lookup, so 2 entries must be allocated.

New in v2:
- Rework to deal with ACPI path vs gpiod_lookup.key differences:
acpi_get_handle(path) -> acpi_fetch_acpi_dev(handle) -> acpi_dev_name(adev)

Regards,

Hans

Bartosz Golaszewski (2):
platform/x86: int3472: Add new

    skl_int3472_gpiod_get_from_temp_lookup() helper

gpio: acpi: remove acpi_get_and_request_gpiod()

Hans de Goede (3):
platform/x86: int3472: Add new skl_int3472_fill_gpiod_lookup() helper platform/x86: int3472: Stop using gpiod_toggle_active_low() platform/x86: int3472: Switch to devm_get_gpiod()

 drivers/gpio/gpiolib-acpi.c                   |  28 -----
 .../x86/intel/int3472/clk_and_regulator.c     |  54 ++--------
 drivers/platform/x86/intel/int3472/common.h   |   7 +-
 drivers/platform/x86/intel/int3472/discrete.c | 101 ++++++++++++++----
 drivers/platform/x86/intel/int3472/led.c      |  24 +----
 include/linux/gpio/consumer.h                 |   8 --
 6 files changed, 93 insertions(+), 129 deletions(-)
Signature · 1 line
2.41.0