Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2876062pxb; Thu, 10 Feb 2022 07:28:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBmLpvFAIbPWXDCV8kx9eSlg/zYcuHL8+CQQ5tCztBpfCSa3YO2z6oCqnbtI9dSK+mfBAE X-Received: by 2002:a17:906:c10c:: with SMTP id do12mr6864788ejc.470.1644506905900; Thu, 10 Feb 2022 07:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644506905; cv=none; d=google.com; s=arc-20160816; b=stL0V+LEtnQBgkFYHXPbXvbuw+V84Qx0C4cdTnJlxECQBx64aRmHc/aXQ/09nfnby7 zGtLImoIIw71kSuNCQTesKPDZaryqROaeGJ2cuY7L6YKR/xu9692MMIJqDGX6KeqSiQB CQDm66iv3bFVRCsHY/zYd65x9zINznQfuR3R8ZCOOivgbMhcIaI3NQQw1J6oKkkmp3g1 Bw7Lyrh6OOhAXXD4R13eUcr/xm0I8oOOobSeEKpOMcu9ebQ1n+NxjMuPqFmdOnsLLHNx jRcI4zvNdDmSlzPJ21fYbvbnBLn/B2rkPmisXaneCIzW6ufg1prKDqKXoTof01aVM/H4 qJLA== 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=YCnrUQSyslQj/snuM7j8i5827CN9WzF5Vxcac0QadDulCueMqZkz+egQ9OMoKX1/OX kavYAAVedOF0L20Sc7h/SdJWXZWbRfDmebp/Bbgy570hsor1l6iw9x2aH2tiIr8MyliQ qi4H3cK7ityo3xqGbeyHrdfmzh1L+YPY6a5/ePKAbpcmu130ZgBGwl1Sa8TWEXPiZiin xhPXUqGZ9S4lihgpdsc5r1808TDG5/vJxzN+/n8ztUH4o+4mp0XLjFwMdArIsZogBUt+ sX0SWz+iPqEoE47ezV/cgEM+88fDkhSZtPaUZg0IiHoG94FT9SagVoghER9KxUG/aV11 zj8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="U/RXdM5U"; 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 h3si12638600ejo.41.2022.02.10.07.28.00; Thu, 10 Feb 2022 07:28:25 -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="U/RXdM5U"; 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 S243388AbiBJPFj (ORCPT + 99 others); Thu, 10 Feb 2022 10:05:39 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243380AbiBJPFc (ORCPT ); Thu, 10 Feb 2022 10:05:32 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53D1C53 for ; Thu, 10 Feb 2022 07:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644505533; x=1676041533; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=azAEAI0Fg/kGZ09zLDIdo+Wl6+JUyPmAKn9bATV4jtU=; b=U/RXdM5U5T3CqTmXokNLmdhFVfW44DCdOT8ELrqM3brmPaMoOJ17SJv9 LG+FHN5xErNYf4IVYGq2X0+tyNNegZrMpQCakLYif3m08qf3ql7SOcIkL uSfmkdNiN229Q8Opya9NsHAG5KqO8X95JtPy8sosLRNeQvqazF6YF+zej EejuHL+jK3lEvEHFaDFdBZ1taHQ9gYkl9gDXo2YrDkQ9OrGTMdi2U/B6t akoRQ2CZqpEGjfHUjMMs7FIGiPyhyOEku+o+tQIgLtDq9u01olj1AdKgp wajNfMlQcmraWRLEBlaoYIl0X51dyz4wi4rk5xbEHDwwMHQf4GAzZU6O3 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="230153184" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="230153184" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 07:05:33 -0800 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="500422556" Received: from barabano-mobl.ccr.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.41.18]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 07:05:30 -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 v2 1/9] ASoC: SOF: Drop unused DSP power states: D3_HOT and D3_COLD Date: Thu, 10 Feb 2022 17:05:17 +0200 Message-Id: <20220210150525.30756-2-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220210150525.30756-1-peter.ujfalusi@linux.intel.com> References: <20220210150525.30756-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