All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hid: sony: Clear and restore controller state on suspend and resume
@ 2015-11-07 15:12 Frank Praznik
  2015-11-07 15:12 ` [PATCH 1/2] hid: sony: Refactor output report sending functions Frank Praznik
  2015-11-07 15:12 ` [PATCH 2/2] hid: sony: Save and restore controller state on suspend and resume Frank Praznik
  0 siblings, 2 replies; 6+ messages in thread
From: Frank Praznik @ 2015-11-07 15:12 UTC (permalink / raw)
  To: linux-input; +Cc: jkosina, Frank Praznik

On systems with standby power for charging devices the LEDs and rumble on the
controller can continue to function even when the system is in standby since
the state is not cleared when the system goes to sleep.

The state on wakeup can also differ from the state when the system entered
standby as the LEDs can be cleared when the device is reset on wakeup.

The first patch refactors the output report functions to allow sending an
output report without going through the work queue.  This is necessary when
clearing the state of the controller before the system is goes into standby
since the work might not be executed before the system goes to sleep.

The second patch implements the suspend and resume callbacks which serializes
and clears the LEDs on suspend and restores them on resume.

Force-feedback is cleared on suspend but the state is not restored on resume
since it can potentially result in hardware damage if the device is unattended
when the system wakes.  A new event will be required to resume force-feedback.


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

end of thread, other threads:[~2015-11-09 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 15:12 [PATCH 0/2] hid: sony: Clear and restore controller state on suspend and resume Frank Praznik
2015-11-07 15:12 ` [PATCH 1/2] hid: sony: Refactor output report sending functions Frank Praznik
2015-11-09 14:02   ` Antonio Ospite
2015-11-09 15:59     ` Frank Praznik
2015-11-07 15:12 ` [PATCH 2/2] hid: sony: Save and restore controller state on suspend and resume Frank Praznik
2015-11-09 14:03   ` Antonio Ospite

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.