]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: exynos5-usbdrd: fix setting LINKSYSTEM_FLADJ on exynos7870
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 29 Apr 2025 08:49:24 +0000 (09:49 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 09:11:40 +0000 (10:11 +0100)
The code here is trying to set the FLADJ field to 0x20, so it should
clear any previous value in that field before or'ing-in the new value.

Fixes: 588d5d20ca8d ("phy: exynos5-usbdrd: add exynos7870 USBDRD support")
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250429-exynos5-phy-field-prep-v1-1-39eb279a3e0e@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c

index 634c4310c660a50e5d0869645506ab1b64fffd4b..4ea1fabd4d6f9c9fe412f17d4d26be07724b6361 100644 (file)
@@ -1186,6 +1186,7 @@ static void exynos7870_usbdrd_utmi_init(struct exynos5_usbdrd_phy *phy_drd)
         * See xHCI 1.0 spec, 5.2.4
         */
        reg |= LINKSYSTEM_XHCI_VERSION_CONTROL;
+       reg &= ~LINKSYSTEM_FLADJ;
        reg |= FIELD_PREP_CONST(LINKSYSTEM_FLADJ, 0x20);
        /* Set VBUSVALID signal as the VBUS pad is not used */
        reg |= LINKSYSTEM_FORCE_BVALID;