Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp568570ybz; Fri, 24 Apr 2020 05:36:01 -0700 (PDT) X-Google-Smtp-Source: APiQypL88ZJgsj5E0AL8929wyaocMpPkmfptr55UgYf4KdLVhuKoz3FgGmKQCq8k5HvA+OLeuZgl X-Received: by 2002:a05:6402:3129:: with SMTP id dd9mr6984872edb.121.1587731760895; Fri, 24 Apr 2020 05:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587731760; cv=none; d=google.com; s=arc-20160816; b=EfB+CDUZ7URwb+ajSfisde8xDTgUoQmmltfPBB/OoVeqErPBcK1hWwhfD72182R/Ui zxCeTQv3s2dw7bBZe/lT1o+uHt/NWqEpwd4bPJIjheQCksi6UlDjS3OsT/yjqRXXkIIj yaEM955zxyy6wPhcT+ahGWrU1OzZe4NZpL5lgNCrfckoGNS2YfKLbEesPVfVayG8pFou t7itzz6E7cwxprwxtBruR9UF50F8g6NoSAUF3fgJgoLEp1bW7PY6MdCZaUdvj6De2VzN bIyiT0x4BmOZTvsajCpFmXlXdCaJJLmIhpLaMCnblRvQ05whx9bbVyCOFT69WpAWkPyX yu0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Fq9flrIu54KJNZIV+6X2WTQbdzZbNRGjoC+6HBkLRoE=; b=RZREha4A3+8b5WNrfju/JtujOSA8D/SrAja4Cp6LUQ6+vbOFwEdx25pqMfiUI1FLqq jkCcDLjQFG75PI3l/O60W5A4ZZq7HmgyjqZsXakgSRQKnt16JO1JJELT35j9K0IwsRJO BdeZ3y98Wr9slsTFtgSJqeGi6GUEZ2YYHB16B+A2yUh5z2hRsWyIHM1xVnKBTi//zm7E a5VC1lse4Ikzed/20J/pXDj0/X50uia64CgGlbIhSUucqwDf1AVEjz9Udw0WVw0n1ME1 4MR5Vh1ntADfedwMkMnFFeTFmICux7ZoRA2TEVtred9+MFb7IP61Z1gme82c+eQcGLZG 8mBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="MRtY/2Xl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si3284271ejl.134.2020.04.24.05.35.37; Fri, 24 Apr 2020 05:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="MRtY/2Xl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbgDXMWz (ORCPT + 99 others); Fri, 24 Apr 2020 08:22:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:52142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgDXMWw (ORCPT ); Fri, 24 Apr 2020 08:22:52 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63F77215A4; Fri, 24 Apr 2020 12:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587730972; bh=oL+8TEkGErZ9ILv0k+jhUSJahhEcOSEpINEPR+DQHUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MRtY/2XlgeDyNRCHY6GAsLAIP/+6DObSOgtfT2ngde5+KGtgZtSMVJkKH+sWLlT+4 Nl3UWHPMBN9/RccuSg3YkkYTiO7hJKmCTHecdSPHwqaKShFmuis1w+dHLWYGyI1VoA hK4wGkUhHlF1cRt7zocfbCCRaYTcHmNouGPE1OYk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Roy Spliet , Takashi Iwai , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.6 13/38] ALSA: hda: Explicitly permit using autosuspend if runtime PM is supported Date: Fri, 24 Apr 2020 08:22:11 -0400 Message-Id: <20200424122237.9831-13-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200424122237.9831-1-sashal@kernel.org> References: <20200424122237.9831-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roy Spliet [ Upstream commit 3ba21113bd33d49f3c300a23fc08cf114c434995 ] This fixes runtime PM not working after a suspend-to-RAM cycle at least for the codec-less HDA device found on NVIDIA GPUs. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207043 Signed-off-by: Roy Spliet Link: https://lore.kernel.org/r/20200413082034.25166-7-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/hda_intel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 02c6308502b1e..8519051a426e7 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2354,8 +2354,10 @@ static int azx_probe_continue(struct azx *chip) set_default_power_save(chip); - if (azx_has_pm_runtime(chip)) + if (azx_has_pm_runtime(chip)) { + pm_runtime_use_autosuspend(&pci->dev); pm_runtime_put_autosuspend(&pci->dev); + } out_free: if (err < 0) { -- 2.20.1