Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5911746rwb; Wed, 7 Sep 2022 09:42:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+TLwNLMXM/zHebO3UhePNTwRs5GJ31fhNIJNM+RflFH+hd6A0tV6S9vCwehu8r+Fpwa2S X-Received: by 2002:aa7:c415:0:b0:44d:f432:3e84 with SMTP id j21-20020aa7c415000000b0044df4323e84mr3900578edq.56.1662568935817; Wed, 07 Sep 2022 09:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662568935; cv=none; d=google.com; s=arc-20160816; b=kqSl129XWKim715/0PMq05z1HhkZhZZmiNYFHFUeAE+5arqzxPPQQPpZasFLzP+9Am ++Jlhvu0oyJ5W9gfoKJQSkV4dTcBJORsXdqnZknW/Obe+iO0WowZspgd69sckfs6ni1E KTJhkehJbuvARugXCILjXZJV7IbSK0tEK498hN2hWe/I25sP0ZkrOkh/uYdlE+PVFqXt h8Zo9uSDGMP4Kv2hd2Bsbhdk/4NJtx8TF76Wbq1CStiXGZa2ktTizUfUJ7UnWkpDg/6u ahAvMswSfyYQ3uPYjrUfNsTuDvy0Y3p64nW5FxECOHdctz135XlDjQmpZJthsUdRy8p5 DdCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uqk75MFBdi9UR1b7MSDnxHWFhteNJSOMOtOSBEJdrTw=; b=Gul2SavIO1PTSgNOaUZz99VtPZ9DGhfse5Y97by+ezANRqtnY9pVJ6hexi8Lw7O5ND 3pyhdrGU+nLmSuRBAgE3Ge7eKJlcIV6Lv9tOlpn5B+G1ZMqnr75j09tSGrththn7itWN KVaYeU1K8lo0ThYH0NZuTNKqNu+RkNuYtR4e5a6jkoR4DEkyGWChzxhGAosjCM8o5gQU 8aNc9/BLcxigf+XnXn6dVkN7x7HDFjYu9vo03MnGqijYlXq3F4Af+Y02VujYXz7mMaMm 8Q8QSTSku3A0YnntP8AnPKTLM9AlRVaYnJR06FSYkindWw3ea7tsvmgjho9+j06xp1rJ BmFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HPpl33S+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz21-20020a0564021d5500b0044ec439e9b0si5036536edb.346.2022.09.07.09.41.50; Wed, 07 Sep 2022 09:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HPpl33S+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbiIGQBL (ORCPT + 99 others); Wed, 7 Sep 2022 12:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbiIGQAd (ORCPT ); Wed, 7 Sep 2022 12:00:33 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F0DA915CD for ; Wed, 7 Sep 2022 09:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662566403; x=1694102403; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hO/ygtyyqutcViUvWsaXsvt/Qi8P3M4tyR8fhZGvumg=; b=HPpl33S+4gWJv9hBeay5NyRyCX1LaKPhMshz3rB3KPegETjGjQr/RUZI qDmQGoDK5OKMx+rN7WfDySkxdN+ENCfhSv3II1F9zmuhuqlwYSPvMhvU3 Rxru66+Ph2ZUkUOR/LZh4sxDpvbOXtEe8j6or55I8xxY0MOghdcUgrGiA c3TqCzpH0S7kXrQ1MiR2lbzVfVzDQVAcGLdg31IMZdhRdMiX1M/SZGjE0 /YI66cVe+RZwI9canfLuPOY83QLH8U2PC6lOWqJfbPWlDRfqLzmIQ3QkL 9UU6A7J2mVA4doA6m5z5eW/zrEXIq4fDAwgoppZSQbAI9JDBzE4qdFLLp g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297701570" X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="297701570" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:59:34 -0700 X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="676248208" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:59:30 -0700 From: Tomas Winkler To: Greg Kroah-Hartman , David Airlie , Daniel Vetter Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tomas Winkler , Alexander Usyskin , Vitaly Lubart Subject: [PATCH v8 13/16] mei: drop ready bits check after start Date: Wed, 7 Sep 2022 18:58:10 +0300 Message-Id: <20220907155813.1427526-14-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907155813.1427526-1-tomas.winkler@intel.com> References: <20220907155813.1427526-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Usyskin 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 Signed-off-by: Tomas Winkler --- drivers/misc/mei/init.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 1b4d5d7870b9..bac8852aad51 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -218,16 +218,6 @@ int mei_start(struct mei_device *dev) goto err; } - if (!mei_host_is_ready(dev)) { - dev_err(dev->dev, "host is not ready.\n"); - goto err; - } - - if (!mei_hw_is_ready(dev)) { - dev_err(dev->dev, "ME is not ready.\n"); - goto err; - } - if (!mei_hbm_version_is_supported(dev)) { dev_dbg(dev->dev, "MEI start failed.\n"); goto err; -- 2.37.2