]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: exynos5-usbdrd: gs101: configure SS lanes based on orientation
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 6 Dec 2024 16:31:05 +0000 (16:31 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2025 17:12:52 +0000 (22:42 +0530)
commit0bccdcb3eea93e087887027ff374dac5c3de36cd
treef4fd5dd4e8d397f5fbfd6b5c2e86a76ffd6eb14b
parent21860f340ba76ee042e5431ff92537f89bc11476
phy: exynos5-usbdrd: gs101: configure SS lanes based on orientation

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@linaro.org>
Tested-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Tested-by: Will McVicker <willmcvicker@google.com>
Link: https://lore.kernel.org/r/20241206-gs101-phy-lanes-orientation-phy-v4-5-f5961268b149@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c