linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv4 0/3] USB: gadget: atmel_usba_udc: Start clocks on rising edge of the Vbus signal, stop clocks on falling edge of the Vbus signal
@ 2015-01-20 21:23 Sylvain Rochet
  2015-01-20 21:23 ` [PATCHv4 1/3] USB: gadget: atmel_usba_udc: Fixed vbus_prev initial state Sylvain Rochet
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sylvain Rochet @ 2015-01-20 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

If USB PLL is not necessary for other USB drivers (e.g. OHCI and EHCI) 
reduce power consumption by switching off the USB PLL if no USB Host is 
currently connected to this USB Device.

Changes since v3:
  * Added stable tag for the first patch
  * As suggested, removed the unused check for udc->driver is not NULL in 
    Vbus IRQ by requesting IRQ after udc->driver is set and by releasing 
    IRQ before udc->driver is cleared
  * Rebased the core patch of this series against the just explained changes

Changes since v2:
  * Use spin_lock_irqsave/unlock_irqrestore instead of spin_lock/unlock in
    threaded interrupt because we are not in irq context anymore
  * Removed useless and probably harmful IRQF_NO_SUSPEND from
    devm_request_threaded_irq() flags

Changes since v1:
  * Using a threaded irq and mutex instead of spinclock as suggested
  * Moved a silently fixed bug in a separate patch (1/2)

Sylvain Rochet (3):
  USB: gadget: atmel_usba_udc: Fixed vbus_prev initial state
  USB: gadget: atmel_usba_udc: Enable Vbus signal IRQ in UDC start
    instead of UDC probe
  USB: gadget: atmel_usba_udc: Start clocks on rising edge of the Vbus
    signal, stop clocks on falling edge of the Vbus signal

 drivers/usb/gadget/udc/atmel_usba_udc.c | 130 +++++++++++++++++++++-----------
 drivers/usb/gadget/udc/atmel_usba_udc.h |   4 +
 2 files changed, 89 insertions(+), 45 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-21 13:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 21:23 [PATCHv4 0/3] USB: gadget: atmel_usba_udc: Start clocks on rising edge of the Vbus signal, stop clocks on falling edge of the Vbus signal Sylvain Rochet
2015-01-20 21:23 ` [PATCHv4 1/3] USB: gadget: atmel_usba_udc: Fixed vbus_prev initial state Sylvain Rochet
2015-01-20 21:23 ` [PATCHv4 2/3] USB: gadget: atmel_usba_udc: Enable Vbus signal IRQ in UDC start instead of UDC probe Sylvain Rochet
2015-01-21  9:20   ` Boris Brezillon
2015-01-21 13:18     ` Sylvain Rochet
2015-01-20 21:23 ` [PATCHv4 3/3] USB: gadget: atmel_usba_udc: Start clocks on rising edge of the Vbus signal, stop clocks on falling edge of the Vbus signal Sylvain Rochet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).