From: Manfred Schlaegl Date: Fri, 27 May 2016 23:36:36 +0000 (-0700) Subject: Input: pwm-beeper - fix - scheduling while atomic X-Git-Tag: v3.2.82~56 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ab9b883b36507e4ca4e5a0883fcca25c8a9e32c;p=pandora-kernel.git Input: pwm-beeper - fix - scheduling while atomic commit f49cf3b8b4c841457244c461c66186a719e13bcc upstream. Pwm config may sleep so defer it using a worker. On a Freescale i.MX53 based board we ran into "BUG: scheduling while atomic" because input_inject_event locks interrupts, but imx_pwm_config_v2 sleeps. Tested on Freescale i.MX53 SoC with 4.6.0. Signed-off-by: Manfred Schlaegl Signed-off-by: Dmitry Torokhov [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed