Re: [PATCH 2/3] usb: typec: fsa4480: Add support to swap SBU orientation

From: Heikki Krogerus
Date: Wed Oct 18 2023 - 03:11:29 EST


Hi Luca,

> > Shouldn't you loop through the endpoints? In any case:
> >
> > ep = fwnode_graph_get_next_endpoint(dev_fwnode(&fsa->client->dev, NULL));
>
> The docs only mention one endpoint so I'm assuming just next_endpoint is
> fine?

I'm mostly concerned about what we may have in the future. If one day
you have more than the one connection in your graph, then you have to
be able to identify the endpoint you are after.

But that may not be a problem in this case (maybe that "data-lanes"
device property can be used to identify the correct endpoint?).

We can worry about it then when/if we ever have another endpoint to
deal with.

thanks,

--
heikki