Re: [PATCH v15 01/10] device property: Add remote endpoint to devcon matcher

From: Stephen Boyd
Date: Fri Apr 07 2023 - 17:54:26 EST


Quoting Pin-yen Lin (2023-03-31 02:11:36)
> From: Prashant Malani <pmalani@xxxxxxxxxxxx>
>
> When searching the device graph for device matches, check the
> remote-endpoint itself for a match.
>
> Some drivers register devices for individual endpoints. This allows
> the matcher code to evaluate those for a match too, instead
> of only looking at the remote parent devices. This is required when a
> device supports two mode switches in its endpoints, so we can't simply
> register the mode switch with the parent node.

Looking at this in isolation I have no idea what a mode switch is and
how it is related to drivers/base/property.c. Can you expand on this
commit text? Maybe say two "usb typec mode switches"? And maybe include
an example graph node snippet?