Modify the dwc3_readl and dwc3_writel to calculate
the register offsets before invking the readl.
This patch is just a workaround to fix the issue
of raising an exception in the previous invokation
method.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* space, see dwc3_probe in core.c.
* However, the offsets are given starting from xHCI address space.
*/
- value = readl(base + offs);
+ offs += base;
+ value = readl(offs);
return value;
}
* space, see dwc3_probe in core.c.
* However, the offsets are given starting from xHCI address space.
*/
- writel(value, base + offs);
+ offs += base;
+ writel(value, offs);
}
static inline void dwc3_flush_cache(int addr, int length)