Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2425779rdg; Mon, 16 Oct 2023 04:21:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY35e0vFOlcngZ8RHl9OUpOmyR8xXflNiVNJFpB5KdIxWLmQ5a0zqCOlBonjXAddzFC8HJ X-Received: by 2002:a05:6a21:9986:b0:13c:988c:e885 with SMTP id ve6-20020a056a21998600b0013c988ce885mr32383532pzb.56.1697455286116; Mon, 16 Oct 2023 04:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697455286; cv=none; d=google.com; s=arc-20160816; b=tbZ/8HCucheQgVLcMc83uk58uzsTp+IZHV7Q7p61aWKOqJYFije1pCijMVvwwtJBlW gn/rUCUXXCrJhCnH6MjQ8vqMmFzAtjM0xPcY5iyKJS63QZipOxhUuegVE35dxntx0d6m ZoSaSAa2SuxLlvG317aL93kOO9cCgpc0JRXXg7Jj9U5HhJxDjZOdR7tMwKhFkkG+WC0d 9PXZ+lAPQd64dGU5AwwsOauEXPgXmdXFVcvDq4ttZ4/D5hyQ50TCbRS4u72EpOprtE+i tq2ro0wPKyIbGAw115H4cPHBN9J/qokhVdPPTOPhahHQcm+SGBOmSpIJbgAwI8Q11fM6 HVjg== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=G0MgWfbBeyd+rC4o2Y3P/cpS9baDRgpY8XpiW8UBYKc=; fh=zfEak64jI4rV14rQz8OEE4bWfn2K6jKhzymrWCRRCvo=; b=lEwBWN4clwivBNehtLygkDNDQDTh4UAaLBcvPskWSljVONnwXB6T9zTmh9iIyOoSwO dWZuffCfverv3MumscDRM0CThoFYGjXz/FRYJQtUHvmM9FaadVb1U5eC9O3Lzkl5PdXD o+7M+uRSk+TiOE9KJd1jYoFMpOhfkwI2Fur0JqAHJDNVRga41KOv3Fr5eBMkVdod9YMt /FZRkx5IMEoW6ujODMXK9F5oMf2E8M04w03JGjqSQ4fBqG/DHfEG3VFt4NyXI1DifiX+ u2P3qFafyEqL51M6bhWz7k2cQGhwElTxE4WbMVc+40fI5D9QjzB+tbJXGu17HYwQ9b9I 6KMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hkubut12; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s1-20020a170902c64100b001c574110eecsi9514961pls.341.2023.10.16.04.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 04:21:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hkubut12; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1B4E5803C5F9; Mon, 16 Oct 2023 04:21:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233128AbjJPLU7 (ORCPT + 99 others); Mon, 16 Oct 2023 07:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbjJPLU4 (ORCPT ); Mon, 16 Oct 2023 07:20:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18A8DC for ; Mon, 16 Oct 2023 04:20:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86AD7C433C7; Mon, 16 Oct 2023 11:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697455253; bh=16AKyUtoR6pajVMK2yQqNyWfjYnlASTn9I445Ew14Ys=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=hkubut12CrO/Qcv23mT30wM0jPVRvGJc37oVA6Pm04PApR1waoyd/uMTC0fmO/w9Z 7AhQXLhcAYZpN80ROqCLJHFP3zuc/kEHxw3Ioccydb0BLDE+6vJaRAv9jf0pteXZJd tPFGleEVYr6Re0Kve0mlP1B+hDVVpy5wW3bFBjdmmmz9PCt+pubXLkM0CAoLxz/7be eVfBgHLNcJxPTsuA1koDBbp8zqfKNym6yH9x4pL8p+g5AY4YLPypM2/M4+3u3FBNNY szGy52OO4whI96ILxhyoBOwpFOQwhs5Vxep/HYZkzsFGm01VC+SErtA4+lBlmZCJQG r8awHMLd2hnYg== From: Vinod Koul To: alsa-devel@alsa-project.org, Bard Liao Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com In-Reply-To: <20231013010812.114216-1-yung-chuan.liao@linux.intel.com> References: <20231013010812.114216-1-yung-chuan.liao@linux.intel.com> Subject: Re: [PATCH] soundwire: bus: improve error handling for clock stop prepare/deprepare Message-Id: <169745525118.217856.10954000456240343694.b4-ty@kernel.org> Date: Mon, 16 Oct 2023 16:50:51 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 04:21:24 -0700 (PDT) On Fri, 13 Oct 2023 09:08:12 +0800, Bard Liao wrote: > The same logic is used for clock stop prepare and deprepare, and > having different logs for the two steps helps identify problems. > > In addition, when the "NotFinished" bit remains set, the error > handling is not quite right: > > a) for the clock stop prepare, the error is handled at the caller > level, and the error is ignored: there's no good reason to prevent the > pm_runtime suspend from happening. Throwing an error that is later > ignored is confusing. > > [...] Applied, thanks! [1/1] soundwire: bus: improve error handling for clock stop prepare/deprepare commit: ff435da4cc8b6137be9f0b6b4a9af095590d4b8c Best regards, -- ~Vinod