]> git.baikalelectronics.ru Git - kernel.git/commit
mei: init: Flush scheduled work before resetting the device
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Jun 2013 07:10:25 +0000 (10:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Jun 2013 05:31:05 +0000 (22:31 -0700)
commitf4703f6a9339894c8ae281f21c867afefd4ae74c
tree6ac3ef0c143f783732d47008077a2958142871ee
parent9e1371520a92846c7d09a055043a55a8e212b7aa
mei: init: Flush scheduled work before resetting the device

Flushing pending work items before resetting the device makes more
sense than doing so afterwards. Some of them, like e.g. the NFC
initialization one, find themselves with client IDs changed after
the reset, eventually leading to trigger a client.c:mei_me_cl_by_id()
warning after a few modprobe/rmmod cycles.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/init.c