From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EC14606A31E for ; Wed, 25 Nov 2026 19:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PSAIgD5F; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=bsgq6CEF; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=F3IS66N5 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=9Lmc9ZuDtQesUq6ptN86YNOl5Cy8kKECHiXEOM6FEWI=; b=PSAIgD5FH21+oi XReChcypz+qyydiPOXlJD8NHHKa6B/9NyBzn4nlzdRgZHf3dzrRP4IHLWikfSfoEuxCXWJf2SJZ0+ l1kCqC8K0WQL1GfZwLeLQe4A4r2G+c7/lLWiqj5XFZM/SZYdJGwIlr4JWmnzJ2B9NIO92XsB6YiFW IOKNuHOFwEcAh3K8XPx9C1nk+E9y9GwGmvQYOKtjRVTULF7zE4QPaaOdw3gQHk+oqg20ZnMtacihB NZPhO95p8LvMqskIJZS60lErE3hgQWpFSuUXkIwBeJ2FQsc/Q45Avcm/GBKl9d9gHfwe+Kz/YvXWc 1tSqLHcQtW/q8n2qRjxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWIOw-0000000B60c-2Uhv; Wed, 25 Nov 2026 19:11:30 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWIOs-0000000B60F-0tr8 for linux-arm-kernel@lists.infradead.org; Wed, 25 Nov 2026 19:11:27 +0000 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6APJAsqu1177492 for ; Wed, 25 Nov 2026 19:11:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9Lmc9ZuDtQesUq6ptN86YNOl5Cy8kKECHiXEOM6FEWI=; b=bsgq6CEFo8+A2X+S O1jQKVPFh2bfPEupJ88F5sObe+9XYZnPhqSpoQ78faphgN0EkHz3+7I+myKO/V7p obHz8Y+WlK58QLkywQnmYwKk7kUuTUAGzGacpyaCBAYzqKnKZBeaqa9Hj/ZNzH79 3cqynNNNBuNhjYyyfIDHEovVJruqeKdEOZ7gdndiJqXrL97xc0V1ypcdeGB31Dq1 cqWrDeHGk3Y7yQ/Kf/7TiXi38481O/9qfAhs0gEdZUVQybtVOp4MXrPMDosMkEAB FyVuyIJjRO1yoN+reYQX4E/7uu4EZnv2PcdvffeCftBd2Ir8NGqOUR1dL6gZ/JLy mW/g/Q== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5vuhtf3u-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Nov 2026 19:11:22 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2f033dc37cfso58960005ad.0 for ; Wed, 25 Nov 2026 11:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795633882; x=1796238682; darn=lists.infradead.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9Lmc9ZuDtQesUq6ptN86YNOl5Cy8kKECHiXEOM6FEWI=; b=F3IS66N5myMz2Jb7z6x7GptyrPZ0+7URkjkL9nrNbNEoI/mEeKDsCWqwQyJw4WvFvm 1P/uTB8hW9LZyexxMBdC8+f4VbVoS1nvj5XIorgB7zzK5KPWnCGP2Nn48NglTAgRDa0x fbma2Xk8y+MhYA2ZzWoLR5c/UcyeciVxoYoFdys2jBaWNlFzJn2jZJLpxCZd6XXVGKB6 myqGQyr8skWqXFMCavNBW3xrAhCHZdr/TGNDeHA1WK0MQsYkacbMVgxsSSY1NNSYjYFE Gf7YiXmMIZt/XNvqBEHHBndrkuKZKoT0m2JpNwmvRRLjzkMIlqsuyb7zG+goM01L9NPS 3d1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795633882; x=1796238682; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9Lmc9ZuDtQesUq6ptN86YNOl5Cy8kKECHiXEOM6FEWI=; b=VsVabVR70HVzKT8yQ9VzcVXHgNjvzH3H2WQs/3/7Nyh7LYkTthR25w40ObQve9xjOo dKKaibWam2+qGODdyPxTbzXx9acxCUpOQMoQ9sIkJKqxEEvBP9cLH5b+1yE1ru3CJItO TkhhL7xn1zRcv0/WLqx67kAMezm7S2l8ziSXI7RWJ/b4LmdlLvJangeEXC0gQsve7zC8 GaaH4qJF/OlCXtYtBvbYXYo95m0lUveS61sdULkVQUdY9gHpdYyStFtQDKjt1VV+T0IK dJzGwORGRL2a5okEVQcTdO824rNTGB1+eeE/zj0GfvIKz2UN0asNGWeOFQ18jfeBWe2H 4C1A== X-Forwarded-Encrypted: i=1; AL+hErHH9QBUMJXs8PIPzIdJ2TBzm/4KAeSE78fb1LlR1zj4GjvNTn3UW2pjQhOcQCqvO0LublRXXySfObd5VSpwiOtU@lists.infradead.org X-Gm-Message-State: APuU4Z/gFNocBved8QA4yVC0Zq0Pz/dbLVFQPNVLb8UY/TeGVDYaRNW4 JB3ZYNaVJ4dwYX3bTr7OkzUuoevyQLvY0GoLZgjOenxBfZFBjlf7WcteZZIiCZfc+UaLjj3LksP dW7BRN/DR5mTRREumBH6ax/mKoSObJmVbRUbrBgDXZ37DVI2ph6ixbBel4vvb+A0Q2V1BUXsfcC dhWQ== X-Gm-Gg: AZFdTZf8UQLJlDmiDY2iIWKyn/VKPvRV0+3MnqoLJiMpluQdM5bJnmQSzyBfQAOyole AHx21e+N6dSpeQ9fQG0/KULiXhVxsLLNRwnuSuDu+uufDEaWrFdbp8T/YcJJ9M1MD93KkP3wDhf MQG0HAzgyWUrlFywhuNCbShsrcUykXseFepPOMGfo5CMGVVaPhx8m4McqDqViPVlS4nlkqD2+4s hUXoO6dlw3OI0RUw2cdf92D5fjj3zsEcrsGC7UG8rRYV55efTt+KpzTe0l97gQotC7PNLG1Do8q IgiYbBeARNHTKxh+3vbhitYz847zdwGt3JBkM/EIIvDrAuTGzFsRRWdfvIbpk197omlwSVlpJH2 GjqZccdVlTJ9R5cSbTO8z3bKJN4ByOJ4c7cR9bo9ukQLgr9Ry5D3johDXqrF1gR5GKNEVISMARq vF9T9bjzFNRSGtHCse8B7BW/UBHBTYvZgGg8tHZcQG X-Received: by 2002:a17:902:db08:b0:2f0:3e48:8cdd with SMTP id d9443c01a7336-2f03f16acc0mr184690145ad.46.1795633881697; Wed, 25 Nov 2026 11:11:21 -0800 (PST) X-Received: by 2002:a17:902:db08:b0:2f0:3e48:8cdd with SMTP id d9443c01a7336-2f03f16acc0mr184689725ad.46.1795633881124; Wed, 25 Nov 2026 11:11:21 -0800 (PST) Received: from [192.168.1.8] ([122.177.242.156]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f105b76sm92424475ad.50.2026.11.25.11.11.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2026 11:11:20 -0800 (PST) Message-ID: <91334dda-718d-40d6-a731-e07056c7456a@oss.qualcomm.com> Date: Thu, 26 Nov 2026 00:41:12 +0530 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] usb: dwc3: Allow glue drivers to override all dwc3_properties To: Thinh Nguyen , Greg Kroah-Hartman , Frank Li , Sven Peter , Janne Grunau , Peter Griffin , Sascha Hauer Cc: Tejas Narendra Joglekar , "linux-usb@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , Tudor Ambarus , "linux-arm-kernel@lists.infradead.org" , =?UTF-8?Q?Andr=C3=A9_Draszik?= , Pengutronix Kernel Team , Neal Gompa , "asahi@lists.linux.dev" , "imx@lists.linux.dev" , Fabio Estevam References: Content-Language: en-US From: Krishna Kurapati In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=FPmOVOos c=1 sm=1 tr=0 ts=6b0732da cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=EbDk/eETi6Q6sYbTlnF7GQ==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=jIQo8A4GAAAA:8 a=K-Rsm8vN-is5ZCDG3ioA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-GUID: uM3tYlsgaYJ_7NJhhmXNuQAvQm2BFxXe X-Proofpoint-ORIG-GUID: uM3tYlsgaYJ_7NJhhmXNuQAvQm2BFxXe X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI1MDA3NiBTYWx0ZWRfX9K4pg3TaNDaC YKZONsFnRWBqIiedzcOtU8wn4f3qEpul5PhZXqznLdeKE3f9Ap/h1C82TUMrSpmZYNlfDycZN+h P9b6t0gio0Ig/8NauUiRvcfrk4jPy5U= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI1MDA3NiBTYWx0ZWRfX/qnGM8HTDRt9 eWkFiKymXRfBP8yeMaT+82zJY/0P469ZJAXGTHZWraVE20Os1WKEazIgam2yFfabGrxTQ8vQgBg fPcD++oNhI0LQjOlUYwP4h5nmQK6R3bHx9Jtd3VHy5xidDeKiS32Dyuney/qeTxNoYqcFOqXDzL iGAdrHtUhn7P69Q1xuYcVo8fa4s9KrDYJjoFwj1Q8oLu2IN0rddVqPrBzGHnmZpE+nRw5Fx2jMx DIbjZCNS5TDkUx585suOrqxaAE+1NXhhGx67YFhcJHS8T/K160+12htgV5fJ8hLTCDbdMUiFkP4 VrL+75/Hv0XpRIlRfz9acWiBVIIZU0n0RHIaY67Ece2jZcg4c9LvegjwS1LM2raPowjybqE58A4 q9lvpYse20eqNXvuSOlnK7rIKXGCKT/MBf3pPKKgidsY1S2BpBSVfcds7ht5RPfTQBy3nS4zuXZ ExnX4pFaz9CsCC+AXog== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-25_05,2026-11-25_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 suspectscore=0 impostorscore=0 priorityscore=1501 adultscore=0 phishscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611250076 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261125_111126_374378_1FB69AD6 X-CRM114-Status: GOOD ( 25.39 ) X-Spam-Score: -2.8 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/25/2026 4:29 AM, Thinh Nguyen wrote: > struct dwc3_properties holds all glue-overridable properties, but glue > drivers can only set needs_full_reinit and gsbuscfg0_reqinfo. > > Replace the properties value in struct dwc3_probe_data with a > fixup_properties() hook. The core calls it after reading the DT > properties, so glue drivers can set properties that DT does not > provide, or override DT values, including clearing them, to correct > broken SoC settings. Convert imx and ls1028a to the hook. > > Signed-off-by: Thinh Nguyen Rebased [1] on top of this series and tested it: Tested-by: Krishna Kurapati [1]: https://lore.kernel.org/all/20260914-xhci-skip-phy-init-v1-1-9c46b31a5a39@oss.qualcomm.com/ Regards, Krishna, > --- > drivers/usb/dwc3/core.c | 18 +++++------------- > drivers/usb/dwc3/dwc3-apple.c | 1 - > drivers/usb/dwc3/dwc3-generic-plat.c | 19 +++++++++++-------- > drivers/usb/dwc3/dwc3-google.c | 1 - > drivers/usb/dwc3/dwc3-imx.c | 9 +++++++-- > drivers/usb/dwc3/dwc3-qcom.c | 1 - > drivers/usb/dwc3/glue.h | 10 ++++------ > 7 files changed, 27 insertions(+), 32 deletions(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index 3b2b5fcc627a..369c9ce9f1dc 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -1684,24 +1684,14 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc) > dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_DEVICE, true); > } > > -static void dwc3_get_software_properties(struct dwc3 *dwc, > - const struct dwc3_properties *properties) > +static void dwc3_get_software_properties(struct dwc3 *dwc) > { > struct device *tmpdev; > u16 gsbuscfg0_reqinfo; > int ret; > > - if (properties->needs_full_reinit) > - dwc->needs_full_reinit = true; > - > dwc->gsbuscfg0_reqinfo = DWC3_GSBUSCFG0_REQINFO_UNSPECIFIED; > > - if (properties->gsbuscfg0_reqinfo != > - DWC3_GSBUSCFG0_REQINFO_UNSPECIFIED) { > - dwc->gsbuscfg0_reqinfo = properties->gsbuscfg0_reqinfo; > - return; > - } > - > /* > * Iterate over all parent nodes for finding swnode properties > * and non-DT (non-ABI) properties. > @@ -2310,7 +2300,10 @@ int dwc3_core_probe(const struct dwc3_probe_data *data) > dwc->regs_size = resource_size(&dwc_res); > > dwc3_get_properties(dwc); > - dwc3_get_software_properties(dwc, &data->properties); > + dwc3_get_software_properties(dwc); > + > + if (data->fixup_properties) > + data->fixup_properties(dwc, &dwc->properties); > > if (dwc->sysdev_is_parent) > dwc->sysdev = dwc->dev->parent; > @@ -2470,7 +2463,6 @@ static int dwc3_probe(struct platform_device *pdev) > > probe_data.dwc = dwc; > probe_data.res = res; > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > > return dwc3_core_probe(&probe_data); > } > diff --git a/drivers/usb/dwc3/dwc3-apple.c b/drivers/usb/dwc3/dwc3-apple.c > index 1f474a8bc59e..8289d22e5994 100644 > --- a/drivers/usb/dwc3/dwc3-apple.c > +++ b/drivers/usb/dwc3/dwc3-apple.c > @@ -181,7 +181,6 @@ static int dwc3_apple_core_probe(struct dwc3_apple *appledwc) > probe_data.res = appledwc->mmio_resource; > probe_data.ignore_clocks_and_resets = true; > probe_data.skip_core_init_mode = true; > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > > ret = dwc3_core_probe(&probe_data); > if (ret) > diff --git a/drivers/usb/dwc3/dwc3-generic-plat.c b/drivers/usb/dwc3/dwc3-generic-plat.c > index 3e90ddf25809..69a6acd84a0f 100644 > --- a/drivers/usb/dwc3/dwc3-generic-plat.c > +++ b/drivers/usb/dwc3/dwc3-generic-plat.c > @@ -33,7 +33,8 @@ struct dwc3_generic { > > struct dwc3_generic_config { > int (*init)(struct dwc3_generic *dwc3g); > - struct dwc3_properties properties; > + void (*fixup_properties)(struct dwc3 *dwc, > + struct dwc3_properties *props); > }; > > #define to_dwc3_generic(d) container_of((d), struct dwc3_generic, dwc) > @@ -137,12 +138,10 @@ static int dwc3_generic_probe(struct platform_device *pdev) > probe_data.ignore_clocks_and_resets = true; > > plat_config = of_device_get_match_data(dev); > - if (!plat_config) { > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > + if (!plat_config) > goto core_probe; > - } > > - probe_data.properties = plat_config->properties; > + probe_data.fixup_properties = plat_config->fixup_properties; > if (plat_config->init) { > ret = plat_config->init(dwc3g); > if (ret) > @@ -220,16 +219,20 @@ static const struct dev_pm_ops dwc3_generic_dev_pm_ops = { > > static const struct dwc3_generic_config spacemit_k1_dwc3 = { > .init = dwc3_spacemit_k1_init, > - .properties = DWC3_DEFAULT_PROPERTIES, > }; > > +static void dwc3_ls1028a_fixup_properties(struct dwc3 *dwc, > + struct dwc3_properties *props) > +{ > + props->gsbuscfg0_reqinfo = 0x2222; > +} > + > static const struct dwc3_generic_config fsl_ls1028_dwc3 = { > - .properties.gsbuscfg0_reqinfo = 0x2222, > + .fixup_properties = dwc3_ls1028a_fixup_properties, > }; > > static const struct dwc3_generic_config eic7700_dwc3 = { > .init = dwc3_eic7700_init, > - .properties = DWC3_DEFAULT_PROPERTIES, > }; > > static const struct of_device_id dwc3_generic_of_match[] = { > diff --git a/drivers/usb/dwc3/dwc3-google.c b/drivers/usb/dwc3/dwc3-google.c > index 67eda7f0d528..213c03048aa0 100644 > --- a/drivers/usb/dwc3/dwc3-google.c > +++ b/drivers/usb/dwc3/dwc3-google.c > @@ -440,7 +440,6 @@ static int dwc3_google_probe(struct platform_device *pdev) > probe_data.dwc = &google->dwc; > probe_data.res = res; > probe_data.ignore_clocks_and_resets = true; > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > ret = dwc3_core_probe(&probe_data); > if (ret) { > ret = dev_err_probe(dev, ret, "failed to register DWC3 Core\n"); > diff --git a/drivers/usb/dwc3/dwc3-imx.c b/drivers/usb/dwc3/dwc3-imx.c > index 64da121a8f76..396d76311120 100644 > --- a/drivers/usb/dwc3/dwc3-imx.c > +++ b/drivers/usb/dwc3/dwc3-imx.c > @@ -192,6 +192,12 @@ static const struct software_node dwc3_imx_swnode = { > .properties = dwc3_imx_properties, > }; > > +static void dwc3_imx_fixup_properties(struct dwc3 *dwc, > + struct dwc3_properties *props) > +{ > + props->needs_full_reinit = true; > +} > + > static int dwc3_imx_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > @@ -265,8 +271,7 @@ static int dwc3_imx_probe(struct platform_device *pdev) > > probe_data.res = res; > probe_data.dwc = dwc; > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > - probe_data.properties.needs_full_reinit = true; > + probe_data.fixup_properties = dwc3_imx_fixup_properties; > > ret = dwc3_core_probe(&probe_data); > if (ret) { > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 5a68025ccea5..ef38308023aa 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -745,7 +745,6 @@ static int dwc3_qcom_probe(struct platform_device *pdev) > probe_data.dwc = &qcom->dwc; > probe_data.res = &res; > probe_data.ignore_clocks_and_resets = true; > - probe_data.properties = DWC3_DEFAULT_PROPERTIES; > ret = dwc3_core_probe(&probe_data); > if (ret) { > ret = dev_err_probe(dev, ret, "failed to register DWC3 Core\n"); > diff --git a/drivers/usb/dwc3/glue.h b/drivers/usb/dwc3/glue.h > index b7ce196e84ea..e56fee68e4bc 100644 > --- a/drivers/usb/dwc3/glue.h > +++ b/drivers/usb/dwc3/glue.h > @@ -9,10 +9,6 @@ > #include > #include "core.h" > > -#define DWC3_DEFAULT_PROPERTIES ((struct dwc3_properties){ \ > - .gsbuscfg0_reqinfo = DWC3_GSBUSCFG0_REQINFO_UNSPECIFIED, \ > - }) > - > /** > * dwc3_probe_data: Initialization parameters passed to dwc3_core_probe() > * @dwc: Reference to dwc3 context structure > @@ -21,14 +17,16 @@ > * be ignored by the DWC3 core, as they are managed by the glue > * @skip_core_init_mode: Skip the final initialization of the target mode, as > * it must be managed by the glue > - * @properties: dwc3 software manage properties > + * @fixup_properties: optional hook to set or override properties after > + * the core reads them from DT > */ > struct dwc3_probe_data { > struct dwc3 *dwc; > struct resource *res; > bool ignore_clocks_and_resets; > bool skip_core_init_mode; > - struct dwc3_properties properties; > + void (*fixup_properties)(struct dwc3 *dwc, > + struct dwc3_properties *props); > }; > > /**