lkml.org 
[lkml]   [2013]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 4/6] mfd: omap-usb-host: Put pins in IDLE state on suspend
    On 07/14/2013 04:22 PM, Kevin Hilman wrote:
    > On 07/10/2013 05:23 PM, Roger Quadros wrote:
    >> In order to support wake up from suspend use the pinctrl
    >> framework to put the USB host pins in IDLE state during suspend.
    >>
    >> CC: Samuel Ortiz <sameo@linux.intel.com>
    >> Signed-off-by: Roger Quadros <rogerq@ti.com>
    >
    > [...]
    >
    >> @@ -608,6 +618,14 @@ static int usbhs_omap_probe(struct platform_device *pdev)
    >> return -ENOMEM;
    >> }
    >>
    >> + if (!dev->pins || !dev->pins->idle_state) {
    >> + /* If IDLE pins are not available, we can't remote wakeup,
    >> + * so prevent idling in that case.
    >> + */
    >
    > nit: multi-line comment style
    >
    > Also, if there are no pins, aren't the pinctrl ops nops anyways? IOW,
    > not sure the need
    > for this is clear, and it's not mentioned in the changelog.

    The pinctrl ops are nops but the runtime suspend isn't. So in this case,
    we'll never be able to wake up the USB controller.

    I'll update the changelog to reflect this.

    cheers,
    -roger


    \
     
     \ /
      Last update: 2013-07-15 11:03    [W:2.814 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site