Skip to contentSkip to conversation

pinctrl/amd: Add device HID for new AMD GPIO controller

PATCH In review Maximilian Luz 3 participants 5 messages May 12, 2021 – May 25, 2021

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

PATCH 1/1 pinctrl/amd: Add device HID for new AMD GPIO controller

Add device HID AMDI0031 to the AMD GPIO controller driver match table. This controller can be found on Microsoft Surface Laptop 4 devices and seems similar enough that we can just copy the existing AMDI0030 entry.

---
 drivers/pinctrl/pinctrl-amd.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/pinctrl-amd.c +1 -0
index 2d4acf21117c..c5950a3b4e4c 100644
@@ -991,6 +991,7 @@ static int amd_gpio_remove(struct platform_device *pdev)
 static const struct acpi_device_id amd_gpio_acpi_match[] = {
 	{ "AMD0030", 0 },
 	{ "AMDI0030", 0},
+	{ "AMDI0031", 0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, amd_gpio_acpi_match);
Signature · 1 line
2.31.1
#1 lore raw
Quoted 5 lines · Maximilian Luz

Add device HID AMDI0031 to the AMD GPIO controller driver match table. This controller can be found on Microsoft Surface Laptop 4 devices and seems similar enough that we can just copy the existing AMDI0030 entry.

Cc <[email protected]> # 5.10+

Why? It's hardly a regression?

Quoted 2 lines

I've applied the patch for next without the stable tag for now.

Yours,
Linus Walleij

#2 lore raw
Quoted 9 lines · Linus Walleij
Quoted 5 lines · Maximilian Luz

Add device HID AMDI0031 to the AMD GPIO controller driver match table. This controller can be found on Microsoft Surface Laptop 4 devices and seems similar enough that we can just copy the existing AMDI0030 entry.

Cc <[email protected]> # 5.10+

Why? It's hardly a regression?

Because that ID is already in use on the Surface Laptop 4 and potentially other AMD-based laptops that are already available for purchase. Not having it in stable means that people may have to deal with some things not working (as this may prevent other drivers relying on GPIOs from working) until 5.14 is available on their distribution of choice.

Given the size of this change, I hardly think that's necessary. Which is, I believe, also why the stable-kernel-rules doc points out that new device IDs are (generally) allowed.

Regards,
Max

#3 lore raw
In reply to Linus Walleij
Quoted 9 lines · Linus Walleij
Quoted 5 lines · Maximilian Luz

Add device HID AMDI0031 to the AMD GPIO controller driver match table. This controller can be found on Microsoft Surface Laptop 4 devices and seems similar enough that we can just copy the existing AMDI0030 entry.

Cc <[email protected]> # 5.10+

Why? It's hardly a regression?

IIRC the stable policy allows to backport new IDs.

Quoted 4 lines
Quoted 2 lines

I've applied the patch for next without the stable tag for now.

It can be pulled to stable afterwards anyway :-)

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw
Quoted 7 lines · Andy Shevchenko
Quoted 6 lines · Linus Walleij
Quoted 4 lines · Maximilian Luz

Add device HID AMDI0031 to the AMD GPIO controller driver match table. This controller can be found on Microsoft Surface Laptop 4 devices and seems similar enough that we can just copy the existing AMDI0030 entry.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Cc <[email protected]> # 5.10+

Why? It's hardly a regression?

IIRC the stable policy allows to backport new IDs.

You're right.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I've applied the patch for next without the stable tag for now.

It can be pulled to stable afterwards anyway :-)

Nah I'll tag it back on. But it goes upstream with the rest of patches for v5.14 in the merge window because it is not urgent.

Yours,
Linus Walleij