Patchwork [V8,04/10] USB/ppc4xx: Add Synopsys DWC OTG HCD function

login
register
mail settings
Submitter Alexander Gordeev
Date Jan. 26, 2011, 4:27 p.m.
Message ID <20110126192743.646af6d2@desktopvm.lvknet>
Download mbox | patch
Permalink /patch/80520/
State Not Applicable
Headers show

Comments

Alexander Gordeev - Jan. 26, 2011, 4:27 p.m.
Hi,

Please consider squashing this little patch into yours. The driver
currently prints 0x00000000 as the register base. This patch will fix
that.

commit 2f850fe637101be287f116a37282b6b1a09e6a98
Author: Alexander Gordeev <lasaine@lvk.cs.msu.su>
Date:   Mon Nov 29 15:15:25 2010 +0300

    dwc_otg: set usb hcd resource address and length
    
    Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
Tirumala Marri - Feb. 7, 2011, 6:53 p.m.
}
 	dev_set_drvdata(_dev, dwc_otg_device);
 	hcd->regs = otg_dev->base;
+	hcd->rsrc_start = otg_dev->phys_addr;
+	hcd->rsrc_len = otg_dev->base_len;
 	hcd->self.otg_port = 1;

[Marri] Sure

Patch

diff --git a/drivers/usb/dwc_otg/dwc_otg_hcd.c b/drivers/usb/dwc_otg/dwc_otg_hcd.c
index 240ab0b..e420a8d 100644
--- a/drivers/usb/dwc_otg/dwc_otg_hcd.c
+++ b/drivers/usb/dwc_otg/dwc_otg_hcd.c
@@ -1269,6 +1269,8 @@  int __devinit dwc_otg_hcd_init(struct device *_dev,
 	}
 	dev_set_drvdata(_dev, dwc_otg_device);
 	hcd->regs = otg_dev->base;
+	hcd->rsrc_start = otg_dev->phys_addr;
+	hcd->rsrc_len = otg_dev->base_len;
 	hcd->self.otg_port = 1;
 
 	/* Initialize the DWC OTG HCD. */