phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHY
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 26 Sep 2022 17:25:14 +0000 (20:25 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Sep 2022 06:25:01 +0000 (11:55 +0530)
commit0a40891b83f257b25a2b983758f72f6813f361cb
tree81308b00d9b0e03ed764937c939f649c985af07a
parent37d40a21473fdf1d0194089eb259b8ceeec2a4b9
phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHY

On SDM845 one of PCIe PHYs (the QHP one) has the same region for TX and
RX registers. Since the commit 4be26f695ffa ("phy: qcom-qmp-pcie: fix
memleak on probe deferral") added checking that resources are not
allocated beforehand, this PHY can not be probed anymore. Fix this by
skipping the map of ->rx resource on the QHP PHY and assign it manually.

Fixes: 4be26f695ffa ("phy: qcom-qmp-pcie: fix memleak on probe deferral")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220926172514.880776-1-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c