Skip to content

Commit

Permalink
usb: musb: mpfs: detect UPLI external vbus control requirement from DT
Browse files Browse the repository at this point in the history
The musb driver core already supports external vbus control for ULPI
PHYs, but none of the drivers actually enable it. A customer reported
needing this for their device, and now that a DT property for detecting
this configuration exists, read the property to enable the feature.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240531-spilt-garage-ed2113d628e8@wendy
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Conor Dooley authored and Greg Kroah-Hartman committed Jun 4, 2024
1 parent fb67c6c commit 2bc33d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/musb/mpfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ static int mpfs_probe(struct platform_device *pdev)
pdata->config = &mpfs_musb_hdrc_config;
pdata->platform_ops = &mpfs_ops;

pdata->extvbus = device_property_read_bool(dev, "microchip,ext-vbus-drv");

pdata->mode = usb_get_dr_mode(dev);
if (pdata->mode == USB_DR_MODE_UNKNOWN) {
dev_info(dev, "No dr_mode property found, defaulting to otg\n");
Expand Down

0 comments on commit 2bc33d7

Please sign in to comment.