Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4415407pxa; Mon, 10 Aug 2020 08:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4Nsxb7arhzVRINMopkWwBd4nES6krVRjKjbWZDTyHhz5WNY4nHHBwlh/BP9zue+AsecEq X-Received: by 2002:a17:906:3cc:: with SMTP id c12mr21444255eja.222.1597073634329; Mon, 10 Aug 2020 08:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597073634; cv=none; d=google.com; s=arc-20160816; b=oupBhZ1qbc8QaVAdocI+/WuxXFL4IdN43KPGU0PAyaAYTBnIVO+qHQbC7aFH9aeg5U 434ygOt007B1AZIF0R3JkcPN0OhnHXiTkjAFtQ/FXSUq56yEiP+mLd6jcJVvmeATuV/s FaafFZdzNADK0/uaGs/EY5risCUtHVsiimLKMguytflCgDM5nFNIxk6m1Ej63YbQGJg5 5V7k9Oc5uC9sNOBY2JvVe1hXNpeL//E7MrL0SsedBx0zG4SLoamLFSqCZ5wo1TcimtxG wIGr/Ld+4CulQqTvz5MkvABfMpXMMAB6n07MfN8FmF8ri0fWdT58zqpfdzyznLKLUWOb AjWA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mmcFxZ7jYW5V+u5BevOH4wcyGno0yUT7Gbn3ZIcXmRY=; b=j5cY/huCOx4ojC/Qvm0JfU/0hLBfNNnRJSp2Ly64ZejCnJ3BGnhATUWbIqmsr3oA74 tIaKy+uwoM38vUmrhIR2UgsDnPF2qmHdQ6wJHT0e2LPYjkAPb4eWKcifAayeIyKAGGlu N8O6qenH12JFgHauTg1qEPBl4JLEMOQWMc7+YvZP+PG48NWnthT69JUEil95IpLR8XPJ G9cIghiT+WcwQaH/H+ets7mE2cJECktFR9pEgQBODppsrebfsR/Z17EDAb7Yfh1rjYFs WdfScnnzZxwQZUMZr6oqlX/rjmn+lNEUMN4Hgj4qNY2x4KoWD3kKa1NdseON3aijkSGb lgmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="CJyY/hDz"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si10998313ejd.343.2020.08.10.08.33.30; Mon, 10 Aug 2020 08:33:54 -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="CJyY/hDz"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbgHJPaE (ORCPT + 99 others); Mon, 10 Aug 2020 11:30:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:36608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729033AbgHJP36 (ORCPT ); Mon, 10 Aug 2020 11:29:58 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BF0622D02; Mon, 10 Aug 2020 15:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597073397; bh=PZcRqQCNsNEq1ZS0iX1apEtdikPbEajs+XFzXYEZ6VM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CJyY/hDz5ge29JKa5430OqgN+RSleU8wioh6yBfZeoPlSWDEDQe838mIoY0hgyjPd 6+uOG/ahZgH+A4Jn6gODWGjYAh1xwYMweemNf4ToUSzqNK3kIPQhv8EsNXxc0HjvKx kL5/sjdJe3nJ3uR7pX2DLRXFYzc/zcxjvjoT+SPI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hui Wang , Takashi Iwai Subject: [PATCH 4.19 05/48] Revert "ALSA: hda: call runtime_allow() for all hda controllers" Date: Mon, 10 Aug 2020 17:21:27 +0200 Message-Id: <20200810151804.483653043@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200810151804.199494191@linuxfoundation.org> References: <20200810151804.199494191@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hui Wang commit 07c9983b567d0ef33aefc063299de95a987e12a8 upstream. This reverts commit 9a6418487b56 ("ALSA: hda: call runtime_allow() for all hda controllers"). The reverted patch already introduced some regressions on some machines: - on gemini-lake machines, the error of "azx_get_response timeout" happens in the hda driver. - on the machines with alc662 codec, the audio jack detection doesn't work anymore. Fixes: 9a6418487b56 ("ALSA: hda: call runtime_allow() for all hda controllers") BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208511 Cc: Signed-off-by: Hui Wang Link: https://lore.kernel.org/r/20200803064638.6139-1-hui.wang@canonical.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2478,7 +2478,6 @@ static int azx_probe_continue(struct azx if (azx_has_pm_runtime(chip)) { pm_runtime_use_autosuspend(&pci->dev); - pm_runtime_allow(&pci->dev); pm_runtime_put_autosuspend(&pci->dev); }