phy: qcom-snps: Correct the FSEL_MASK
authorSandeep Maheswaram <quic_c_sanm@quicinc.com>
Mon, 25 Oct 2021 04:19:35 +0000 (09:49 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 26 Oct 2021 11:06:23 +0000 (16:36 +0530)
commitb475bf0ec40a2b13fb32ef62f5706576d5858460
tree2dfd7d72bf2631e9282baa28cb75ac55dd8b7efd
parent21b89120be87b3fd2454e354bf466e5c4fea9624
phy: qcom-snps: Correct the FSEL_MASK

The FSEL_MASK which selects the refclock is defined incorrectly.
It should be [4:6] not [5:7]. Due to this incorrect definition, the BIT(7)
in USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON0 is reset which keeps PHY analog
blocks ON during suspend.
Fix this issue by correctly defining the FSEL_MASK.

Fixes: 51e8114f80d0 ("phy: qcom-snps: Add SNPS USB PHY driver for QCOM based SOCs")
Signed-off-by: Sandeep Maheswaram <quic_c_sanm@quicinc.com>
Link: https://lore.kernel.org/r/1635135575-5668-1-git-send-email-quic_c_sanm@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c