mei: demote client disconnect warning on suspend to debug
authorAlexander Usyskin <alexander.usyskin@intel.com>
Thu, 30 May 2024 09:14:15 +0000 (12:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 15:11:44 +0000 (17:11 +0200)
commit1db5322b7e6b58e1b304ce69a50e9dca798ca95b
treeab1218fbc68c7cdba2fb772c84b31febf75dacb5
parentc3f38fa61af77b49866b006939479069cd451173
mei: demote client disconnect warning on suspend to debug

Change level for the "not connected" client message in the write
callback from error to debug.

The MEI driver currently disconnects all clients upon system suspend.
This behavior is by design and user-space applications with
open connections before the suspend are expected to handle errors upon
resume, by reopening their handles, reconnecting,
and retrying their operations.

However, the current driver implementation logs an error message every
time a write operation is attempted on a disconnected client.
Since this is a normal and expected flow after system resume
logging this as an error can be misleading.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240530091415.725247-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c