From nobody Sat Apr 11 21:28:56 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B657FC19F2D for ; Sat, 6 Aug 2022 12:28:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbiHFM2z (ORCPT ); Sat, 6 Aug 2022 08:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232366AbiHFM2M (ORCPT ); Sat, 6 Aug 2022 08:28:12 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF1721146C for ; Sat, 6 Aug 2022 05:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659788874; x=1691324874; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jx/RMTHnZHuM76tciVNK6Z7cwRFQrZ3w7f04UahLs84=; b=TLvi1hHrvacpwExf0R0kjGShJjHL33wDvGTFoGFJVmvkyYBDKoTv1pGU /MBXNHEWhA7KOJVCNJZqomBSxUAysUhZ9zO4YtBtDYDqWCfxkHO+VKrWu SFToAcDHrJZcvXi1jDv+qu+QKIPjmOavf6Lax26CauBXdVPatPqXkNkQy +o3upyGQ09c3MkSK6FIHLAxVgQPNOMglas15RSeukLKYe9zdWrpnCoc91 ceUbjFc+52KteQUctcLtcyJdVECs4Sxycth3bNFyRUacVg2ZRIyKIaXRM TZLAIw6VYJGL+ddLp2iF0q73pBVOqMJRCQ8Iry2QH2Bq6tu5fpqa5Iob0 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10430"; a="289121910" X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="289121910" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2022 05:27:54 -0700 X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="632329136" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2022 05:27:51 -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 , Daniele Ceraolo Spurio Subject: [PATCH v7 12/15] mei: gsc: add transition to PXP mode in resume flow Date: Sat, 6 Aug 2022 15:26:33 +0300 Message-Id: <20220806122636.43068-13-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220806122636.43068-1-tomas.winkler@intel.com> References: <20220806122636.43068-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Vitaly Lubart Added transition to PXP mode in resume flow. CC: Daniele Ceraolo Spurio Signed-off-by: Vitaly Lubart Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin Reviewed-by: Daniele Ceraolo Spurio --- drivers/misc/mei/gsc-me.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/misc/mei/gsc-me.c b/drivers/misc/mei/gsc-me.c index 6b22726aed55..75765e4df4ed 100644 --- a/drivers/misc/mei/gsc-me.c +++ b/drivers/misc/mei/gsc-me.c @@ -182,11 +182,22 @@ static int __maybe_unused mei_gsc_pm_suspend(struct d= evice *device) static int __maybe_unused mei_gsc_pm_resume(struct device *device) { struct mei_device *dev =3D dev_get_drvdata(device); + struct auxiliary_device *aux_dev; + struct mei_aux_device *adev; int err; + struct mei_me_hw *hw; =20 if (!dev) return -ENODEV; =20 + hw =3D to_me_hw(dev); + aux_dev =3D to_auxiliary_dev(device); + adev =3D auxiliary_dev_to_mei_aux_dev(aux_dev); + if (adev->ext_op_mem.start) { + mei_gsc_set_ext_op_mem(hw, &adev->ext_op_mem); + dev->pxp_mode =3D MEI_DEV_PXP_INIT; + } + err =3D mei_restart(dev); if (err) return err; --=20 2.37.1