Thread (47 messages) 47 messages, 5 authors, 27d ago

Re: [PATCH v2 10/16] power: sequencing: pcie-m2: support matching on remote "port" node

From: Chen-Yu Tsai <wenst@chromium.org>
Date: 2026-06-12 09:12:27
Also in: driver-core, linux-acpi, linux-devicetree, linux-mediatek, linux-pm, linux-usb, lkml

On Wed, Jun 10, 2026 at 11:33 PM Andy Shevchenko
[off-list ref] wrote:
On Wed, Jun 10, 2026 at 04:40:44PM +0800, Chen-Yu Tsai wrote:
quoted
A USB hub can have multiple ports, and this driver needs to
differentiate which port is being matched to. The USB hub driver now
associates the "port" node with the usb_port device, so here we can
use the remote "port" node to check for a match. Then fall back to
the remote device node for the other connection types.
...
quoted
+             if (remote_port && remote_port == dev_of_node(dev))
+                     return PWRSEQ_MATCH_OK;
              if (remote && (remote == dev_of_node(dev)))
                      return PWRSEQ_MATCH_OK;
We have device_match_of_node() IIRC the name of that API.
Ack. Will also replace the existing instance.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help