From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@linaro.org (Kevin Hilman) Date: Sun, 14 Jul 2013 14:22:11 +0100 Subject: [PATCH 4/6] mfd: omap-usb-host: Put pins in IDLE state on suspend In-Reply-To: <1373473380-27515-1-git-send-email-rogerq@ti.com> References: <1373473081-27181-1-git-send-email-rogerq@ti.com> <1373473380-27515-1-git-send-email-rogerq@ti.com> Message-ID: <51E2A603.1000805@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > Signed-off-by: Roger Quadros [...] > @@ -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. Kevin