From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B860C4332F for ; Fri, 11 Nov 2022 04:12:34 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5B55215E2; Fri, 11 Nov 2022 05:11:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5B55215E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1668139952; bh=cEEs+T9qWk3rROxF8lp+RSEHIzLb14TurbQZNI6Tbl4=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RA2b/7phFUvWlDZJJWRluHrfO4Fa4RB8Z7oJDMA+z2b9Fc8ezUIUhtyDp/5b/PRxU j1OgeQUqqSxXkXP9eqiIwPrREiJnfNm83Qyyrc1rAHXRR7phmV8SDQQw0wZgZsciZH nXX5Fr9/80sdQSEyQrjwQaBRNG1io14VsCoxayu4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F32C3F80249; Fri, 11 Nov 2022 05:11:41 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AB1D0F8028D; Fri, 11 Nov 2022 05:11:39 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2CBBAF800CC for ; Fri, 11 Nov 2022 05:11:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2CBBAF800CC Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rEDTMvM3" Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6713DB822ED; Fri, 11 Nov 2022 04:11:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88540C433C1; Fri, 11 Nov 2022 04:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668139891; bh=cEEs+T9qWk3rROxF8lp+RSEHIzLb14TurbQZNI6Tbl4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rEDTMvM3UUIKoGN9jTpfqNxfpOkSshWtW/miWmQBJhmXtj9qaQGjTwLIle3BqvZhv 79pAuSqmcjX2H8WCyuwoBx0RdC2q8BW6NGkokoiomC+p09cQQnYLq01ry1jbpcfWZy p4hmM0HvqBIUMY4OXScLLW0CIuriB6NPzEhywrppfPCS5ZB8fGqqcxCACS30aNZH3N z9tcgsptxBFjh3+vyKGJ4lauoztk0q3+JRk9YPOkjRlM3awQyJteeql1jqDlVHVvdK t/5tdvS0c3yTQxJvSx3v8sF1T6YepdWGV9NFcFmZ/KJrNcPr6U2tU3mPkEyr3nBnz+ I+XLn+R7lsf9w== Date: Fri, 11 Nov 2022 09:41:25 +0530 From: Vinod Koul To: Pierre-Louis Bossart Subject: Re: [PATCH] soundwire: intel: Initialize clock stop timeout Message-ID: References: <20221020015624.1703950-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: alsa-devel@alsa-project.org, bard.liao@intel.com, Bard Liao , linux-kernel@vger.kernel.org, stable@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 09-11-22, 10:05, Pierre-Louis Bossart wrote: > > > On 10/28/22 06:28, Vinod Koul wrote: > > On 20-10-22, 09:56, Bard Liao wrote: > >> From: Sjoerd Simons > >> > >> The bus->clk_stop_timeout member is only initialized to a non-zero value > >> during the codec driver probe. This can lead to corner cases where this > >> value remains pegged at zero when the bus suspends, which results in an > >> endless loop in sdw_bus_wait_for_clk_prep_deprep(). > >> > >> Corner cases include configurations with no codecs described in the > >> firmware, or delays in probing codec drivers. > >> > >> Initializing the default timeout to the smallest non-zero value avoid this > >> problem and allows for the existing logic to be preserved: the > >> bus->clk_stop_timeout is set as the maximum required by all codecs > >> connected on the bus. > > > > Applied to fixes, thanks > > Thanks Vinod, was this sent to Greg/Linus? the last pull request I see > was for 6.1-rc1. > Arch Linux cherry-picked this patch but other distros did not, so quite > a few users are left with no audio card. https://git.kernel.org/torvalds/c/f014699cca9a9a28fbdc06a9225b54562154fc20 -- ~Vinod