Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1940396imi; Sun, 24 Jul 2022 01:29:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ti50jrgplZtKnvpT2bK85eqPxJKy6kiZW8MUY0IdLB9A5zbZufB9NGIfukP/6IiazldGTH X-Received: by 2002:a17:906:b6c7:b0:726:60aa:1b81 with SMTP id ec7-20020a170906b6c700b0072660aa1b81mr5877668ejb.383.1658651373446; Sun, 24 Jul 2022 01:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658651373; cv=none; d=google.com; s=arc-20160816; b=HspSJapcOog/3oRUcreUGs0+Tuatz5WVqd6o9j6GM/AWDCzKGNFEoQFVDrhEDL+SLD nVZqWhlmD9HUfl7ESL5fxQQsmd7whArjErMnGMqgWD+kHBVuhQMYucEedPSu6ME6eBTw aIwBBvcqOc4APekx5KLdYfrSbj86qnNFNITUPocvfIsYJuXMUymOSJq2/m4eHyJRh+r5 TqgoUMhx6QgY47oy6qn69408kMlWOkqRNxfKD9TXkgKJm0vMWg7q0nBabe9b55dlIKSA Y3EIB2XUVSJuZx+THPicxAfBehotH/ccuqRfRec86GCJ60hyBI7xq/VWsfbbOrbaZqP8 xvvg== 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=PyJ82/kA5v12eE5Ur7lrv5B2qUibNntyAg1p5LuJrOo=; b=AZFyq0uDUI+lxfYL9pTlSlgnZUUnaL4rrPpUVtpuCXRLC1Tjew6CpTVeSxI1G97cpU O1ZKIM3qQLHE/keJINTyLk5MODJjoqRXcO4lWLSja424vTIizVHT1iPQ/hlaCG7vPPkH tAzjm7KM6qdq157/1mmDkEsw48RJIIY0QHJ115+4KZS/LTxCHfBj37HO3uv93fKhMW3G 1G6LdQ1EmMAZRSOwkNth63F9YWPd6cgzS+O5M08QrPAUadBMnkS2Q6Pi+WSvTyyUEIa6 6jrTYVP6eXKPUAUYQOfd9G5rXbbdMqY3boeUCdjwr2gryQFdmsvJ88WUZ7Qq8HiuKML6 Lm2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UhcLxjiE; 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 i2-20020a170906698200b00712210a96a4si9610907ejr.226.2022.07.24.01.29.08; Sun, 24 Jul 2022 01:29:33 -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=UhcLxjiE; 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 S232444AbiGXI0I (ORCPT + 99 others); Sun, 24 Jul 2022 04:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbiGXIZn (ORCPT ); Sun, 24 Jul 2022 04:25:43 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BEE418394 for ; Sun, 24 Jul 2022 01:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658651128; x=1690187128; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=G1yujhj6+qoFPYeeBDu99uItvtsOTw0MkkjgAD9XQts=; b=UhcLxjiEN8F4Hn9g+SqcbRMAyixzbqR27x3pbMpaGL0W9960L2wZZqcS Bj1EjaWK2DhMQTNh+bkLbrE+Bl0jvldxppbX+3mRaLtBjdsBkDFwWgOZc AQh7y+PMN6B008HjsnfzFOBIPJ0qkp3I8yuKkZ9lcK0e4xih2Rp8WSovX Q+CaucrWCX6TP0xkeFI7YwR/SMynFxQVddy3s7+Ne53yhKPtze8cknHzG k7Mw/0yQJNe2Z2TIh45IM5SMhc0EkYDhIxQLAxmViTtbGmy76GiGqBfKE VAOlzHV+jZMrRZ80Vqo2iwZLpfyxAPx5/ajU7Ts92TyvIzVw7KqgV4/zY g==; X-IronPort-AV: E=McAfee;i="6400,9594,10417"; a="288708512" X-IronPort-AV: E=Sophos;i="5.93,190,1654585200"; d="scan'208";a="288708512" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2022 01:25:27 -0700 X-IronPort-AV: E=Sophos;i="5.93,190,1654585200"; d="scan'208";a="657756401" 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; 24 Jul 2022 01:25:24 -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 v6 11/14] mei: gsc: add transition to PXP mode in resume flow Date: Sun, 24 Jul 2022 11:24:25 +0300 Message-Id: <20220724082428.218628-12-tomas.winkler@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220724082428.218628-1-tomas.winkler@intel.com> References: <20220724082428.218628-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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: 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 --- 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 c8a167b57cc9..71f247f5e7ca 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 device *device) static int __maybe_unused mei_gsc_pm_resume(struct device *device) { struct mei_device *dev = dev_get_drvdata(device); + struct auxiliary_device *aux_dev; + struct mei_aux_device *adev; int err; + struct mei_me_hw *hw; if (!dev) return -ENODEV; + hw = to_me_hw(dev); + aux_dev = to_auxiliary_dev(device); + adev = 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 = MEI_DEV_PXP_INIT; + } + err = mei_restart(dev); if (err) return err; -- 2.35.3