Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: drop ready bits check after start

The check that hardware and host ready bits are set after start
is redundant and may fail and disable driver if there is
back-to-back link reset issued right after start.
This happens during pxp mode transitions when firmware
undergo reset. Remove these checks to eliminate such failures.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907215113.1596567-14-tomas.winkler@intel.com
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

authored by

Alexander Usyskin and committed by
Joonas Lahtinen
267cb870 bc9abe0e

-10
-10
drivers/misc/mei/init.c
··· 218 218 goto err; 219 219 } 220 220 221 - if (!mei_host_is_ready(dev)) { 222 - dev_err(dev->dev, "host is not ready.\n"); 223 - goto err; 224 - } 225 - 226 - if (!mei_hw_is_ready(dev)) { 227 - dev_err(dev->dev, "ME is not ready.\n"); 228 - goto err; 229 - } 230 - 231 221 if (!mei_hbm_version_is_supported(dev)) { 232 222 dev_dbg(dev->dev, "MEI start failed.\n"); 233 223 goto err;