mei: fix regression on NFC connection
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 19 Mar 2015 10:10:09 +0000 (12:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 10:36:37 +0000 (11:36 +0100)
commitab3ae0096a6d31e1b244c5c5155f48ef3700329e
tree742d1e4ebd8b82c9e881fc7634fa036347e27792
parentaa6467f190d32b263f7144239c89c63c922d9ff8
mei: fix regression on NFC connection

In mei_host_client_init function we enable the all internal
connected clients including NFC. This is done before we set the device
to enabled state and let userspace call open.
We need to check only for MEI_FILE_CONNECTED in mei_cl_is_connected
in order to enable the communication with the clients before
MEI_DEV_ENABLED is set.

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