Skip to content

I2C ACPI operation region handler

Lan Tianyu linux-acpi linux-i2c lkml 4 versions – Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 16 repliesApplied
  2. v29 patches 29 repliesSuperseded
  3. v1 posting 2/20 of 9 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 posting 1/29 patches19 repliesSuperseded

Changes in v3 from the cover letter

Drop patchs of adding I2C smbus quick read/write and word/block
process call functions because not find machines supporting such protocols so far and can't test these functions.
Merge patchs of "I2C ACPI related code clear up" and "Add CONFIG_I2C_ACPI
config"
Patch 2: Add acpi_bus_detach_private_data() function to detach data from
ACPI handle and replace ACPI_ERROR() with acpi_handle_debug() to avoid some redundant error log.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5ACPICA: Export acpi_buffer_to_resource symboldrivers/acpi/acpica/rscreate.c+1 -02 replies
2/5ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handledrivers/acpi/bus.c include/acpi/acpi_bus.h+26 -40 replies
3/5ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private datadrivers/acpi/thermal.c+4 -70 replies
4/5I2C/ACPI: Add i2c ACPI operation region supportdrivers/i2c/Makefile drivers/i2c/i2c-acpi.c drivers/i2c/i2c-core.c +2 more+300 -13 replies
5/5I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI configdrivers/i2c/Kconfig drivers/i2c/Makefile drivers/i2c/i2c-acpi.c +2 more+110 -982 replies

Reviews trailers per patch

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

PatchMika Westerberg
1/5R-b
2/5R-b
3/5R-b
4/5
5/5R-b

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/5] I2C ACPI operation region handler

ACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.

On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011

Change since V2:
Drop patchs of adding I2C smbus quick read/write and word/block
process call functions because not find machines supporting such protocols so far and can't test these functions.
Merge patchs of "I2C ACPI related code clear up" and "Add CONFIG_I2C_ACPI
config"
Patch 2: Add acpi_bus_detach_private_data() function to detach data from
ACPI handle and replace ACPI_ERROR() with acpi_handle_debug() to avoid some redundant error log.

Change since V1:
Fix some code style issues. Change prefix i2c_acpi to acpi_i2c.
Move ACPI related code in the i2c core to i2c-acpi.c. Add CONFIG_I2C_ACPI and make i2c core built-in when it's set to avoid i2c ACPI operation region being removed.

Lan Tianyu (5):
ACPICA: Export acpi_buffer_to_resource symbol
ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data
to ACPI handle
ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private
data
I2C/ACPI: Add i2c ACPI operation region support
I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config

 drivers/acpi/acpica/rscreate.c |   1 +
 drivers/acpi/bus.c             |  28 +++-
 drivers/acpi/thermal.c         |  11 +-
 drivers/i2c/Kconfig            |  18 +-
 drivers/i2c/Makefile           |   5 +-
 drivers/i2c/i2c-acpi.c         | 362 +++++++++++++++++++++++++++++++++++++++++
 drivers/i2c/i2c-core.c         |  97 +----------
 include/acpi/acpi_bus.h        |   2 +
 include/linux/acpi.h           |  11 ++
 include/linux/i2c.h            |  12 ++
 10 files changed, 439 insertions(+), 108 deletions(-)
 create mode 100644 drivers/i2c/i2c-acpi.c
Signature · 1 line
1.8.3.1