* [PATCH v3 0/6] Refine _UID references across kernel
@ 2023-10-24 6:20 Raag Jadav
2023-10-24 6:20 ` [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID Raag Jadav
` (6 more replies)
0 siblings, 7 replies; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
This series refines _UID references across kernel by:
- Extracting _UID matching functionality from acpi_dev_hid_uid_match()
helper and introducing it as a separate acpi_dev_uid_match() helper.
- Converting manual _UID references to use the standard ACPI helpers.
Changes since v2:
- Drop review tags as suggested by Andy.
Changes since v1:
- Change acpi_dev_uid_match() to return false in case of NULL argument.
- Drop accepted patches.
Raag Jadav (6):
ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
pinctrl: intel: use acpi_dev_uid_match() for matching _UID
ACPI: utils: use acpi_dev_uid_match() for matching _UID
ACPI: x86: use acpi_dev_uid_match() for matching _UID
hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and
_UID
perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and
_UID
drivers/acpi/utils.c | 34 ++++++++++++++++++++++-----
drivers/acpi/x86/utils.c | 3 +--
drivers/hwmon/nct6775-platform.c | 4 +---
drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++----
drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
include/acpi/acpi_bus.h | 1 +
include/linux/acpi.h | 5 ++++
7 files changed, 40 insertions(+), 17 deletions(-)
base-commit: a4ed5bffbeb19cfb7e21ac3b3f09d7bfe39a849b
--
2.17.1
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-24 9:28 ` Mika Westerberg
2023-10-24 6:20 ` [PATCH v3 2/6] pinctrl: intel: use " Raag Jadav
` (5 subsequent siblings)
6 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Introduce acpi_dev_uid_match() helper that matches the device with
supplied _UID string.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/acpi/utils.c | 31 +++++++++++++++++++++++++++----
include/acpi/acpi_bus.h | 1 +
include/linux/acpi.h | 5 +++++
3 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 79915d4a0031..be21b77059af 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -824,20 +824,43 @@ bool acpi_check_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 funcs)
}
EXPORT_SYMBOL(acpi_check_dsm);
+/**
+ * acpi_dev_uid_match - Match device by supplied UID
+ * @adev: ACPI device to match.
+ * @uid2: Unique ID of the device.
+ *
+ * Matches UID in @adev with given @uid2.
+ *
+ * Returns:
+ * - %true if matches.
+ * - %false otherwise.
+ */
+bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2)
+{
+ const char *uid1 = acpi_device_uid(adev);
+
+ return uid1 && uid2 && !strcmp(uid1, uid2);
+}
+EXPORT_SYMBOL_GPL(acpi_dev_uid_match);
+
/**
* acpi_dev_hid_uid_match - Match device by supplied HID and UID
* @adev: ACPI device to match.
* @hid2: Hardware ID of the device.
* @uid2: Unique ID of the device, pass NULL to not check _UID.
*
- * Matches HID and UID in @adev with given @hid2 and @uid2.
- * Returns true if matches.
+ * Matches HID and UID in @adev with given @hid2 and @uid2. Absence of @uid2
+ * will be treated as a match. If user wants to validate @uid2, it should be
+ * done before calling this function.
+ *
+ * Returns:
+ * - %true if matches or @uid2 is NULL.
+ * - %false otherwise.
*/
bool acpi_dev_hid_uid_match(struct acpi_device *adev,
const char *hid2, const char *uid2)
{
const char *hid1 = acpi_device_hid(adev);
- const char *uid1 = acpi_device_uid(adev);
if (strcmp(hid1, hid2))
return false;
@@ -845,7 +868,7 @@ bool acpi_dev_hid_uid_match(struct acpi_device *adev,
if (!uid2)
return true;
- return uid1 && !strcmp(uid1, uid2);
+ return acpi_dev_uid_match(adev, uid2);
}
EXPORT_SYMBOL(acpi_dev_hid_uid_match);
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 756b3f3c2c45..afeed6e72049 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -763,6 +763,7 @@ static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
}
+bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2);
bool acpi_dev_hid_uid_match(struct acpi_device *adev, const char *hid2, const char *uid2);
int acpi_dev_uid_to_integer(struct acpi_device *adev, u64 *integer);
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index afd94c9b8b8a..db3a33e19c97 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -787,6 +787,11 @@ static inline bool acpi_dev_present(const char *hid, const char *uid, s64 hrv)
struct acpi_device;
+static inline bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2)
+{
+ return false;
+}
+
static inline bool
acpi_dev_hid_uid_match(struct acpi_device *adev, const char *hid2, const char *uid2)
{
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v3 2/6] pinctrl: intel: use acpi_dev_uid_match() for matching _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
2023-10-24 6:20 ` [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-24 6:20 ` [PATCH v3 3/6] ACPI: utils: " Raag Jadav
` (4 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Convert manual _UID references to use the standard ACPI helper.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c
index 3be04ab760d3..999f453344d2 100644
--- a/drivers/pinctrl/intel/pinctrl-intel.c
+++ b/drivers/pinctrl/intel/pinctrl-intel.c
@@ -1694,7 +1694,7 @@ const struct intel_pinctrl_soc_data *intel_pinctrl_get_soc_data(struct platform_
unsigned int i;
for (i = 0; table[i]; i++) {
- if (!strcmp(adev->pnp.unique_id, table[i]->uid)) {
+ if (acpi_dev_uid_match(adev, table[i]->uid)) {
data = table[i];
break;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v3 3/6] ACPI: utils: use acpi_dev_uid_match() for matching _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
2023-10-24 6:20 ` [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID Raag Jadav
2023-10-24 6:20 ` [PATCH v3 2/6] pinctrl: intel: use " Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-24 6:20 ` [PATCH v3 4/6] ACPI: x86: " Raag Jadav
` (3 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Convert manual _UID references to use the standard ACPI helper.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/acpi/utils.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index be21b77059af..28c75242fca9 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -942,8 +942,7 @@ static int acpi_dev_match_cb(struct device *dev, const void *data)
if (acpi_match_device_ids(adev, match->hid))
return 0;
- if (match->uid && (!adev->pnp.unique_id ||
- strcmp(adev->pnp.unique_id, match->uid)))
+ if (match->uid && !acpi_dev_uid_match(adev, match->uid))
return 0;
if (match->hrv == -1)
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v3 4/6] ACPI: x86: use acpi_dev_uid_match() for matching _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
` (2 preceding siblings ...)
2023-10-24 6:20 ` [PATCH v3 3/6] ACPI: utils: " Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-24 6:20 ` [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Raag Jadav
` (2 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Convert manual _UID references to use the standard ACPI helper.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/acpi/x86/utils.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c
index 63d834dd3811..bc65ebfcdf76 100644
--- a/drivers/acpi/x86/utils.c
+++ b/drivers/acpi/x86/utils.c
@@ -184,8 +184,7 @@ bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *s
if (acpi_match_device_ids(adev, override_status_ids[i].hid))
continue;
- if (!adev->pnp.unique_id ||
- strcmp(adev->pnp.unique_id, override_status_ids[i].uid))
+ if (!acpi_dev_uid_match(adev, override_status_ids[i].uid))
continue;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
` (3 preceding siblings ...)
2023-10-24 6:20 ` [PATCH v3 4/6] ACPI: x86: " Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-25 18:59 ` Guenter Roeck
2023-10-24 6:20 ` [PATCH v3 6/6] perf: arm_cspmu: " Raag Jadav
2023-10-24 9:30 ` [PATCH v3 0/6] Refine _UID references across kernel Mika Westerberg
6 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Convert manual _UID references to use the standard ACPI helper.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/hwmon/nct6775-platform.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/nct6775-platform.c b/drivers/hwmon/nct6775-platform.c
index 81bf03dad6bb..0adeeab7ee03 100644
--- a/drivers/hwmon/nct6775-platform.c
+++ b/drivers/hwmon/nct6775-platform.c
@@ -1465,10 +1465,8 @@ static const char * const asus_msi_boards[] = {
static int nct6775_asuswmi_device_match(struct device *dev, void *data)
{
struct acpi_device *adev = to_acpi_device(dev);
- const char *uid = acpi_device_uid(adev);
- const char *hid = acpi_device_hid(adev);
- if (hid && !strcmp(hid, ASUSWMI_DEVICE_HID) && uid && !strcmp(uid, data)) {
+ if (acpi_dev_hid_uid_match(adev, ASUSWMI_DEVICE_HID, data)) {
asus_acpi_dev = adev;
return 1;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v3 6/6] perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and _UID
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
` (4 preceding siblings ...)
2023-10-24 6:20 ` [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Raag Jadav
@ 2023-10-24 6:20 ` Raag Jadav
2023-10-24 9:30 ` [PATCH v3 0/6] Refine _UID references across kernel Mika Westerberg
6 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2023-10-24 6:20 UTC (permalink / raw)
To: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, linux, Jonathan.Cameron
Cc: linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil, Raag Jadav
Convert manual _UID references to use the standard ACPI helpers.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c
index e2b7827c4563..f0e6d14281d6 100644
--- a/drivers/perf/arm_cspmu/arm_cspmu.c
+++ b/drivers/perf/arm_cspmu/arm_cspmu.c
@@ -1061,7 +1061,7 @@ static int arm_cspmu_request_irq(struct arm_cspmu *cspmu)
static inline int arm_cspmu_find_cpu_container(int cpu, u32 container_uid)
{
- u32 acpi_uid;
+ u64 acpi_uid;
struct device *cpu_dev;
struct acpi_device *acpi_dev;
@@ -1071,10 +1071,8 @@ static inline int arm_cspmu_find_cpu_container(int cpu, u32 container_uid)
acpi_dev = ACPI_COMPANION(cpu_dev);
while (acpi_dev) {
- if (!strcmp(acpi_device_hid(acpi_dev),
- ACPI_PROCESSOR_CONTAINER_HID) &&
- !kstrtouint(acpi_device_uid(acpi_dev), 0, &acpi_uid) &&
- acpi_uid == container_uid)
+ if (acpi_dev_hid_uid_match(acpi_dev, ACPI_PROCESSOR_CONTAINER_HID, NULL) &&
+ !acpi_dev_uid_to_integer(acpi_dev, &acpi_uid) && acpi_uid == container_uid)
return 0;
acpi_dev = acpi_dev_parent(acpi_dev);
--
2.17.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
2023-10-24 6:20 ` [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID Raag Jadav
@ 2023-10-24 9:28 ` Mika Westerberg
2023-10-24 10:57 ` Andy Shevchenko
0 siblings, 1 reply; 15+ messages in thread
From: Mika Westerberg @ 2023-10-24 9:28 UTC (permalink / raw)
To: Raag Jadav
Cc: rafael, len.brown, robert.moore, andriy.shevchenko, mark.rutland,
will, linux, Jonathan.Cameron, linux-acpi, linux-kernel,
acpica-devel, linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Tue, Oct 24, 2023 at 11:50:13AM +0530, Raag Jadav wrote:
> +/**
> + * acpi_dev_uid_match - Match device by supplied UID
> + * @adev: ACPI device to match.
> + * @uid2: Unique ID of the device.
> + *
> + * Matches UID in @adev with given @uid2.
> + *
> + * Returns:
> + * - %true if matches.
> + * - %false otherwise.
Nit: these actually do not get formatted like above so you can just
write it as
Returns: %true in case UIDs match, %false otherwise.
If it is even needed, I think it is pretty obvious from the function
name what it returns.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 0/6] Refine _UID references across kernel
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
` (5 preceding siblings ...)
2023-10-24 6:20 ` [PATCH v3 6/6] perf: arm_cspmu: " Raag Jadav
@ 2023-10-24 9:30 ` Mika Westerberg
2023-10-24 11:00 ` Andy Shevchenko
2023-10-24 19:51 ` Rafael J. Wysocki
6 siblings, 2 replies; 15+ messages in thread
From: Mika Westerberg @ 2023-10-24 9:30 UTC (permalink / raw)
To: Raag Jadav
Cc: rafael, len.brown, robert.moore, andriy.shevchenko, mark.rutland,
will, linux, Jonathan.Cameron, linux-acpi, linux-kernel,
acpica-devel, linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Tue, Oct 24, 2023 at 11:50:12AM +0530, Raag Jadav wrote:
> This series refines _UID references across kernel by:
>
> - Extracting _UID matching functionality from acpi_dev_hid_uid_match()
> helper and introducing it as a separate acpi_dev_uid_match() helper.
>
> - Converting manual _UID references to use the standard ACPI helpers.
>
> Changes since v2:
> - Drop review tags as suggested by Andy.
>
> Changes since v1:
> - Change acpi_dev_uid_match() to return false in case of NULL argument.
> - Drop accepted patches.
>
> Raag Jadav (6):
> ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
> pinctrl: intel: use acpi_dev_uid_match() for matching _UID
> ACPI: utils: use acpi_dev_uid_match() for matching _UID
> ACPI: x86: use acpi_dev_uid_match() for matching _UID
> hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and
> _UID
> perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and
> _UID
For the series,
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> drivers/acpi/utils.c | 34 ++++++++++++++++++++++-----
> drivers/acpi/x86/utils.c | 3 +--
> drivers/hwmon/nct6775-platform.c | 4 +---
> drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++----
> drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
This pinctrl one is also fine by me so if Andy does not have objections,
feel free to add my,
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> include/acpi/acpi_bus.h | 1 +
> include/linux/acpi.h | 5 ++++
> 7 files changed, 40 insertions(+), 17 deletions(-)
>
>
> base-commit: a4ed5bffbeb19cfb7e21ac3b3f09d7bfe39a849b
> --
> 2.17.1
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
2023-10-24 9:28 ` Mika Westerberg
@ 2023-10-24 10:57 ` Andy Shevchenko
0 siblings, 0 replies; 15+ messages in thread
From: Andy Shevchenko @ 2023-10-24 10:57 UTC (permalink / raw)
To: Mika Westerberg
Cc: Raag Jadav, rafael, len.brown, robert.moore, mark.rutland, will,
linux, Jonathan.Cameron, linux-acpi, linux-kernel, acpica-devel,
linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Tue, Oct 24, 2023 at 12:28:39PM +0300, Mika Westerberg wrote:
> On Tue, Oct 24, 2023 at 11:50:13AM +0530, Raag Jadav wrote:
...
> > + * Returns:
> > + * - %true if matches.
> > + * - %false otherwise.
>
> Nit: these actually do not get formatted like above so you can just
> write it as
>
> Returns: %true in case UIDs match, %false otherwise.
>
> If it is even needed, I think it is pretty obvious from the function
> name what it returns.
kernel-doc complains if there is no Return: section in the text.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 0/6] Refine _UID references across kernel
2023-10-24 9:30 ` [PATCH v3 0/6] Refine _UID references across kernel Mika Westerberg
@ 2023-10-24 11:00 ` Andy Shevchenko
2023-10-24 19:51 ` Rafael J. Wysocki
1 sibling, 0 replies; 15+ messages in thread
From: Andy Shevchenko @ 2023-10-24 11:00 UTC (permalink / raw)
To: Mika Westerberg
Cc: Raag Jadav, rafael, len.brown, robert.moore, mark.rutland, will,
linux, Jonathan.Cameron, linux-acpi, linux-kernel, acpica-devel,
linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Tue, Oct 24, 2023 at 12:30:10PM +0300, Mika Westerberg wrote:
> On Tue, Oct 24, 2023 at 11:50:12AM +0530, Raag Jadav wrote:
> > This series refines _UID references across kernel by:
...
> > drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
>
> This pinctrl one is also fine by me so if Andy does not have objections,
> feel free to add my,
TL;DR: I had, but Rafael seems wanted your opinion. Whatever, I'm not
preventing this from happening, but I still consider that the uid check
for NULL in the helper should mimic the same logic as in
acpi_dev_hid_uid_match(). That's why I asked to drop my tags from this
series.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 0/6] Refine _UID references across kernel
2023-10-24 9:30 ` [PATCH v3 0/6] Refine _UID references across kernel Mika Westerberg
2023-10-24 11:00 ` Andy Shevchenko
@ 2023-10-24 19:51 ` Rafael J. Wysocki
2023-10-25 2:05 ` Guenter Roeck
1 sibling, 1 reply; 15+ messages in thread
From: Rafael J. Wysocki @ 2023-10-24 19:51 UTC (permalink / raw)
To: Mika Westerberg, Raag Jadav
Cc: rafael, len.brown, robert.moore, andriy.shevchenko, mark.rutland,
will, linux, Jonathan.Cameron, linux-acpi, linux-kernel,
acpica-devel, linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Tue, Oct 24, 2023 at 11:30 AM Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:
>
> On Tue, Oct 24, 2023 at 11:50:12AM +0530, Raag Jadav wrote:
> > This series refines _UID references across kernel by:
> >
> > - Extracting _UID matching functionality from acpi_dev_hid_uid_match()
> > helper and introducing it as a separate acpi_dev_uid_match() helper.
> >
> > - Converting manual _UID references to use the standard ACPI helpers.
> >
> > Changes since v2:
> > - Drop review tags as suggested by Andy.
> >
> > Changes since v1:
> > - Change acpi_dev_uid_match() to return false in case of NULL argument.
> > - Drop accepted patches.
> >
> > Raag Jadav (6):
> > ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
> > pinctrl: intel: use acpi_dev_uid_match() for matching _UID
> > ACPI: utils: use acpi_dev_uid_match() for matching _UID
> > ACPI: x86: use acpi_dev_uid_match() for matching _UID
> > hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and
> > _UID
> > perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and
> > _UID
>
> For the series,
>
> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> > drivers/acpi/utils.c | 34 ++++++++++++++++++++++-----
> > drivers/acpi/x86/utils.c | 3 +--
> > drivers/hwmon/nct6775-platform.c | 4 +---
> > drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++----
> > drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
>
> This pinctrl one is also fine by me so if Andy does not have objections,
> feel free to add my,
>
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Whole series applied as 6.7 material with tags as per the above, thanks!
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 0/6] Refine _UID references across kernel
2023-10-24 19:51 ` Rafael J. Wysocki
@ 2023-10-25 2:05 ` Guenter Roeck
2023-10-25 11:32 ` Rafael J. Wysocki
0 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2023-10-25 2:05 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Mika Westerberg, Raag Jadav, len.brown, robert.moore,
andriy.shevchenko, mark.rutland, will, Jonathan.Cameron,
linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil
On Tue, Oct 24, 2023 at 09:51:08PM +0200, Rafael J. Wysocki wrote:
> On Tue, Oct 24, 2023 at 11:30 AM Mika Westerberg
> <mika.westerberg@linux.intel.com> wrote:
> >
> > On Tue, Oct 24, 2023 at 11:50:12AM +0530, Raag Jadav wrote:
> > > This series refines _UID references across kernel by:
> > >
> > > - Extracting _UID matching functionality from acpi_dev_hid_uid_match()
> > > helper and introducing it as a separate acpi_dev_uid_match() helper.
> > >
> > > - Converting manual _UID references to use the standard ACPI helpers.
> > >
> > > Changes since v2:
> > > - Drop review tags as suggested by Andy.
> > >
> > > Changes since v1:
> > > - Change acpi_dev_uid_match() to return false in case of NULL argument.
> > > - Drop accepted patches.
> > >
> > > Raag Jadav (6):
> > > ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
> > > pinctrl: intel: use acpi_dev_uid_match() for matching _UID
> > > ACPI: utils: use acpi_dev_uid_match() for matching _UID
> > > ACPI: x86: use acpi_dev_uid_match() for matching _UID
> > > hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and
> > > _UID
> > > perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and
> > > _UID
> >
> > For the series,
> >
> > Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> >
> > > drivers/acpi/utils.c | 34 ++++++++++++++++++++++-----
> > > drivers/acpi/x86/utils.c | 3 +--
> > > drivers/hwmon/nct6775-platform.c | 4 +---
> > > drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++----
> > > drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
> >
> > This pinctrl one is also fine by me so if Andy does not have objections,
> > feel free to add my,
> >
> > Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> Whole series applied as 6.7 material with tags as per the above, thanks!
Ok, that means I will _not_ apply the hwmon patch through
the hwmon tree.
FWIW, please note that I would have very much preferred applying
it through the hwmon tree, and I did _not_ Ack it.
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 0/6] Refine _UID references across kernel
2023-10-25 2:05 ` Guenter Roeck
@ 2023-10-25 11:32 ` Rafael J. Wysocki
0 siblings, 0 replies; 15+ messages in thread
From: Rafael J. Wysocki @ 2023-10-25 11:32 UTC (permalink / raw)
To: Guenter Roeck
Cc: Rafael J. Wysocki, Mika Westerberg, Raag Jadav, len.brown,
robert.moore, andriy.shevchenko, mark.rutland, will,
Jonathan.Cameron, linux-acpi, linux-kernel, acpica-devel,
linux-gpio, linux-arm-kernel, linux-hwmon,
mallikarjunappa.sangannavar, bala.senthil
On Wed, Oct 25, 2023 at 4:05 AM Guenter Roeck <linux@roeck-us.net> wrote:
>
> On Tue, Oct 24, 2023 at 09:51:08PM +0200, Rafael J. Wysocki wrote:
> > On Tue, Oct 24, 2023 at 11:30 AM Mika Westerberg
> > <mika.westerberg@linux.intel.com> wrote:
> > >
> > > On Tue, Oct 24, 2023 at 11:50:12AM +0530, Raag Jadav wrote:
> > > > This series refines _UID references across kernel by:
> > > >
> > > > - Extracting _UID matching functionality from acpi_dev_hid_uid_match()
> > > > helper and introducing it as a separate acpi_dev_uid_match() helper.
> > > >
> > > > - Converting manual _UID references to use the standard ACPI helpers.
> > > >
> > > > Changes since v2:
> > > > - Drop review tags as suggested by Andy.
> > > >
> > > > Changes since v1:
> > > > - Change acpi_dev_uid_match() to return false in case of NULL argument.
> > > > - Drop accepted patches.
> > > >
> > > > Raag Jadav (6):
> > > > ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID
> > > > pinctrl: intel: use acpi_dev_uid_match() for matching _UID
> > > > ACPI: utils: use acpi_dev_uid_match() for matching _UID
> > > > ACPI: x86: use acpi_dev_uid_match() for matching _UID
> > > > hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and
> > > > _UID
> > > > perf: arm_cspmu: use acpi_dev_hid_uid_match() for matching _HID and
> > > > _UID
> > >
> > > For the series,
> > >
> > > Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> > >
> > > > drivers/acpi/utils.c | 34 ++++++++++++++++++++++-----
> > > > drivers/acpi/x86/utils.c | 3 +--
> > > > drivers/hwmon/nct6775-platform.c | 4 +---
> > > > drivers/perf/arm_cspmu/arm_cspmu.c | 8 +++----
> > > > drivers/pinctrl/intel/pinctrl-intel.c | 2 +-
> > >
> > > This pinctrl one is also fine by me so if Andy does not have objections,
> > > feel free to add my,
> > >
> > > Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> >
> > Whole series applied as 6.7 material with tags as per the above, thanks!
>
> Ok, that means I will _not_ apply the hwmon patch through
> the hwmon tree.
>
> FWIW, please note that I would have very much preferred applying
> it through the hwmon tree, and I did _not_ Ack it.
OK, I'll drop it now and please feel free to pick it up (whenever it
is convenient to do so), or if you'd rather let me carry it, please
let me know.
It's only been in my bleeding-edge branch so far.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID
2023-10-24 6:20 ` [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Raag Jadav
@ 2023-10-25 18:59 ` Guenter Roeck
0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-10-25 18:59 UTC (permalink / raw)
To: Raag Jadav
Cc: rafael, len.brown, robert.moore, mika.westerberg,
andriy.shevchenko, mark.rutland, will, Jonathan.Cameron,
linux-acpi, linux-kernel, acpica-devel, linux-gpio,
linux-arm-kernel, linux-hwmon, mallikarjunappa.sangannavar,
bala.senthil
On Tue, Oct 24, 2023 at 11:50:17AM +0530, Raag Jadav wrote:
> Convert manual _UID references to use the standard ACPI helper.
>
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Applied.
Guenter
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2023-10-25 18:59 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-24 6:20 [PATCH v3 0/6] Refine _UID references across kernel Raag Jadav
2023-10-24 6:20 ` [PATCH v3 1/6] ACPI: utils: Introduce acpi_dev_uid_match() for matching _UID Raag Jadav
2023-10-24 9:28 ` Mika Westerberg
2023-10-24 10:57 ` Andy Shevchenko
2023-10-24 6:20 ` [PATCH v3 2/6] pinctrl: intel: use " Raag Jadav
2023-10-24 6:20 ` [PATCH v3 3/6] ACPI: utils: " Raag Jadav
2023-10-24 6:20 ` [PATCH v3 4/6] ACPI: x86: " Raag Jadav
2023-10-24 6:20 ` [PATCH v3 5/6] hwmon: nct6775: use acpi_dev_hid_uid_match() for matching _HID and _UID Raag Jadav
2023-10-25 18:59 ` Guenter Roeck
2023-10-24 6:20 ` [PATCH v3 6/6] perf: arm_cspmu: " Raag Jadav
2023-10-24 9:30 ` [PATCH v3 0/6] Refine _UID references across kernel Mika Westerberg
2023-10-24 11:00 ` Andy Shevchenko
2023-10-24 19:51 ` Rafael J. Wysocki
2023-10-25 2:05 ` Guenter Roeck
2023-10-25 11:32 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).