Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: qcom: qmp-usbc: drop has_pwrdn_delay handling

None of the PHYs supported by the USBC driver need power down delay.
Drop corresponding flag and code.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240126-phy-qmp-merge-common-v2-6-a463d0b57836@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dmitry Baryshkov and committed by
Vinod Koul
fe3ec760 c01e03f9

-6
-6
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
··· 315 315 316 316 /* array of registers with different offsets */ 317 317 const unsigned int *regs; 318 - 319 - /* true, if PHY needs delay after POWER_DOWN */ 320 - bool has_pwrdn_delay; 321 318 }; 322 319 323 320 struct qmp_usbc { ··· 542 545 qmp_configure_lane(qmp->rx2, cfg->rx_tbl, cfg->rx_tbl_num, 2); 543 546 544 547 qmp_configure(qmp->pcs, cfg->pcs_tbl, cfg->pcs_tbl_num); 545 - 546 - if (cfg->has_pwrdn_delay) 547 - usleep_range(10, 20); 548 548 549 549 /* Pull PHY out of reset state */ 550 550 qphy_clrbits(qmp->pcs, cfg->regs[QPHY_SW_RESET], SW_RESET);