This series add generic function to poll register waiting for one or more bits to change.
Very similar function was used in several drivers: - dwc2 - ohci-lp32xx - ehci-mx6 - zynq_gem First patch adds function, following patches update drivers and board config files / defconfigs. This series was compile-tested with buildman for ~50 boards (most or even all boards affected by change) Code was also run-tested on ehci-msm driver (not yet in mainline) There is single difference in behavior: ohci-lp32xx driver will not print "Timeout..." message with debug disabled. I think it's not a big issue as this driver seems unused, but if it's an issue - please drop that patch. Mateusz Kulikowski (5): lib: Add wait_for_bit usb: dwc2: Use shared wait_for_bit usb: ohci-lpc32xx: Use shared wait_for_bit usb: ehci-mx6: Use shared wait_for_bit net: zynq_gem: Use shared wait_for_bit drivers/net/Kconfig | 1 + drivers/net/zynq_gem.c | 35 ++-------------------------- drivers/usb/host/dwc2.c | 43 +++++++++++++--------------------- drivers/usb/host/ehci-mx6.c | 37 +++++++---------------------- drivers/usb/host/ohci-lpc32xx.c | 36 ++++++++-------------------- include/configs/aristainetos-common.h | 1 + include/configs/cgtqmx6eval.h | 1 + include/configs/embestmx6boards.h | 1 + include/configs/gw_ventana.h | 1 + include/configs/hikey.h | 1 + include/configs/mx6cuboxi.h | 1 + include/configs/mx6qarm2.h | 1 + include/configs/mx6qsabreauto.h | 1 + include/configs/mx6sabresd.h | 1 + include/configs/mx6slevk.h | 1 + include/configs/mx6sxsabresd.h | 1 + include/configs/mx6ul_14x14_evk.h | 1 + include/configs/nitrogen6x.h | 1 + include/configs/novena.h | 1 + include/configs/ot1200.h | 1 + include/configs/platinum.h | 1 + include/configs/rpi-common.h | 1 + include/configs/socfpga_common.h | 1 + include/configs/tbs2910.h | 1 + include/configs/titanium.h | 1 + include/configs/tqma6.h | 1 + include/configs/wandboard.h | 1 + include/configs/warp.h | 1 + include/wait_bit.h | 34 +++++++++++++++++++++++++++ lib/Kconfig | 4 ++++ lib/Makefile | 1 + lib/wait_bit.c | 44 +++++++++++++++++++++++++++++++++++ 32 files changed, 144 insertions(+), 114 deletions(-) create mode 100644 include/wait_bit.h create mode 100644 lib/wait_bit.c -- 2.5.0 _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

