OSDN Git Service

mei: add mei_stop function to stop mei device
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 10 Mar 2013 11:56:08 +0000 (13:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 18:18:07 +0000 (11:18 -0700)
commit7cb035d9e619a8d20f5d3b9791f8cb5160d19e70
treee4dd1bb6addf4dc4e49370cbcfb5a1cdabe49174
parent3d374d09f16f64ab4d71704cbe621514d36cd0b1
mei: add mei_stop function to stop mei device

mei_stop calls mei_reset with disabling the interrupts.
It will have the same effect as the open code it replaces in the mei_remove.

The reset sequence on remove is required for the Lynx Point LP devices
to clean the reset state.

mei_stop is called from mei_pci_suspend and mei_remove functions

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/init.c
drivers/misc/mei/mei_dev.h
drivers/misc/mei/pci-me.c