Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9926FC4363A for ; Thu, 8 Oct 2020 15:47:50 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 44A3520578 for ; Thu, 8 Oct 2020 15:47:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="rO7Wxex+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="nl1n7DZs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 44A3520578 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 25BD41660; Thu, 8 Oct 2020 17:46:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 25BD41660 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1602172067; bh=8QfTbDYZuk/iLmPmelI7NtYV422By0L/KwoQi+AqV+w=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rO7Wxex+/r9xVHZ877sH0jYFZpyNv2d/lOEQQP4EiUtzO56z3jFknZdQ9HTg4Iz8Y ZeJ8t6i+WmrIdGEkd4gEozCwrXQRj6A7rB6P0sI4hkfEgpz6cY/3w9n5FOOZYu9cMe Em9PJ8JFFTUhRLyK1nL+j8ubPVWYzNmgCB4Agl3Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9BB32F80163; Thu, 8 Oct 2020 17:46:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C757DF80164; Thu, 8 Oct 2020 17:46:54 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 56D9BF8015A for ; Thu, 8 Oct 2020 17:46:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 56D9BF8015A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="nl1n7DZs" Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 652D520739; Thu, 8 Oct 2020 15:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602172004; bh=8QfTbDYZuk/iLmPmelI7NtYV422By0L/KwoQi+AqV+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nl1n7DZsxWfgGu1yhgtt5ucPtdGK7yH+mdD2IugVvAAEKpysxwo0KchkvY7jk39Wd 6Z+q3ciJy7bpBu/o9PyRuPMz+IEsunQKkgS1Gk8d6pirbPFbYMQFu+Io7uBq+A13ko zPL/P//KWkYGSZmgPdFbETgYtns8RWU9kojQ/DDs= Date: Thu, 8 Oct 2020 16:46:42 +0100 From: Mark Brown To: Andy Shevchenko Subject: Re: (Optional?) DMA vs. PIO Message-ID: <20201008154642.GB6481@sirena.org.uk> References: <20201008150539.GQ4077@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="R3G7APHDIzY6R/pk" Content-Disposition: inline In-Reply-To: <20201008150539.GQ4077@smile.fi.intel.com> X-Cookie: Serving suggestion. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen , Stephen Warren , Pierre-Louis Bossart , "Sit, Michael Wei Hong" 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" --R3G7APHDIzY6R/pk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 08, 2020 at 06:05:39PM +0300, Andy Shevchenko wrote: > My main concern is what was the idea behind? Does it mean we support optional > DMA in such case? If now, why not to return an error code directly? ... > no idea, the code has been this way since 2013 > (5eda87b890f867b098e5566b5543642851e8b9c3) That's "ASoC: dmaengine: support deferred probe for DMA channels" for those playing at home. It's been that way since before then since previously we ignored errors entirely. > It's worth asking the question on the mailing list, I don't know if this is a > bug or a feature. I'm fairly sure it's intentional for systems with limited DMA channels available but ICBW, it's obviously been quite some time. In retrospect a comment explaining the decision would have been a good idea. --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl9/NGEACgkQJNaLcl1U h9BRTQf/Ty6MOn/ahsCc5jSPN207/SZFPMbrdcrrnF04wCrXIykBDoT4uWK9dLDI dwWXovifJAoN+yHdDkPQ+uS3KwN8ptBYYUdnGM8nmDEp/F5qBWLGIRAVBm9e65Fa fwkWpOjm6Bl2h19MNxOQWOQfEWsTtuXjZIZNqwFw+t8WHrxtqAqpydriYEG7kw0m X2e5BMaGUJUaakwoZ1b3gqSbZrRM27+SvIisLUjtyMzKGrvpidWfxbDAqrxJ3xg6 +QII4sMJA8NcDaqMNN7D+stkkQyFgWyfpTyy9DmgiwKUgFhTdBnwZJFK3UdmYXYm YR0L/nRj51iPHuTdlVg407x71hlQag== =diFH -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk--