On 11/21/2012 01:57 PM, Felipe Balbi wrote: > On Thu, Nov 15, 2012 at 04:34:01PM +0200, Roger Quadros wrote: >> This is a handy macro to check if the port requires the >> USB TLL module or not. Use it to Enable the TLL module and manage >> the clocks. >> >> Signed-off-by: Roger Quadros <rogerq@xxxxxx> >> --- >> drivers/mfd/omap-usb-tll.c | 20 ++++++++++++-------- >> 1 files changed, 12 insertions(+), 8 deletions(-) >> >> diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c >> index 943ac14..7054395e 100644 >> --- a/drivers/mfd/omap-usb-tll.c >> +++ b/drivers/mfd/omap-usb-tll.c >> @@ -99,6 +99,10 @@ >> >> #define is_ehci_tll_mode(x) (x == OMAP_EHCI_PORT_MODE_TLL) >> >> +/* only PHY and UNUSED modes don't need TLL */ >> +#define mode_needs_tll(x) ((x != OMAP_USBHS_PORT_MODE_UNUSED) && \ > > prepend with omap_usb_ OK. cheers, -roger -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html