Skip to content

ACPI 5 support for GPIO, SPI and I2C

Mika Westerberg linux-acpi lkml 4 versions – In review

Get series with b4
b4 am 1353435212-15325-1-git-send-email-mika.westerberg@linux.intel.com

Versions newest first · linked by author and title

  1. v4 Latest3 patches 11 repliesIn review
  2. v33 patches 6 repliesSuperseded
  3. v23 patches 30 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches86 repliesSuperseded

Changes to v3 from the cover letter

- simplify acpi_gpiochip_find()
- acpi_spi/i2c_add_resource() uses acpi_dev_resource_interrupt() directly instead of first checking the resource type
- acpi_spi/i2c_add_device() calls acpi_dev_free_resource_list() immediately after walking the resources and get rid of fail_put_dev label.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gpio / ACPI: add ACPI supportdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpiolib-acpi.c +1 more+78 -02 replies
2/3spi / ACPI: add ACPI enumeration supportdrivers/spi/spi.c+102 -12 replies
3/3i2c / ACPI: add ACPI enumeration supportdrivers/acpi/Kconfig drivers/acpi/Makefile drivers/acpi/acpi_i2c.c +2 more+125 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchGrant Likely
1/3A-b
2/3A-b
3/3

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

Read the v4 thread

Cover letter [PATCH v4 0/3] ACPI 5 support for GPIO, SPI and I2C

This is fourth version of the series. I've based these on top of Rafael's "simplify glueing ACPI handles to physical nodes" available from here:

	https://lkml.org/lkml/2012/11/19/588

There is a dependency to linux-pm tree and to the above patches so I propose to merge these via that same tree. Subsystem maintainers, can you ack these if you think that they are a suitable shape?

Changes to v3:
- simplify acpi_gpiochip_find()
- acpi_spi/i2c_add_resource() uses acpi_dev_resource_interrupt() directly instead of first checking the resource type
- acpi_spi/i2c_add_device() calls acpi_dev_free_resource_list() immediately after walking the resources and get rid of fail_put_dev label.

Changes to v2:
- drop the ACPI ->find_device() glue magic in preference of the new simplified mechanism where we just assign the ACPI handle
- correct the IRQ resource handling to take the first resource and skip the rest
- moved declaration of acpi_i2c_register_devices() to i2c.h instead of having a separate header for a single function

Changes to the original version:
[gpio]
- CONFIG_GPIO_ACPI instead of CONFIG_ACPI_GPIO
- removed redundant test in acpi_gpiochip_find()

[spi and i2c]
- switched to use ACPI centralized _CRS evaluation framework introduced by Rafael
- dropped request_module() call
- dropped the acpi_enumerate_spi/i2c_device()
- added required includes and dropped <linux/acpi.h> from acpi_i2c.h

Thanks.

Mathias Nyman (1):
gpio / ACPI: add ACPI support

Mika Westerberg (2):
spi / ACPI: add ACPI enumeration support
i2c / ACPI: add ACPI enumeration support

 drivers/acpi/Kconfig        |    6 +++
 drivers/acpi/Makefile       |    1 +
 drivers/acpi/acpi_i2c.c     |  103 +++++++++++++++++++++++++++++++++++++++++++
 drivers/gpio/Kconfig        |    4 ++
 drivers/gpio/Makefile       |    1 +
 drivers/gpio/gpiolib-acpi.c |   54 +++++++++++++++++++++++
 drivers/i2c/i2c-core.c      |    6 +++
 drivers/spi/spi.c           |  103 ++++++++++++++++++++++++++++++++++++++++++-
 include/linux/acpi_gpio.h   |   19 ++++++++
 include/linux/i2c.h         |    9 ++++
 10 files changed, 305 insertions(+), 1 deletion(-)
 create mode 100644 drivers/acpi/acpi_i2c.c
 create mode 100644 drivers/gpio/gpiolib-acpi.c
 create mode 100644 include/linux/acpi_gpio.h
Signature · 1 line
1.7.10.4