Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2337170rdb; Mon, 20 Nov 2023 08:19:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFggKIjeYD8Qp4cu75idTuyj7yzoPpsNwcyKuaB9t9yUAsxfNVw3su75asTlLM2As7nIhFf X-Received: by 2002:a05:6808:1912:b0:3a7:5a6:e0b1 with SMTP id bf18-20020a056808191200b003a705a6e0b1mr9856231oib.10.1700497172036; Mon, 20 Nov 2023 08:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700497171; cv=none; d=google.com; s=arc-20160816; b=Bm1cjmVEYKL0Qfv8hXUuaRa4FHbTn8rGPJ1mynQrytIcFQqe5CaNpI9g6MHWi3UZF4 DUXx+Nfc8yMDZ/oxlqzCHly2sX6D91H2SK2XKUtHBTWcDkxXFZoxgvc4VoVjrxVgcQVR g4mNRVmE5hBIKSJrMwwZPES20mY64ZrNBgDR33jGqIdLfdsDuOjRDQaKWCVl6/hcpnmS EO+8Isjbh9UdyQG7GPZJsbZKJe9B5eU2UM9iDR2mi3QycQct7nBqZz7M0dyusaHxXl6s ThT2DB181pX70f4LKs08AYNVe7zDAuKAQteBB1j0vPvG2oE+QhQRze6QhGmTmg3AVD8/ zX5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pkYXYPpWJBRjTG+KN6aGVmXVPwiO/WyRBmw+nky2s3w=; fh=kA3JpDU/3ntLPFOnqjfbyXHtrzLXQNyu44Eohet7B04=; b=vfJ5imfW6gO1g8pyVH0n67/ALUZE5D7h9Z8b+9lB9QKafuHWzHjR4fDslqX8YznhWe lglCIeQmBcRlDMV9OqRo3zrc87hDeADoiJO6sq2wt3J93VYqy0b+y3U89m9LPzSWdoZ+ CtWQA3cD4HWtxU5W4wJVIutvKMWPy1NWExU4cOiUrJwQ0Eyo8WYtiu4+g0vz/qcEWHlN Q6D5CxWQcvkHZuGswoBFkJ5ebgbQUCOsC8Zii9qgQiFRyVCCt0Xb7e/G5Ay+w7FCYHZ1 OVVQPOIu37tuGndOayTdPPputi03ppBRlmgQXBpnXJ4tWgvBu6GE4zI/3QsEM5+M2NbM UqAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVfwlp5S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 128-20020a630186000000b00578b37ad24bsi7853722pgb.619.2023.11.20.08.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 08:19:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVfwlp5S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 0C4A580A5335; Mon, 20 Nov 2023 08:19:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbjKTQTT (ORCPT + 99 others); Mon, 20 Nov 2023 11:19:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232176AbjKTQTT (ORCPT ); Mon, 20 Nov 2023 11:19:19 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFC63ED; Mon, 20 Nov 2023 08:19:14 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A59DC433C7; Mon, 20 Nov 2023 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700497154; bh=zPI+e21nyYjzMEzKo0SN9jHwcF4lz+sz54brvdC2b8U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qVfwlp5SdtqhwP0I976PJXdYckjEzGyjN+RE3ELyFK7teO6jAbhxVTrCooKQB9nng zCfdh+UNzp9UCbPlQY9B/BCMD+iD9ioAll3bUx6eMkBbImbnJBwA84uOMZwzUox+Be WZ+Ah2o2yJAc5A+WiBCz2abU+qU/N3HEPgh3c2NVY0Z7gNnxVTN8I0n4Z0HU4oRQ8+ zcOK6BnRK9ERuCnol1itwwR4wKHne7OGHiIvuNZn2bTCuITKekA8fLKlMRLRniMSGQ Aud55stw529Z91f2S4F2Qai/Ss8MkHxxETyz69isFfiXRx0F7uH/xIYDTKcmcth/1j Mz2x3yEeSc72Q== Date: Mon, 20 Nov 2023 16:19:09 +0000 From: Mark Brown To: Charles Keepax Cc: Maciej Strozek , James Schulman , David Rhodes , Liam Girdwood , alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ASoC: cs43130: Allow driver to work without IRQ connection Message-ID: References: <20231120141734.76679-1-mstrozek@opensource.cirrus.com> <7248897a-0b59-4cdc-9915-d3297f2d6efe@sirena.org.uk> <261e118d-529b-0ce0-5524-d24d767fa92f@opensource.cirrus.com> <20231120161638.GJ32655@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rzS+1eaHwgk3+pb4" Content-Disposition: inline In-Reply-To: <20231120161638.GJ32655@ediswmail.ad.cirrus.com> X-Cookie: I *like* the chicken 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 08:19:24 -0800 (PST) --rzS+1eaHwgk3+pb4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 20, 2023 at 04:16:38PM +0000, Charles Keepax wrote: > On Mon, Nov 20, 2023 at 03:54:14PM +0000, Mark Brown wrote: > > It seems like a clear code bug if this is ever called with an unknown > > completion, I'd expect a WARN_ON_ONCE() there. The lack of a delay is > > potentially going to affect how any error handling works which doesn't > > feel ideal though the users look fine right now. > I guess perhaps another option might be to not stick so strictly > to the wait_for_completion_timeout API. This function could > return an -EINVAL here and a -ETIMEDOUT for a timeout then the > callers could be updated accordingly. Yes, that'd help with clarity in terms of the interface - the completion API is a bit non-standard here. --rzS+1eaHwgk3+pb4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVbhvwACgkQJNaLcl1U h9DTugf/Xo+maNejN5Jyb9v31+Y+fHdHGg1J8zN/OqLLyg4DRlqQvEHLQ0Z4gc2O bFjezKAU1O/mblEtNuyzjXwdnSIsDlEs0eeISe+iaHEJo9OLpvObin3ChBrVbT4o lmFIYeP5eWNcNlAKZd9y+tr+S9puRpVPZASSH0/QUOtfQYpO5vmlNZyynqqSUhdg NKi2XzdLK3xLKDM55bP2RTS4TDhOe4O5VJWdVRDu59m+6Und1K1rIubf0GRaIpHQ h9SycOlh0X2BRRBBQEqoCgE2R/vWBS9NhCban4yRN2ZOfdlfAqsEFvEWJ5utLkpR yAEkAerxrkLam35ISNijLA4euRO1Uw== =Qcqi -----END PGP SIGNATURE----- --rzS+1eaHwgk3+pb4--