summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/displays/panel-minnow.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-05-22 18:28:38 +0200
committerDoug Zobel <dzobel1@motorola.com>2014-11-17 09:12:16 -0600
commit70f0e2337725fd14899a6b76c6aae2dbda8f6ba4 (patch)
treee68eba9ed571f0be68d7637ec76d1efbd34f2007 /drivers/video/omap2/displays/panel-minnow.c
parentda1f2d42974e2f72cb0e53cf60e48254ed00f741 (diff)
downloadolio-linux-3.10-70f0e2337725fd14899a6b76c6aae2dbda8f6ba4.tar.xz
olio-linux-3.10-70f0e2337725fd14899a6b76c6aae2dbda8f6ba4.zip
firmware: Avoid deadlock of usermodehelper lock at shutdown
When a system goes to reboot/shutdown, it tries to disable the usermode helper via usermodehelper_disable(). This might be blocked when a driver tries to load a firmware beforehand and it's stuck by some reason. For example, dell_rbu driver loads the firmware in non-hotplug mode and waits for user-space clearing the loading sysfs flag. If user-space doesn't clear the flag, it waits forever, thus blocks the reboot, too. As a workaround, in this patch, the firmware class driver registers a reboot notifier so that it can abort all pending f/w bufs before issuing usermodehelper_disable(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Conflicts: drivers/base/firmware_class.c Change-Id: I7ff6c198cd34090e55845b9d4035b1e5dc86226b
Diffstat (limited to 'drivers/video/omap2/displays/panel-minnow.c')
0 files changed, 0 insertions, 0 deletions