File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ static int xhci_plat_probe(struct platform_device *pdev)
183
183
struct usb_hcd * hcd ;
184
184
int ret ;
185
185
int irq ;
186
+ struct xhci_plat_priv * priv = NULL ;
187
+
186
188
187
189
if (usb_disabled ())
188
190
return - ENODEV ;
@@ -280,8 +282,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
280
282
priv_match = dev_get_platdata (& pdev -> dev );
281
283
282
284
if (priv_match ) {
283
- struct xhci_plat_priv * priv = hcd_to_xhci_priv (hcd );
284
-
285
+ priv = hcd_to_xhci_priv (hcd );
285
286
/* Just copy data for now */
286
287
* priv = * priv_match ;
287
288
}
@@ -329,6 +330,9 @@ static int xhci_plat_probe(struct platform_device *pdev)
329
330
330
331
hcd -> tpl_support = of_usb_host_tpl_support (sysdev -> of_node );
331
332
xhci -> shared_hcd -> tpl_support = hcd -> tpl_support ;
333
+ if (priv && (priv -> quirks & XHCI_SKIP_PHY_INIT ))
334
+ hcd -> skip_phy_initialization = 1 ;
335
+
332
336
ret = usb_add_hcd (hcd , irq , IRQF_SHARED );
333
337
if (ret )
334
338
goto disable_usb_phy ;
Original file line number Diff line number Diff line change @@ -1876,6 +1876,7 @@ struct xhci_hcd {
1876
1876
#define XHCI_RESET_PLL_ON_DISCONNECT BIT_ULL(34)
1877
1877
#define XHCI_SNPS_BROKEN_SUSPEND BIT_ULL(35)
1878
1878
#define XHCI_RENESAS_FW_QUIRK BIT_ULL(36)
1879
+ #define XHCI_SKIP_PHY_INIT BIT_ULL(37)
1879
1880
1880
1881
unsigned int num_active_eps ;
1881
1882
unsigned int limit_active_eps ;
You can’t perform that action at this time.
0 commit comments