Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2395213lqp; Sun, 24 Mar 2024 17:36:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQAuC7jzRIn4yUDKtXj0Df+JhCYrxifl4laBQWucNRjSezLnBLRpdWwgGW1BOz2bL2gwJocst6E1x2WqnIDQ4v+qTNTfC0dTRi2VMe/g== X-Google-Smtp-Source: AGHT+IHrinbU05UJplP5Lnq2Mq51kG/QpMQWeUTnyeLgE4AEEVnEj0R+JhaYQ7nrDd9hUhG4SkO3 X-Received: by 2002:a17:90a:de85:b0:29c:2ab5:7ad9 with SMTP id n5-20020a17090ade8500b0029c2ab57ad9mr3983454pjv.31.1711326971814; Sun, 24 Mar 2024 17:36:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711326971; cv=pass; d=google.com; s=arc-20160816; b=U+pe3zMeo4tyAaRn1N8HOVoz6L5TXwUgA3Oe1ssbpgd9DvVTDpcO5WdimF8MWLKGWK x95ieayclrIagKFhKsLPf7KX9HUqCK2HZIgZbQux5pjbTbgJlx8P7G+xD7F+zaKp3Lbq bFQWHL9lce28+n3/7zYQrclYMr7D0ibPlj+P5CS5gmyRGGHXBFtJzGPKcjP0CyPd6rki 4YUIM2l+jh7CBrhq4Ets9OEcRsIVidA/dgZR0O7JoGE2IRT07faRmwvUbye5liJ6GxWf YQNq1Wudb2b8tfi2Y6JLW7pB5JEe+sy9au0nZlj0VzQhk2fkta/mKYMzRR/LShJOx4N5 wdcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7xFLUe4JQ6569RbQvMwswdKKA96XJMWauH+GL8MeWRc=; fh=k0YGrrLibE4Ez6fKBTWZNvBxelP2UNQexSeTLOSofmw=; b=kbXEXvHt8UHPyaDFCJGpUPTjEEdrWOaPf2RysP2CnEa+iakHFMGdAwasD3XKW2k3B7 9WcbfjlvoiYQzwPTC8BIFE3U+o+OjVuSXqj0PWlVan2NG2s19H1s6Mtlj+tFCUak6/n/ 7QG5eLRkAdEOOQsYsQ9wtcK+n2SFsX42oXs0qfVy6SlVSdrZDbP2nVGBkF3hNFaFwYiS oYXFXop2scZsMtsILQ4Vt8UxBviQvyw50zhl4pjIjTf1O2RqzlAe13fAt1xvgBBgoIWQ giBP5EDxhXy3Lm+AiAUtVDp+tDCgPAJea8WAcPLgRZ1ik9F8uCv3AQma0775BUiJ65iT a08A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cx6t6if6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f23-20020a17090a4a9700b0029bb52196e3si6435818pjh.48.2024.03.24.17.36.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cx6t6if6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8AC31283765 for ; Mon, 25 Mar 2024 00:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAFD21AB185; Sun, 24 Mar 2024 22:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cx6t6if6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 024981A9F71; Sun, 24 Mar 2024 22:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320236; cv=none; b=VuX1xTpATBZjqgTcjUUabgIGyyHCt/mZ+zGDKg+ceWfzBDCRiTtfa3eydiAWyQfTkgvy4AGwfB8/OiU37JbPq/HIZbOCotU9xmRlg5CHbd63saXbrGUPGmHLunLEyn/PVcFpZXm/0n9MTqkt7Oh/NtQZ/u/qi85ZUedbw7kxYdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320236; c=relaxed/simple; bh=NFFchTp1Ml4DsB5DoHY8hVkJL0xymFD4TnxU8NfBies=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HMWQBbhwEmTYd6V2ugTF27vWJhBeCApUDUf1JTriUhC3LfQKQU8s04g3tM6lo0TApJopcZv9hdSKUjLzyIFfnDN3Grvgpe6eYBIyBAnV9VyQHu0EHRStF6poavoiYXm1EYzJMl4MX5i13gNWQLOsnc8RSAYf+DjFNTY/Y1PPT24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cx6t6if6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0F1CC433F1; Sun, 24 Mar 2024 22:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320235; bh=NFFchTp1Ml4DsB5DoHY8hVkJL0xymFD4TnxU8NfBies=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cx6t6if6IItKnrqL4odgklgvhyWJ2e01nq9QMktfqYxaZz3f3+5dBQwOAX+u7h9u9 hR9nDGsOeXSFHUXYDdHjYwADSL3NIzMuq1x9yr/sJZhHHrOKiN58eqvSOTuOuot2X6 fCN+y+Jd5duoyxHAuTna2/z+CRN2ySNHlS4SEq4QFwa8oLc5k23UNZhYH/j4kWZLy0 WZXgJ9Avp6xJE0Q6PbGTeuAtnVl0X9vec4YcwPGTQS8QOLsl6hyz4PODtwEghU1w9o Gld+H5t6jP/moiXUk2I+IpAFEf5x0Y7pITNEwkExoYxaafvg6jN41AU/JFw1oOb1J8 AR+y0pFzWi8Yw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gergo Koteles , Takashi Iwai , Sasha Levin Subject: [PATCH 6.8 542/715] ALSA: hda/tas2781: do not call pm_runtime_force_* in system_resume/suspend Date: Sun, 24 Mar 2024 18:32:01 -0400 Message-ID: <20240324223455.1342824-543-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Gergo Koteles [ Upstream commit 5f51de7e30c7282162a631af8a425b54a4576346 ] The runtime_resume function calls prmg_load and apply_calibration functions, but system_resume also calls them, so calling pm_runtime_force_resume before reset is unnecessary. For consistency, do not call the pm_runtime_force_suspend in system_suspend, as runtime_suspend does the same. Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver") Signed-off-by: Gergo Koteles Signed-off-by: Takashi Iwai Message-ID: Signed-off-by: Sasha Levin --- sound/pci/hda/tas2781_hda_i2c.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 0e61e872bb716..a99f490c6a234 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -870,14 +870,9 @@ static int tas2781_runtime_resume(struct device *dev) static int tas2781_system_suspend(struct device *dev) { struct tas2781_hda *tas_hda = dev_get_drvdata(dev); - int ret; dev_dbg(tas_hda->priv->dev, "System Suspend\n"); - ret = pm_runtime_force_suspend(dev); - if (ret) - return ret; - mutex_lock(&tas_hda->priv->codec_lock); /* Shutdown chip before system suspend */ @@ -895,14 +890,10 @@ static int tas2781_system_suspend(struct device *dev) static int tas2781_system_resume(struct device *dev) { struct tas2781_hda *tas_hda = dev_get_drvdata(dev); - int i, ret; + int i; dev_dbg(tas_hda->priv->dev, "System Resume\n"); - ret = pm_runtime_force_resume(dev); - if (ret) - return ret; - mutex_lock(&tas_hda->priv->codec_lock); for (i = 0; i < tas_hda->priv->ndev; i++) { -- 2.43.0