usb: phy: Remove delay from QMP phy init sequence

Remove delay from QMP phy initialisation sequence. Its
not required in USB QMP DP/UNI phys as they use SE clk.

Change-Id: I6d22bd9c2f870b94bee49db65e057df1ab2acb44
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
This commit is contained in:
Prashanth K 2022-06-10 15:53:04 +05:30 committed by Gerrit - the friendly Code Review server
parent 91808785bc
commit 3eb7255b79

View File

@ -105,7 +105,6 @@ enum qmp_phy_type {
struct qmp_reg_val {
u32 offset;
u32 val;
u32 delay;
};
struct msm_ssphy_qmp {
@ -363,16 +362,15 @@ static int configure_phy_regs(struct usb_phy *uphy,
{
struct msm_ssphy_qmp *phy = container_of(uphy, struct msm_ssphy_qmp,
phy);
int i;
if (!reg) {
dev_err(uphy->dev, "NULL PHY configuration\n");
return -EINVAL;
}
while (reg->offset != -1) {
for (i = 0; i < phy->init_seq_len/2; i++) {
writel_relaxed(reg->val, phy->base + reg->offset);
if (reg->delay)
usleep_range(reg->delay, reg->delay + 10);
reg++;
}
return 0;