phy: qcom-qmp-pcie: support separate tables for EP mode
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 27 Sep 2022 09:22:03 +0000 (12:22 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 17 Oct 2022 07:44:24 +0000 (13:14 +0530)
commit11bf53a38c82baef349b4efc6a84f069dab7085a
tree34b20f91ded7ccd225c5a4c6650d17a5ba76b887
parent2566ad8ec418934c213cb50fd2084ffd896a2fea
phy: qcom-qmp-pcie: support separate tables for EP mode

The PCIe QMP PHY requires different programming sequences when being
used for the RC (Root Complex) or for the EP (End Point) modes. Allow
selecting the submode and thus selecting a set of PHY programming
tables.

Since the RC and EP modes share common some common init sequence, the
common sequence is kept in the main table and the sequence differences
are pushed to the extra tables.

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