From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC804271476; Tue, 27 May 2025 17:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748365552; cv=none; b=iscwZ1kIzcXd/0ZJ9cLv0wWblYwikc148lKI3M9lFFfmm8QNlKzf1goceZCdlhK+VRtEtKJB0o6dRTNErhFM0amfUAa8Xavqiom1zZIl2RPtKPSSebEM+d0sBMqhApGc0snwA+6Wue5B8veYpFjiWGe5cR4WW0KB3Wl+SrvyBB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748365552; c=relaxed/simple; bh=9ba6s/4G0bJtbCchNiotdv05hPNqhXnWiv4FPUko6CQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uDTXnfn8NFwiXzTEZxMylgFpK4ROmaexVGK9VmqlAeH0sz25RSapmF8YuDTSX7aHbi49kxugUjPV+E16Ruq+tNjWqI+379Kym5kp1qMmZBIKHkWCiFYrT8bciivkfSMzfPztkq54CL3fuecb/0/YboG4R5f8ZWIaPRWG/UfhLv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HnJwWZ0n; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HnJwWZ0n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B5D3C4CEE9; Tue, 27 May 2025 17:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748365552; bh=9ba6s/4G0bJtbCchNiotdv05hPNqhXnWiv4FPUko6CQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HnJwWZ0nGyR7WG5yL1PUXettAmOhTEu88UiXXHCJuRvgC2LNgkbmaUBFTRDtlNion vXPE7fi1VWrxBVrfYynkRC5Qxj5xQw4ye7Vx1LHewL1Do7XdGGiQfrg8y9ICsyJjYB xTgrsEKBWFxr+SXbHFDVPamqnW+C3wJ/PS0zNpD4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Peter Griffin , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Will McVicker , Vinod Koul , Sasha Levin Subject: [PATCH 6.12 383/626] phy: exynos5-usbdrd: fix EDS distribution tuning (gs101) Date: Tue, 27 May 2025 18:24:36 +0200 Message-ID: <20250527162500.576688061@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162445.028718347@linuxfoundation.org> References: <20250527162445.028718347@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: André Draszik [ Upstream commit 21860f340ba76ee042e5431ff92537f89bc11476 ] This code's intention is to configure lane0 and lane2 tunings, but for lane2 there is a typo and it ends up tuning something else. Fix the typo, as it doesn't appear to make sense to apply different tunings for lane0 vs lane2. The same typo appears to exist in the bootloader, hence we restore the original value in the typo'd registers as well. This can be removed once / if the bootloader is updated. Note that this is incorrect in the downstream driver as well - the values had been copied from there. Reviewed-by: Peter Griffin Tested-by: Peter Griffin Signed-off-by: André Draszik Tested-by: Will McVicker Link: https://lore.kernel.org/r/20241206-gs101-phy-lanes-orientation-phy-v4-4-f5961268b149@linaro.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 46b8f6987c62c..28d02ae60cc14 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -1513,8 +1513,11 @@ static const struct exynos5_usbdrd_phy_tuning gs101_tunes_pipe3_preinit[] = { PHY_TUNING_ENTRY_PMA(0x09e0, -1, 0x00), PHY_TUNING_ENTRY_PMA(0x09e4, -1, 0x36), PHY_TUNING_ENTRY_PMA(0x1e7c, -1, 0x06), - PHY_TUNING_ENTRY_PMA(0x1e90, -1, 0x00), - PHY_TUNING_ENTRY_PMA(0x1e94, -1, 0x36), + PHY_TUNING_ENTRY_PMA(0x19e0, -1, 0x00), + PHY_TUNING_ENTRY_PMA(0x19e4, -1, 0x36), + /* fix bootloader bug */ + PHY_TUNING_ENTRY_PMA(0x1e90, -1, 0x02), + PHY_TUNING_ENTRY_PMA(0x1e94, -1, 0x0b), /* improve LVCC */ PHY_TUNING_ENTRY_PMA(0x08f0, -1, 0x30), PHY_TUNING_ENTRY_PMA(0x18f0, -1, 0x30), -- 2.39.5