UPSTREAM: usb: dwc2: fix "iomem 0x00000000" message
Set the iomem parameters in the usb_hcd to fix this misleading
message during driver load:
dwc2 c9100000.usb: irq 22, io mem 0x00000000
Conflicts:
drivers/usb/dwc2/hcd.c
Change-Id: I20cc185d05fe506321d8541ee6df728967d82482
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 348becdcc3)
This commit is contained in:
parent
b769d292d6
commit
3d7b42013a
1 changed files with 8 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/io.h>
|
||||
|
|
@ -4996,6 +4997,8 @@ static void dwc2_hcd_release(struct dwc2_hsotg *hsotg)
|
|||
*/
|
||||
int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(hsotg->dev);
|
||||
struct resource *res;
|
||||
struct usb_hcd *hcd;
|
||||
struct dwc2_host_chan *channel;
|
||||
u32 hcfg;
|
||||
|
|
@ -5051,7 +5054,12 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
|
|||
|
||||
hcd->has_tt = 1;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
hcd->rsrc_start = res->start;
|
||||
hcd->rsrc_len = resource_size(res);
|
||||
|
||||
((struct wrapper_priv_data *) &hcd->hcd_priv)->hsotg = hsotg;
|
||||
|
||||
hsotg->priv = hcd;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue