On 12/06/2024, André Draszik wrote: > USB SS lanes need to be configured based on the connector orientation - > at most two lanes will be in use for USB (and the remaining two for > alternate modes like DP). > > For the USB link to come up in SS, the lane configuration registers > have to be programmed accordingly. > > While we still need a way to be notified of the actual connector > orientation and then reprogram the registers accordingly (at the moment > the configuration happens just once during phy_init() and never again), > we can prepare the code doing the configuration to take the orientation > into account. > > Do so. > > Note: the mutex is needed to synchronize this with the upcoming > connector orientation callback. > > Reviewed-by: Peter Griffin <peter.griffin@xxxxxxxxxx> > Tested-by: Peter Griffin <peter.griffin@xxxxxxxxxx> > Signed-off-by: André Draszik <andre.draszik@xxxxxxxxxx> Verified on my Pixel 6 Pro. Tested-by: Will McVicker <willmcvicker@xxxxxxxxxx> Thanks, Will <snip>