ACPI: Rename acpi_scan_device_not_present() to be about enumeration
Subsystems (5)
PATCH 1/1 ACPI: Rename acpi_scan_device_not_present() to be about enumeration
From: James Morse <[email protected]>
acpi_scan_device_not_present() is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present.
To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it acpi_scan_device_not_enumerated().
No change in behaviour is intended.
---
This is another patch from James' aarch64 hotplug vcpu series.
I asked:
Quoted 2 lines
Is this another patch which ought to be submitted without waiting for the rest of the series?
to which Jonathan Cameron replied:
Quoted 1 line
Looks like a valid standalone change to me.
So let's get this queued up.
drivers/acpi/scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/acpi/scan.c +4 -4
@@ -289,10 +289,10 @@ static int acpi_scan_hot_remove(struct acpi_device *device)return 0 ; } -static int acpi_scan_device_not_present (struct acpi_device *adev) +static int acpi_scan_device_not_enumerated (struct acpi_device *adev) {if (!acpi_device_enumerated (adev)) { -dev_warn (&adev->dev,"Still not present\n" ); +dev_warn (&adev->dev,"Still not enumerated\n" );return -EALREADY ; }acpi_bus_trim (adev);
@@ -327,7 +327,7 @@ static int acpi_scan_device_check(struct acpi_device *adev) error = -ENODEV ; } }else { - error =acpi_scan_device_not_present (adev); + error =acpi_scan_device_not_enumerated (adev); }return error; }
@@ -339,7 +339,7 @@ static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used)acpi_bus_get_status (adev);if (!acpi_device_is_present (adev)) { -acpi_scan_device_not_present (adev); +acpi_scan_device_not_enumerated (adev);return 0 ; }if (handler && handler->hotplug.scan_dependent)
Signature · 1 line
2.30.2
Hi Russell,
Quoted 12 lines · Russell King
From: James Morse <[email protected]>
acpi_scan_device_not_present()is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present.To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it
acpi_scan_device_not_enumerated().
Quoted 5 lines
No change in behaviour is intended.
Signed-off-by James Morse <[email protected]>Reviewed-by Gavin Shan <[email protected]>Signed-off-by Russell King (Oracle) <[email protected]>
Quoted 41 lines
---
This is another patch from James' aarch64 hotplug vcpu series.I asked:
Quoted 2 lines
Is this another patch which ought to be submitted without waiting for the rest of the series?
to which Jonathan Cameron replied:
Quoted 1 line
Looks like a valid standalone change to me.
So let's get this queued up.
drivers/acpi/scan.c| 8 ++++----1 file changed, 4 insertions(+), 4 deletions(-)drivers/acpi/scan.c +3
-3@@ -289,10 +289,10 @@ static int acpi_scan_hot_remove(struct acpi_device *device)return 0 ; } -static int acpi_scan_device_not_present (struct acpi_device *adev) +static int acpi_scan_device_not_enumerated (struct acpi_device *adev) {if (!acpi_device_enumerated (adev)) { -dev_warn (&adev->dev,"Still not present\n" ); +dev_warn (&adev->dev,"Still not enumerated\n" );return -EALREADY ; }acpi_bus_trim (adev);@@ -327,7 +327,7 @@ static int acpi_scan_device_check(struct acpi_device *adev) error = -ENODEV ; } }else { - error =acpi_scan_device_not_present (adev); + error =acpi_scan_device_not_enumerated (adev); }return error; }
drivers/acpi/scan.c static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used) · line 342
Quoted 5 lines
drivers/acpi/scan.c +1
-1@@ -339,7 +339,7 @@ static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used)acpi_bus_get_status (adev);if (!acpi_device_is_present (adev)) { -acpi_scan_device_not_present (adev); +acpi_scan_device_not_enumerated (adev);
Feel free to add
Thank you
Miguel
Quoted 7 lines
drivers/acpi/scan.c +0
-0return 0 ; }if (handler && handler->hotplug.scan_dependent)Signature · 1 line
2.30.2
Quoted 14 lines · Miguel Luis
Hi Russell,
Quoted 12 lines · Russell King
From: James Morse <[email protected]>
acpi_scan_device_not_present()is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present.To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it
acpi_scan_device_not_enumerated().
Quoted 7 lines
Quoted 5 lines
No change in behaviour is intended.
Signed-off-by James Morse <[email protected]>Reviewed-by Gavin Shan <[email protected]>Signed-off-by Russell King (Oracle) <[email protected]>Fixes 443fc8202272 ("ACPI / hotplug: Rework generic code to handle suprise removals”) ?
I'm not sure a patch that is merely renaming a function should ever have a Fixes tag, since it's just a naming issue, it doesn't fix a bug, change functionality or anything like that.
I would suggest that there would need to be good reason why such a patch should be backported to stable kernels - for example, something else that does fix a user visible bug requires this change.
Thanks.
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Hi Russell,
Quoted 25 lines · Russell King (Oracle)
Quoted 14 lines · Miguel Luis
Hi Russell,
Quoted 12 lines · Russell King
From: James Morse <[email protected]>
acpi_scan_device_not_present()is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present.To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it
acpi_scan_device_not_enumerated().Quoted 7 lines
Quoted 5 lines
No change in behaviour is intended.
Signed-off-by James Morse <[email protected]>Reviewed-by Gavin Shan <[email protected]>Signed-off-by Russell King (Oracle) <[email protected]>Fixes 443fc8202272 ("ACPI / hotplug: Rework generic code to handle suprise removals”) ?
Quoted 8 lines
I'm not sure a patch that is merely renaming a function should ever have a Fixes tag, since it's just a naming issue, it doesn't fix a bug, change functionality or anything like that.
I would suggest that there would need to be good reason why such a patch should be backported to stable kernels - for example, something else that does fix a user visible bug requires this change.
Understood. Thanks for clarifying!
Miguel
Quoted 5 lines
Thanks.
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Quoted 57 lines · Russell King
From: James Morse <[email protected]>
acpi_scan_device_not_present()is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present.To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it
acpi_scan_device_not_enumerated().No change in behaviour is intended.
Signed-off-by James Morse <[email protected]>Reviewed-by Gavin Shan <[email protected]>Signed-off-by Russell King (Oracle) <[email protected]>---
This is another patch from James' aarch64 hotplug vcpu series.I asked:
Quoted 2 lines
Is this another patch which ought to be submitted without waiting for the rest of the series?
to which Jonathan Cameron replied:
Quoted 1 line
Looks like a valid standalone change to me.
So let's get this queued up.
drivers/acpi/scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/acpi/scan.c +3
-3@@ -289,10 +289,10 @@ static int acpi_scan_hot_remove(struct acpi_device *device)return 0 ; } -static int acpi_scan_device_not_present (struct acpi_device *adev) +static int acpi_scan_device_not_enumerated (struct acpi_device *adev) {if (!acpi_device_enumerated (adev)) { -dev_warn (&adev->dev,"Still not present\n" ); +dev_warn (&adev->dev,"Still not enumerated\n" );return -EALREADY ; }acpi_bus_trim (adev);@@ -327,7 +327,7 @@ static int acpi_scan_device_check(struct acpi_device *adev) error = -ENODEV ; } }else { - error =acpi_scan_device_not_present (adev); + error =acpi_scan_device_not_enumerated (adev); }return error; }
drivers/acpi/scan.c static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used)
Quoted 9 lines
drivers/acpi/scan.c +1
-2@@ -339,7 +339,7 @@ static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used)acpi_bus_get_status (adev);if (!acpi_device_is_present (adev)) { -acpi_scan_device_not_present (adev); +acpi_scan_device_not_enumerated (adev);return 0 ; }if (handler && handler->hotplug.scan_dependent) --
Applied as 6.7 material, thanks!