
7 Mar
2013
7 Mar
'13
2:49 p.m.
On Wed, Mar 6, 2013 at 12:48 AM, Vivek Gautam gautam.vivek@samsung.com wrote:
With current FDT support driver tries to parse device node twice in ehci_hcd_init() and ehci_hcd_stop(), which shouldn't happen ideally. Making provision to store data in a global structure and thereby passing its pointer when needed.
Signed-off-by: Vivek Gautam gautam.vivek@samsung.com
Acked-by: Simon Glass sjg@chromium.org
Changes from v3:
- Checking for error return in exynos_usb_parse_dt() and returning there only in case of failure for DT systems.
- Removed unnecesassry parentheses.
Changes from v2:
- Using hcd as "struct ehci_hccr *" rather than "unsigned int" to avoid unnecessary typecasting later in the code.
- Further using local variable of type "fdt_addr_t" in exynos_usb_parse_dt() and modifying the code as required.
Changes from v1:
- Added patch to fix problem of multiple FDT decode.
drivers/usb/host/ehci-exynos.c | 44 ++++++++++++++------------------------- 1 files changed, 16 insertions(+), 28 deletions(-)