From: Siva Durga Prasad Paladugu Date: Mon, 22 Apr 2019 09:15:02 +0000 (+0530) Subject: usb: dwc3: Read phy suspend quirk from DT X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b5d3993367042f83f7f41139a8a9977d6744c0c;p=thirdparty%2Fu-boot.git usb: dwc3: Read phy suspend quirk from DT This patch reads the suspend phy quirk from DT property "snps,dis_u2_susphy_quirk" and update in dwc3 structure. This suspend phy quirk will disable suspend functionality of phy. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index a261d8dc5f6..e14a7599328 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -95,6 +95,9 @@ static int dwc3_generic_peripheral_ofdata_to_platdata(struct udevice *dev) return -ENODEV; } + dwc3->dis_u2_susphy_quirk = dev_read_bool(dev, + "snps,dis_u2_susphy_quirk"); + return 0; }