]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mei: bus: demote error to debug level upon disconnect
authorAlexander Usyskin <alexander.usyskin@intel.com>
Sat, 29 Oct 2016 23:42:19 +0000 (01:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 10:00:09 +0000 (04:00 -0600)
A mei client driver on the mei client bus can call disconnect function on
already internal disconnected client.  A client can disconnect internally,
for example, during link reset or upon FW request. Those are legitimate
flows and we should not log an error message, hence we demote
'Already disconnected' message to the debug level.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c

index 89a694ca624c33642fe71ab10f0077404a7c4dbd..8a1e813a548dd40086ca3e1149e30780554a9a0a 100644 (file)
@@ -481,7 +481,7 @@ int mei_cldev_disable(struct mei_cl_device *cldev)
        mutex_lock(&bus->device_lock);
 
        if (!mei_cl_is_connected(cl)) {
-               dev_err(bus->dev, "Already disconnected");
+               dev_dbg(bus->dev, "Already disconnected");
                err = 0;
                goto out;
        }