* [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices
@ 2023-11-14 7:25 Wentong Wu
2023-11-14 10:26 ` Hans de Goede
2023-11-14 11:51 ` Andy Shevchenko
0 siblings, 2 replies; 3+ messages in thread
From: Wentong Wu @ 2023-11-14 7:25 UTC (permalink / raw)
To: andriy.shevchenko, hdegoede, gregkh; +Cc: linux-usb, Wentong Wu
Currently the shipped platforms use only _HID to distinguish
ljca children devices. The _ADR support here is for future HW.
This patch is to drop _ADR support and we can then re-introduce
it (revert this patch) if future HW actually starts using _ADR
to distinguish children devices.
Signed-off-by: Wentong Wu <wentong.wu@intel.com>
---
drivers/usb/misc/usb-ljca.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/drivers/usb/misc/usb-ljca.c b/drivers/usb/misc/usb-ljca.c
index c9decd0396d4..7f0deebebc13 100644
--- a/drivers/usb/misc/usb-ljca.c
+++ b/drivers/usb/misc/usb-ljca.c
@@ -457,8 +457,8 @@ static void ljca_auxdev_acpi_bind(struct ljca_adapter *adap,
u64 adr, u8 id)
{
struct ljca_match_ids_walk_data wd = { 0 };
- struct acpi_device *parent, *adev;
struct device *dev = adap->dev;
+ struct acpi_device *parent;
char uid[4];
parent = ACPI_COMPANION(dev);
@@ -466,17 +466,7 @@ static void ljca_auxdev_acpi_bind(struct ljca_adapter *adap,
return;
/*
- * get auxdev ACPI handle from the ACPI device directly
- * under the parent that matches _ADR.
- */
- adev = acpi_find_child_device(parent, adr, false);
- if (adev) {
- ACPI_COMPANION_SET(&auxdev->dev, adev);
- return;
- }
-
- /*
- * _ADR is a grey area in the ACPI specification, some
+ * Currently LJCA hw doesn't use _ADR instead the shipped
* platforms use _HID to distinguish children devices.
*/
switch (adr) {
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices
2023-11-14 7:25 [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices Wentong Wu
@ 2023-11-14 10:26 ` Hans de Goede
2023-11-14 11:51 ` Andy Shevchenko
1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2023-11-14 10:26 UTC (permalink / raw)
To: Wentong Wu, andriy.shevchenko, gregkh; +Cc: linux-usb
Hi,
On 11/14/23 08:25, Wentong Wu wrote:
> Currently the shipped platforms use only _HID to distinguish
> ljca children devices. The _ADR support here is for future HW.
> This patch is to drop _ADR support and we can then re-introduce
> it (revert this patch) if future HW actually starts using _ADR
> to distinguish children devices.
>
> Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> drivers/usb/misc/usb-ljca.c | 14 ++------------
> 1 file changed, 2 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/usb/misc/usb-ljca.c b/drivers/usb/misc/usb-ljca.c
> index c9decd0396d4..7f0deebebc13 100644
> --- a/drivers/usb/misc/usb-ljca.c
> +++ b/drivers/usb/misc/usb-ljca.c
> @@ -457,8 +457,8 @@ static void ljca_auxdev_acpi_bind(struct ljca_adapter *adap,
> u64 adr, u8 id)
> {
> struct ljca_match_ids_walk_data wd = { 0 };
> - struct acpi_device *parent, *adev;
> struct device *dev = adap->dev;
> + struct acpi_device *parent;
> char uid[4];
>
> parent = ACPI_COMPANION(dev);
> @@ -466,17 +466,7 @@ static void ljca_auxdev_acpi_bind(struct ljca_adapter *adap,
> return;
>
> /*
> - * get auxdev ACPI handle from the ACPI device directly
> - * under the parent that matches _ADR.
> - */
> - adev = acpi_find_child_device(parent, adr, false);
> - if (adev) {
> - ACPI_COMPANION_SET(&auxdev->dev, adev);
> - return;
> - }
> -
> - /*
> - * _ADR is a grey area in the ACPI specification, some
> + * Currently LJCA hw doesn't use _ADR instead the shipped
> * platforms use _HID to distinguish children devices.
> */
> switch (adr) {
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices
2023-11-14 7:25 [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices Wentong Wu
2023-11-14 10:26 ` Hans de Goede
@ 2023-11-14 11:51 ` Andy Shevchenko
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2023-11-14 11:51 UTC (permalink / raw)
To: Wentong Wu; +Cc: hdegoede, gregkh, linux-usb
On Tue, Nov 14, 2023 at 03:25:31PM +0800, Wentong Wu wrote:
> Currently the shipped platforms use only _HID to distinguish
> ljca children devices. The _ADR support here is for future HW.
> This patch is to drop _ADR support and we can then re-introduce
> it (revert this patch) if future HW actually starts using _ADR
> to distinguish children devices.
Thank you!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-14 11:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 7:25 [PATCH] usb: misc: ljca: Drop _ADR support to get ljca children devices Wentong Wu
2023-11-14 10:26 ` Hans de Goede
2023-11-14 11:51 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox