[PATCH 0/2] usb: dwc2: Replace polling code with function calls

From: Sevak Arakelyan
Date: Thu Apr 27 2017 - 09:03:19 EST


This series moves dwc2_hsotg_wait_bit_set polling function to core.c and replaces all the
register polling parts of code with function calls

Tested on HAPS platform with DWC_hsotg IP version 3.30a.

Sevak Arakelyan (2):
usb: dwc2: Move polling function to core.c.
usb: dwc2: Use common polling function.

drivers/usb/dwc2/core.c | 84 ++++++++++++++++++++++-------------------------
drivers/usb/dwc2/core.h | 4 +++
drivers/usb/dwc2/gadget.c | 38 +++------------------
drivers/usb/dwc2/hcd.c | 18 ++++------
4 files changed, 54 insertions(+), 90 deletions(-)

--
2.11.0