usb: dwc3-msm-core: Remove force gen1 quirk based code from wrapper

Upstream commit 91736d0619eb ("usb: dwc3: core: set force_gen1 bit
in USB31 devices if max speed is SS"), the core driver is made capable
of setting the force gen1 bit based on the platform.
Since this is already present, no need for the code in msm-core driver.
Removing the redundant code.

Change-Id: I0573a280992e26044b3f1700d6e6061b92342fd4
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
This commit is contained in:
Udipto Goswami 2024-06-17 13:59:38 +05:30
parent 08f3514ce1
commit 628b4b6bfc

View File

@ -634,7 +634,6 @@ struct dwc3_msm {
phys_addr_t ebc_desc_addr;
bool dis_sending_cm_l1_quirk;
bool use_eusb2_phy;
bool force_gen1;
bool cached_dis_u1_entry_quirk;
bool cached_dis_u2_entry_quirk;
int refcnt_dp_usb;
@ -3681,13 +3680,6 @@ static void dwc3_dis_sleep_mode(struct dwc3_msm *mdwc)
dwc3_msm_write_reg(mdwc->base, DWC3_GUCTL1, reg);
}
/* Force Gen1 speed on Gen2 controller if required */
static void dwc3_force_gen1(struct dwc3_msm *mdwc)
{
if (mdwc->force_gen1 && (mdwc->ip == DWC31_IP))
dwc3_msm_write_reg_field(mdwc->base, DWC3_LLUCTL, DWC3_LLUCTL_FORCE_GEN1, 1);
}
static int dwc3_msm_power_collapse_por(struct dwc3_msm *mdwc)
{
struct dwc3 *dwc = NULL;
@ -3737,7 +3729,6 @@ static int dwc3_msm_power_collapse_por(struct dwc3_msm *mdwc)
mdwc3_dis_sending_cm_l1(mdwc);
}
dwc3_force_gen1(mdwc);
return 0;
}
@ -5963,7 +5954,6 @@ static int dwc3_msm_core_init(struct dwc3_msm *mdwc)
if (!mdwc->xhci_pm_ops)
goto free_dwc_pm_ops;
dwc3_force_gen1(mdwc);
dwc3_msm_notify_event(dwc, DWC3_GSI_EVT_BUF_ALLOC, 0);
pm_runtime_set_autosuspend_delay(dwc->dev, 0);
pm_runtime_allow(dwc->dev);
@ -6167,8 +6157,6 @@ static int dwc3_msm_parse_params(struct dwc3_msm *mdwc, struct device_node *node
of_property_read_u32(node, "qcom,pm-qos-latency",
&mdwc->pm_qos_latency);
mdwc->force_gen1 = of_property_read_bool(node, "qcom,force-gen1");
diag_node = of_find_compatible_node(NULL, NULL, "qcom,msm-imem-diag-dload");
if (!diag_node)
pr_warn("diag: failed to find diag_dload imem node\n");