Skip to content

I2C and SPI dev_name change for ACPI enumerated slaves

Jarkko Nikula alsa-devel linux-acpi linux-i2c linux-spi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v1 RFC2 patches 11 repliesSuperseded

Changes in v4 from the cover letter

This version adds and uses acpi_dev_name() accessor instead defining struct acpi_device stub for !CONFIG_ACPI

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: Provide acpi_dev_name accessor for struct acpi_device device nameinclude/linux/acpi.h+10 -00 replies
2/3i2c: Use stable dev_name for ACPI enumerated I2C slavesdrivers/i2c/i2c-core.c+17 -41 reply
3/3spi: Use stable dev_name for ACPI enumerated SPI slavesdrivers/spi/spi.c+14 -30 replies

Reviews trailers per patch

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

PatchMark BrownWolfram Sang
1/3
2/3A-b
3/3A-b

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

Read the v4 thread

Cover letter [PATCHv4 0/3] I2C and SPI dev_name change for ACPI enumerated slaves

v4:
This version adds and uses acpi_dev_name() accessor instead defining struct acpi_device stub for !CONFIG_ACPI

v3:
Third version of the set that changes I2C and SPI slave device names to be generated from stable ACPI device names on ACPI 5 based systems instead of using bus numbers which could change.

Slave device name change goes as

	"x-00yz" -> "i2c-INTABCD:ij"
	"spix.y" -> "spi-INTABCD:ij"

This version is actually a bit cleaner thanks to Rafael's "ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node" in git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Set goes on top of linux-pm/linux-next due dependency to 1/3. As we are now in merge-window I'm fine if 1/3 goes in first and I queue 2-3/3 later to i2c and spi trees.

Jarkko Nikula (3):
ACPI: Provide acpi_dev_name accessor for struct acpi_device device
name
i2c: Use stable dev_name for ACPI enumerated I2C slaves
spi: Use stable dev_name for ACPI enumerated SPI slaves

 drivers/i2c/i2c-core.c | 21 +++++++++++++++++----
 drivers/spi/spi.c      | 17 ++++++++++++++---
 include/linux/acpi.h   | 10 ++++++++++
 3 files changed, 41 insertions(+), 7 deletions(-)
Signature · 1 line
1.8.4.2