Bug 215530
Summary: | typec kernel error | ||
---|---|---|---|
Product: | Drivers | Reporter: | neoe (hi2) |
Component: | USB | Assignee: | Default virtual assignee for Drivers/USB (drivers_usb) |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | regressions |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugzilla.kernel.org/show_bug.cgi?id=215529 | ||
Kernel Version: | 5.17-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
neoe
2022-01-25 01:47:20 UTC
I'm not involved here, but I wonder if this will help: https://lore.kernel.org/linux-usb/20220124090228.41396-3-heikki.krogerus@linux.intel.com/ (In reply to The Linux kernel's regression tracker (Thorsten Leemhuis) from comment #1) > I'm not involved here, but I wonder if this will help: > > https://lore.kernel.org/linux-usb/20220124090228.41396-3-heikki. > krogerus@linux.intel.com/ Thank you for the information. I also tried that patch, but not work for me. (In reply to neoe from comment #2) > I also tried that patch, but not work for me. Only that patch or both of them from that thread? If the latter, than you might want to join the discussions on the mailing lists. Thank you for your insist. I checked again. I did the patch manually and made a mistake. However, Now I applied the both patch correctly this time. It works. I guess the first one is enough for my issue. *** This bug has been marked as a duplicate of bug 215529 *** diff --git a/drivers/usb/typec/port-mapper.c b/drivers/usb/typec/port-mapper.c index 07d307418b470..b6e0c6acc628c 100644 --- a/drivers/usb/typec/port-mapper.c +++ b/drivers/usb/typec/port-mapper.c @@ -56,6 +56,9 @@ int typec_link_ports(struct typec_port *con) { struct each_port_arg arg = { .port = con, .match = NULL }; + if (!has_acpi_companion(&con->dev)) + return 0; + bus_for_each_dev(&acpi_bus_type, NULL, &arg, typec_port_match); /* @@ -74,5 +77,6 @@ int typec_link_ports(struct typec_port *con) void typec_unlink_ports(struct typec_port *con) { - component_master_del(&con->dev, &typec_aggregate_ops); + if (has_acpi_companion(&con->dev)) + component_master_del(&con->dev, &typec_aggregate_ops); } (In reply to The Linux kernel's regression tracker (Thorsten Leemhuis) from comment #3) > (In reply to neoe from comment #2) > > I also tried that patch, but not work for me. > > Only that patch or both of them from that thread? If the latter, than you > might want to join the discussions on the mailing lists. The patch works for me. |