Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3291507pxb; Thu, 10 Feb 2022 17:38:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKMeB8uS4gvGzpRKi5pkeSbGqt/22cTyn6WiCeeH1KRvW0umDHAovq630gue4jq1FcT1QU X-Received: by 2002:a17:907:6d17:: with SMTP id sa23mr8284439ejc.551.1644543491587; Thu, 10 Feb 2022 17:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644543491; cv=none; d=google.com; s=arc-20160816; b=hX9Wzjhr5D4UaL0xxqiDZiJnxu7FpQnk9GXd26ZF73A0ZJYbecfghAgYaj12VjmGtw 4QVntFQPm6UOnhVlqy2jEaKkMIW91LlxzJVFomok9ESLK0Fu23BKJUbRxkx8mT3/PU2a myU2a5rTSwvb0Kre5YbFkyVCgmkEeMYtjWx566veBaw9sJnUEE01ErWre6yOOXOra9Oc h+RGFvZNaQSJbGbfBrfaTSRKriKwfH6dn/hAUcEdNb4NdsR7iNuOxpjtJdmgLE2QspH0 uC8Pbqmp3AN3NMU7UB/vbWUWEO8wTUx+/I4fyIHpfBSK/wRxITq339ASxp1gwC2JAWOe DS9A== 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=8Z9br8U5xHyZGR26QcOhEHSsmy3GR2QiwkhwqfGbbqs=; b=jy5KJVTnVRChCP/m1eCCaLnJGwZscfMG61brIEr1mGOfeuiPfGkvoz8fZB7WPU1rSO i7Lzoq2QkzqI4N4+2pyn6jbPuGtQr7xXLD8PSQmqD3nRe7sfwV/caNfAgzp1pHwBVesY ex7rRp3yj3Ph3BoK/t+Na5x/8TpyemO1U+uP1DEtN0xLHf1l9ql7ZQM+z3wsKGXRTcPV pjCzLOvAT2jj36Ijr8JAJVH36W/+azuY1KaVKVP5hJiS8rZSmSHOBOoGs3U6tEnaJ3W2 nEdwWiYQlDN0mWwCVyt2DPAK2oufmfySbVybHgFhZCSDs5+S03E5WZ8UpP9ui5VTsojT tpSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WY3A/Bcr"; 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 oz14si2422357ejc.17.2022.02.10.17.37.45; Thu, 10 Feb 2022 17:38:11 -0800 (PST) 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="WY3A/Bcr"; 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 S240280AbiBJKz1 (ORCPT + 99 others); Thu, 10 Feb 2022 05:55:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240231AbiBJKzY (ORCPT ); Thu, 10 Feb 2022 05:55:24 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F1FC24 for ; Thu, 10 Feb 2022 02:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644490526; x=1676026526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=azAEAI0Fg/kGZ09zLDIdo+Wl6+JUyPmAKn9bATV4jtU=; b=WY3A/Bcr4LB2Oke1WV4hFpfE81F+S6cXboCrCRWmGV6MWEs1voKXZe6a 1ioqE117y9TNdyDmnGn+tiFfy+Dk/nEJpu077SxYeBgcJ+Pe+x7qCKhZ/ fOvQeB8YrRkyj0MMPQV3if8XN27FmyZ8g2b+/bu+vlMPdVT9/NQSUvNMR PV+A71/oyyvd24WBzqNIgIb2YDMJMqnBE1paB8zuFns9Kbq2ZrvN9G7u+ Ty3pWAQqQeTrX44F7C3FcoOjiDZrCsiFe91WUNm+IOPSF/iTxUxcdu000 MshkyxlHs8Eocpv5beWsYjyGC/hkeLJxdHdV5OtigYbf8yObqW2tQd+cx g==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="310202829" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="310202829" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 02:55:26 -0800 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="679106841" Received: from barabano-mobl.ccr.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.41.18]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 02:55:23 -0800 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com Cc: alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, daniel.baluta@nxp.com, tiwai@suse.com, linux-kernel@vger.kernel.org, fred.oh@linux.intel.com Subject: [PATCH 1/9] ASoC: SOF: Drop unused DSP power states: D3_HOT and D3_COLD Date: Thu, 10 Feb 2022 12:55:11 +0200 Message-Id: <20220210105519.19795-2-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220210105519.19795-1-peter.ujfalusi@linux.intel.com> References: <20220210105519.19795-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The only reference to D3_HOT and D3_COLD DSP power state is in intel/hda-dsp.c in form of a dev_dbg() print. Remove them as they are not used and even if they are they could be re-added via the substate. Signed-off-by: Peter Ujfalusi Reviewed-by: Kai Vehmanen Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan --- sound/soc/sof/intel/hda-dsp.c | 6 ------ sound/soc/sof/sof-priv.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/sound/soc/sof/intel/hda-dsp.c b/sound/soc/sof/intel/hda-dsp.c index 0fe522549c91..8ddde60c56b3 100644 --- a/sound/soc/sof/intel/hda-dsp.c +++ b/sound/soc/sof/intel/hda-dsp.c @@ -498,15 +498,9 @@ static void hda_dsp_state_log(struct snd_sof_dev *sdev) case SOF_DSP_PM_D2: dev_dbg(sdev->dev, "Current DSP power state: D2\n"); break; - case SOF_DSP_PM_D3_HOT: - dev_dbg(sdev->dev, "Current DSP power state: D3_HOT\n"); - break; case SOF_DSP_PM_D3: dev_dbg(sdev->dev, "Current DSP power state: D3\n"); break; - case SOF_DSP_PM_D3_COLD: - dev_dbg(sdev->dev, "Current DSP power state: D3_COLD\n"); - break; default: dev_dbg(sdev->dev, "Unknown DSP power state: %d\n", sdev->dsp_power_state.state); diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index e48402ce4bdb..6358f8c84cce 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -84,9 +84,7 @@ enum sof_dsp_power_states { SOF_DSP_PM_D0, SOF_DSP_PM_D1, SOF_DSP_PM_D2, - SOF_DSP_PM_D3_HOT, SOF_DSP_PM_D3, - SOF_DSP_PM_D3_COLD, }; struct sof_dsp_power_state { -- 2.35.1