Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp254686imw; Mon, 4 Jul 2022 08:35:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tG+YIctq0ZeDutva3zCpfvNe3GTOys6oGnG2usnIW+uq/kTi/5iR69Awvsc9SWZaHPsHc7 X-Received: by 2002:a17:90b:1d84:b0:1ed:5918:74e3 with SMTP id pf4-20020a17090b1d8400b001ed591874e3mr35050573pjb.173.1656948956001; Mon, 04 Jul 2022 08:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656948955; cv=none; d=google.com; s=arc-20160816; b=ZT7GyxK1DaP5tT/mNwPG5fa89Fd1IAQeK7ccyfST3QDeQOE4dEjhAeJ76p4ggsUaW2 IMOFMFImQ3U440Wwy9YV8nkmN0hqu9loiFVUyq1xV2ObwT8eW1y+ghFSCi4hTrHzpCAU ob0VyuoLPwAN5ImSbT1JFM4bwcgP1RuTJs1kZDrZ885KQu4pDs0RTYQbmZt6Vud7YZwM e5zcaRBGVYirL2P6gXexP3ohPB1dyaiNuO2oLA5DrlE8GmjtWRDP2qxoj9DU1p8nd2UH aH9dkAIH8OAErB8xi25q4iFQz0P7kayzF/5rQYfeQL10Q0S6TkLyW/J4Py6Sdcn24SBr RZQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=wtM/v1+4WZK9BC0YUHLMqA8epAr6ytcz/wbNfrpgB9Y=; b=JkgoVVlou9kzvfuzcNPKvwcUZfvcZuLQ3pqIvJytT1e2VjqqgiV51V6T+0nS8XZqtc iq+p9xmYTmp1UaoUvw4UFC98CsVi9535gfVpLJouCSJmJLew70ZgM+Rwc9DAHrhh0KR9 dH3Df+isd7C/IxMoIbHb7tjb0JMgxbsa6fEP3EMj7+fHvkMpBNIcfB0V/BIE3g+YLHcZ z3tYOp7eiRT3HZvT5YwqnsijsZvvP+bxzgnScPpln6X2FqURAaVRqvCHIS8sXXXB3ZZ5 aXhW2ct/0SLUIL0fK7bpFqEXsfcEYRHMt1ekenNYuGScyvq2uR+RRIQR8MUdvBKWuGIs 5u3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Eng3kpt8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d131-20020a636889000000b004126d7ca343si76141pgc.641.2022.07.04.08.35.41; Mon, 04 Jul 2022 08:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Eng3kpt8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233370AbiGDPKS (ORCPT + 99 others); Mon, 4 Jul 2022 11:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234830AbiGDPJu (ORCPT ); Mon, 4 Jul 2022 11:09:50 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C40FA11A25; Mon, 4 Jul 2022 08:09:04 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 03C6F22175; Mon, 4 Jul 2022 17:09:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1656947343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wtM/v1+4WZK9BC0YUHLMqA8epAr6ytcz/wbNfrpgB9Y=; b=Eng3kpt8EktgSOgpk0IO/2kVPXBCuteNg7Sjgf+45R7PTMVdieA9dsLgnNrJeKKIOJFF5j CCLzh52VTd29sCPnN1C0Vb/VwIyV6mFaYF9n5TkvkQW7fLhPcJvPz/rNhT8qEO/8v5aIIK YowBALSMawxasc2T5heaRbNGSbep1k8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 04 Jul 2022 17:09:02 +0200 From: Michael Walle To: Ludovic Desroches , Tudor Ambarus , Vinod Koul , Nicolas Ferre Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: at_xdma: handle errors of at_xdmac_alloc_desc() correctly In-Reply-To: <20220526135111.1470926-1-michael@walle.cc> References: <20220526135111.1470926-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <4060a926aba97cc1750d2964932ab40d@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-05-26 15:51, schrieb Michael Walle: > It seems that it is valid to have less than the requested number of > descriptors. But what is not valid and leads to subsequent errors is to > have zero descriptors. In that case, abort the probing. > > Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel > eXtended DMA Controller driver") > Signed-off-by: Michael Walle ping :)