OSDN Git Service

phy: qcom-qmp-pcie: add register init helper
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 5 Nov 2022 14:59:32 +0000 (15:59 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Nov 2022 07:04:54 +0000 (12:34 +0530)
commitec7bc1b40b363c46af0b17d4cb0ea4dc21b7cf9b
tree09fc54a1766bb97e840e91a465be38d7c45c21bd
parentd8c9a1e9c223951836692eb8c3810e18ae06ffc2
phy: qcom-qmp-pcie: add register init helper

Generalise the serdes initialisation helper so that it can be used to
initialise all the PHY registers (e.g. serdes, tx, rx, pcs).

Note that this defers the ungating of the PIPE clock somewhat, which is
fine as it isn't needed until starting the PHY.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221105145939.20318-10-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c