Skip to contentSkip to conversation

i2c: designware: Add device HID for future AMD I2C controller

PATCH In review Xiangliang Yu 4 participants 4 messages Mar 10, 2016 – Mar 12, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: designware: Add device HID for future AMD I2C controller

Add device HID AMDI0010 to match the AMD ACPI Vendor ID (AMDI) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on future AMD paltform will use the HID instead of AMD0010.

---
 drivers/acpi/acpi_apd.c                     | 1 +
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 2 insertions(+)
drivers/acpi/acpi_apd.c +1 -0
index d507cf6..d0aad06 100644
@@ -143,6 +143,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
 	/* Generic apd devices */
 #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
 	{ "AMD0010", APD_ADDR(cz_i2c_desc) },
+	{ "AMDI0010", APD_ADDR(cz_i2c_desc) },
 	{ "AMD0020", APD_ADDR(cz_uart_desc) },
 	{ "AMD0030", },
 #endif
drivers/i2c/busses/i2c-designware-platdrv.c +1 -0
index 438f1b4..d656657 100644
@@ -123,6 +123,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
 	{ "80860F41", 0 },
 	{ "808622C1", 0 },
 	{ "AMD0010", ACCESS_INTR_MASK },
+	{ "AMDI0010", ACCESS_INTR_MASK },
 	{ "AMDI0510", 0 },
 	{ "APMC0D0F", 0 },
 	{ }
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Xiangliang Yu

Add device HID AMDI0010 to match the AMD ACPI Vendor ID (AMDI) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on future AMD paltform will use the HID instead of AMD0010.

---
  drivers/acpi/acpi_apd.c                     | 1 +
  drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
  2 files changed, 2 insertions(+)
drivers/acpi/acpi_apd.c +1 -0
index d507cf6..d0aad06 100644
@@ -143,6 +143,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
  	/* Generic apd devices */
  #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
  	{ "AMD0010", APD_ADDR(cz_i2c_desc) },
+	{ "AMDI0010", APD_ADDR(cz_i2c_desc) },
  	{ "AMD0020", APD_ADDR(cz_uart_desc) },
  	{ "AMD0030", },
  #endif
drivers/i2c/busses/i2c-designware-platdrv.c +0 -0
index 438f1b4..d656657 100644

drivers/i2c/busses/i2c-designware-platdrv.c static const struct acpi_device_id dw_i2c_acpi_match[] = {

Quoted 8 lines
drivers/i2c/busses/i2c-designware-platdrv.c +1 -1
@@ -123,6 +123,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
  	{ "80860F41", 0 },
  	{ "808622C1", 0 },
  	{ "AMD0010", ACCESS_INTR_MASK },
+	{ "AMDI0010", ACCESS_INTR_MASK },
  	{ "AMDI0510", 0 },
  	{ "APMC0D0F", 0 },
  	{ }
--

I guess these changes don't necessarily need to go together? Although I think chances to get a conflict is pretty low.

For i2c-designware:

#2 lore raw
Quoted 39 lines · Jarkko Nikula
Quoted 27 lines · Xiangliang Yu

Add device HID AMDI0010 to match the AMD ACPI Vendor ID (AMDI) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on future AMD paltform will use the HID instead of AMD0010.

---
  drivers/acpi/acpi_apd.c                     | 1 +
  drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
  2 files changed, 2 insertions(+)
drivers/acpi/acpi_apd.c +1 -0
index d507cf6..d0aad06 100644
@@ -143,6 +143,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
  	/* Generic apd devices */
  #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
  	{ "AMD0010", APD_ADDR(cz_i2c_desc) },
+	{ "AMDI0010", APD_ADDR(cz_i2c_desc) },
  	{ "AMD0020", APD_ADDR(cz_uart_desc) },
  	{ "AMD0030", },
  #endif
drivers/i2c/busses/i2c-designware-platdrv.c +0 -0
index 438f1b4..d656657 100644

drivers/i2c/busses/i2c-designware-platdrv.c static const struct acpi_device_id dw_i2c_acpi_match[] = {

Quoted 8 lines
drivers/i2c/busses/i2c-designware-platdrv.c +1 -1
@@ -123,6 +123,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
  	{ "80860F41", 0 },
  	{ "808622C1", 0 },
  	{ "AMD0010", ACCESS_INTR_MASK },
+	{ "AMDI0010", ACCESS_INTR_MASK },
  	{ "AMDI0510", 0 },
  	{ "APMC0D0F", 0 },
  	{ }
--

I guess these changes don't necessarily need to go together? Although I think chances to get a conflict is pretty low.

Quoted 2 lines

For i2c-designware:

OK, queued up for 4.6, thanks!

Rafael

Acked-by
#3 lore raw
In reply to Jarkko Nikula
Quoted 30 lines · Jarkko Nikula
Quoted 29 lines · Xiangliang Yu

Add device HID AMDI0010 to match the AMD ACPI Vendor ID (AMDI) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on future AMD paltform will use the HID instead of AMD0010.

---
 drivers/acpi/acpi_apd.c                     | 1 +
 drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
 2 files changed, 2 insertions(+)
drivers/acpi/acpi_apd.c +1 -0
index d507cf6..d0aad06 100644
@@ -143,6 +143,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
 	/* Generic apd devices */
 #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
 	{ "AMD0010", APD_ADDR(cz_i2c_desc) },
+	{ "AMDI0010", APD_ADDR(cz_i2c_desc) },
 	{ "AMD0020", APD_ADDR(cz_uart_desc) },
 	{ "AMD0030", },
 #endif
drivers/i2c/busses/i2c-designware-platdrv.c +0 -0
index 438f1b4..d656657 100644
@@ -123,6 +123,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
 	{ "80860F41", 0 },
 	{ "808622C1", 0 },
Quoted 8 lines

drivers/i2c/busses/i2c-designware-platdrv.c static const struct acpi_device_id dw_i2c_acpi_match[] = {

Quoted 6 lines
drivers/i2c/busses/i2c-designware-platdrv.c +1 -1
 	{ "AMD0010", ACCESS_INTR_MASK },
+	{ "AMDI0010", ACCESS_INTR_MASK },
 	{ "AMDI0510", 0 },
 	{ "APMC0D0F", 0 },
 	{ }
--

I guess these changes don't necessarily need to go together? Although I think chances to get a conflict is pretty low.

I would have preferred seperate patches, too.

Quoted 2 lines

For i2c-designware:

For the record: