imx: usb: ehci-mx6: wait_for_bit to check reg status
authorAdrian Alonso <aalonso@freescale.com>
Thu, 6 Aug 2015 20:46:03 +0000 (15:46 -0500)
committerMarek Vasut <marex@denx.de>
Wed, 19 Aug 2015 20:30:20 +0000 (22:30 +0200)
commitf0c89d5463d9d27679ca66b5bb86c161da15a3f7
tree1404d787190a584a64c7ac53f37eead5f9e66725
parent35554fc9a194802a43d50b16e92f4efc7f72bd94
imx: usb: ehci-mx6: wait_for_bit to check reg status

Add wait_for_bit to check reg bit status and replace unbounded
loops to check usb command status

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
drivers/usb/host/ehci-mx6.c