Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1258013imw; Tue, 5 Jul 2022 06:33:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umC9/7qOimn6EsIWu9TrbWFpDYU9Qxl3NNP2JolBMa7iZJD0gl1ag/VF1tux7HA+eYoS4t X-Received: by 2002:a05:6402:3305:b0:435:8b1a:8fa1 with SMTP id e5-20020a056402330500b004358b1a8fa1mr47150437eda.32.1657027988485; Tue, 05 Jul 2022 06:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027988; cv=none; d=google.com; s=arc-20160816; b=wsDv61l7VbECWuNsh/+kKUM7pTOXfQNqHAcaMAJwe9BeIx+I3f1RVRE7ccPOBNm2Gh mScpqlBdJwDjIdiKFfLUG5pPBaICKJQEFY4a7F/QV+byAyTGhcpsZGyhKiSpEog1nbYH 8QDZEgiV38mHAGnjshnxe47JaCDwyD6lNhyIdwPSQFdK9kvHTEtF5bwEpiK1ACfn2z2h ZphHolybSCk4dC/zzRNlwRfwuLnZn8h0PLwrmqhVSbeVrz8PG8BSTqF+EN/HTzUEMcEs aIwgf8B7jgx3z85VzZN/idI8i7l5CA+LC6zCtHGXPxxgO2f0kUHTwRkKax9OMgtODrMv wbEQ== 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=Wg0ELP9c5FvMQBQuH2qTxIyz8iFpw/0TppsDtKyMx7E=; b=WSauyjkoLt4tBIDJXk8lVzrIpWOheKGEmX6fKFEcC7Z44xOJcdavafjV0+u3m5c6cJ niSs15uTBsmkmjxuPKm/upzI63lhAexJTmpJFpVqpidKsSs22zshpGjGjQBZusceEjNe 71fcsOh5d3e5sIv+y+xBj164ND+pfWgUwNXu/OjLhaAj/Mq1M4DTTYwydsYokz9Yc8t3 0z1sNRzU3NJuBKET/ABzNotCzF4cT5GXiZniqYR/yCxj9Q1ItW0iA5O2v9vk6SYvepEt +98SeAnfb5ARSaa0DekZKPTO8qILaI1Ymm5kYjS5tSbeO+fVzvziU2tRL27iutSEmdHh cd1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cE+V+ETn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht21-20020a170907609500b0072a605a57e9si13988795ejc.329.2022.07.05.06.32.41; Tue, 05 Jul 2022 06:33:08 -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=@kernel.org header.s=k20201202 header.b=cE+V+ETn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232544AbiGEN11 (ORCPT + 99 others); Tue, 5 Jul 2022 09:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbiGEN1N (ORCPT ); Tue, 5 Jul 2022 09:27:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1A941601; Tue, 5 Jul 2022 05:49:27 -0700 (PDT) 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 DBB2AB817C7; Tue, 5 Jul 2022 12:48:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC97EC341C7; Tue, 5 Jul 2022 12:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657025329; bh=unpkgiZ7iLWfroJs+BqlFoxz6dG1xKaDeB3iWMuXpvw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cE+V+ETn3k/uhUlZHHvZKPVZXjS26zd3XCGdIJIMbnK2tKlJSZVgJ1TS0+xy1Nh97 u2qRTP0ZQ02/lo01pLPPakaEHxGyg0k7zVjA1Kdy1Ddw1RP4gH8JJvdlYEKkvPupMX oJ5oTt5xxx0ysGOAO5pbpbGL3wWIX0kGISw8PiaP6DQkYn1/NaKEsYwUNO1QI42MIM LShXlq6Upbzlu3Hj6nWfigDoJCn7+Sq4PCqfF8u96oMTDS4zpgOps+uPLyPFJxHuKv WS9gCJkFoRnygUkDIfFfif4qCzJDs2S/NRhqqaRZUMoKqLJaG9xtkRjvW2wAShmbGF R4w52whxpbi1Q== Date: Tue, 5 Jul 2022 18:18:45 +0530 From: Vinod Koul To: Michael Walle Cc: Ludovic Desroches , Tudor Ambarus , Nicolas Ferre , 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 Message-ID: References: <20220526135111.1470926-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526135111.1470926-1-michael@walle.cc> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On 26-05-22, 15:51, Michael Walle wrote: > 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. Applied, thanks -- ~Vinod