mei: bus: demote error to debug level upon disconnect

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>
This commit is contained in:
Alexander Usyskin 2016-10-30 01:42:19 +02:00 committed by Greg Kroah-Hartman
parent 88d1bece89
commit d882039e76
1 changed files with 1 additions and 1 deletions

View 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;
}