Skip to contentSkip to conversation

gpiolib: acpi: Use METHOD_NAME__AEI macro for acpi_walk_resources

PATCH In review Xiang Yang 3 participants 5 messages Oct 20, 2022 – Oct 25, 2022

Subsystems (2)
lore
Share & tools
lore

Xiang Yang

author
#0 lore raw

PATCH 1/1 gpiolib: acpi: Use METHOD_NAME__AEI macro for acpi_walk_resources

Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

---
 drivers/gpio/gpiolib-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-acpi.c +1 -1
index a7d2358736fe..064ba5150fd4 100644
@@ -512,7 +512,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
 	if (ACPI_FAILURE(status))
 		return;
 
-	acpi_walk_resources(handle, "_AEI",
+	acpi_walk_resources(handle, METHOD_NAME__AEI,
 			    acpi_gpiochip_alloc_event, acpi_gpio);
 
 	mutex_lock(&acpi_gpio_deferred_req_irqs_lock);
Signature · 1 line
2.22.0
#1 lore raw
Quoted 13 lines · Xiang Yang

Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

---
 drivers/gpio/gpiolib-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-acpi.c +0 -0
index a7d2358736fe..064ba5150fd4 100644

drivers/gpio/gpiolib-acpi.c void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) · line 516

Quoted 6 lines
drivers/gpio/gpiolib-acpi.c +1 -1
@@ -512,7 +512,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
        if (ACPI_FAILURE(status))
                return;
 
-       acpi_walk_resources(handle, "_AEI",
+       acpi_walk_resources(handle, METHOD_NAME__AEI,
                            acpi_gpiochip_alloc_event, acpi_gpio);

This line dates back to 2018 so why -next in your PATCH tag?

That being said - patch applied (unless Andy wants to take it directly).

Bart

Quoted 5 lines
drivers/gpio/gpiolib-acpi.c +0 -1
        mutex_lock(&acpi_gpio_deferred_req_irqs_lock);
--

2.22.0

#2 lore raw
Quoted 17 lines · Bartosz Golaszewski
Quoted 16 lines · Xiang Yang

Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

---
 drivers/gpio/gpiolib-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-acpi.c +0 -0
index a7d2358736fe..064ba5150fd4 100644
@@ -512,7 +512,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
        if (ACPI_FAILURE(status))
                return;
 
Quoted 5 lines

drivers/gpio/gpiolib-acpi.c void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) · line 516

Quoted 3 lines
drivers/gpio/gpiolib-acpi.c +1 -1
-       acpi_walk_resources(handle, "_AEI",
+       acpi_walk_resources(handle, METHOD_NAME__AEI,
                            acpi_gpiochip_alloc_event, acpi_gpio);

This line dates back to 2018 so why -next in your PATCH tag?

This means "for Linux next cycle". It has roots in the net subsystem where it's a requirement to mark each patch either net or net-next, because they have a huge traffic of patches.

Quoted 1 line

That being said - patch applied (unless Andy wants to take it directly).

I think I will take it. Care to provide your tag?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
Quoted 25 lines · Andy Shevchenko
Quoted 17 lines · Bartosz Golaszewski
Quoted 16 lines · Xiang Yang

Using the METHOD_NAME__AEI macro instead of using "_AEI" directly.

---
 drivers/gpio/gpiolib-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-acpi.c +0 -0
index a7d2358736fe..064ba5150fd4 100644
@@ -512,7 +512,7 @@ void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)
        if (ACPI_FAILURE(status))
                return;
 
Quoted 5 lines

drivers/gpio/gpiolib-acpi.c void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) · line 516

Quoted 3 lines
drivers/gpio/gpiolib-acpi.c +1 -1
-       acpi_walk_resources(handle, "_AEI",
+       acpi_walk_resources(handle, METHOD_NAME__AEI,
                            acpi_gpiochip_alloc_event, acpi_gpio);

This line dates back to 2018 so why -next in your PATCH tag?

Quoted 8 lines

This means "for Linux next cycle". It has roots in the net subsystem where it's a requirement to mark each patch either net or net-next, because they have a huge traffic of patches.

Quoted 1 line

That being said - patch applied (unless Andy wants to take it directly).

I think I will take it. Care to provide your tag?

Just take it, I will back it out.

Bartosz

#4 lore raw
Quoted 3 lines · Bartosz Golaszewski
Quoted 1 line · Andy Shevchenko

On Thu, Oct 20, 2022 at 03:23:27PM +0200, Bartosz Golaszewski wrote:

...

Quoted 3 lines
Quoted 1 line

I think I will take it. Care to provide your tag?

Just take it, I will back it out.

Pushed to my review and testing queue, thanks!

Signature · 2 lines
With Best Regards,
Andy Shevchenko