Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1186724lqt; Fri, 7 Jun 2024 10:17:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQPzqD5Hvq4g4E6P4onrNv0758zLFTPVFwYq7ugGgSTlgHEFEy0G9Mii8xqhRAQ6PViOrctTOHiakzY2bBR3u1aGFvwaaU+vz5mT0zEQ== X-Google-Smtp-Source: AGHT+IGv74VguixiKlVGxiHyLk9oir0efT7VlerYSCoMj8D8WiEyDJ39HBKnWtVJpJXnbXCePf+x X-Received: by 2002:a05:6e02:219b:b0:36c:4688:85aa with SMTP id e9e14a558f8ab-37580309dc2mr37992125ab.10.1717780628681; Fri, 07 Jun 2024 10:17:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717780628; cv=pass; d=google.com; s=arc-20160816; b=QGf53woP71qRPU9Yuzqv6B748sIq4pj+2XCjjijGKD+Iedch35IkQFd3BIENgM93Xh VL1Ig141b0gGJhZ8NscP9LHY8W61ImnGRrnJe4PDg5FxWKJErfu+Jm+oIVCs9jWImkJF ZFRSrEMj4NN0RST64L5nGyRdvqvOihq/ATBKTk89aJnISSA8x1PAhNv/lRSh95FS1Z6q a0Qt4pS517rSwuVPUff4barKGaf3zamzk/psp+BnuGLf4WvDnHJoB9KWi9dmC+F57Kb4 C+kcVVqmJ8Fwpc6y2FSviDGx+p6uyamvm3lnSvaVFth0QvPPIOvM47/5md8MZJQC3ws7 LRBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ppFE9aeumlcpao9JNwyZyiBWKh4U0MS7mUNYIjwODQA=; fh=ttuziI25+F/I6zahygU0pV2Q8B0eBkZnp5I3OAuJBvg=; b=Un6oGyTZa1vBxo7ouZlpWZFk27aXl3KUWk2BX12KFPK6jklJbIpGBAcPomJhYGyiSn Vxxj026Hopp9EBof5qnaH1MLfUhkfffC7+iM0Hh+INJkF5TygHF0jBrNrblbO6nKP2Pr NDNTkFZM04k54mKbKAzXQWDISKsyOUY//eLnaRiNAjxiWR3II+SCrmT/dJPIsuUHTyMR qZaSZzdEhXLi7fR77ERy9EBfFKzGFl9DiHbo6Lq8SpWyA9wfdz2GGuvs2fMXgWGI5XXH 8XU7ilOL8+otgLzs7wfhxDLSOBb2D8qXXdq5v1/Nzb6qZ4mHZTScg9RtHyDNrZsb8TCC EO9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L0xc0I85; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2ae0f7c2si3460472a12.869.2024.06.07.10.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 10:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L0xc0I85; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 50CBD2875DF for ; Fri, 7 Jun 2024 17:16:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E362419CCF1; Fri, 7 Jun 2024 17:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L0xc0I85" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0245219AA66; Fri, 7 Jun 2024 17:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717780554; cv=none; b=CtMjvZJpJDoGBqU5ck/F2/2bnPxcOBhNQfowejQ4wh4KLieNXoO4WToeZzrZ1F+r/RvvVreefXlmOQINBQjevsnh0kWq8Qm7RZILiMR5N0S6HO/RUwAxTyQd1Bs53YMXz+kUSpOzk6U5femqceoZN7NL7xVaALLFZ6mKMRpfWpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717780554; c=relaxed/simple; bh=3XYeD6IP8Z0vF8HLIMKW0yAmSge/3jtKexVmbtdSwsg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C7hBOb365SZo/CCENZIC2HUeQC2fEVqsHxNp9/c8kASa3Uvfoe/C4Aj1HPL+/AOpjdJpWkmY8mCMPo8E+tu7PxNWxiDm45a9sVlWfw/odxPSwCJ72CpcsmebkC8cRvd80FbAHvqvdIIPw26F8WU+TmsmxwVi8MPZhTmlEOem2Cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L0xc0I85; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C70CDC2BBFC; Fri, 7 Jun 2024 17:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717780553; bh=3XYeD6IP8Z0vF8HLIMKW0yAmSge/3jtKexVmbtdSwsg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L0xc0I85TuSJ95cq4edqPXW9BPSXEG4M6aY7VreDWcRbE5R0JL/EtVBL8WlLwdj8Y DrzI/soOlN/jYH8CS7R/6giJ5yc6TKvMAEehrhflTHJ3zol2D0QNVfqXjYd0+Q859i 17m74fg1luA9t/OtIyOJPOUerI+ugiF6aP6fEdLCKOJu0rbuhnSn9C1WIlBJu8npf0 umUwoqbGdnLOazgSyUGeeIhOsA7zYAiQ5q1xxIxHrLRrHlRFwqe73j1bFxBr/IMVZN RpocuNtWHywOGCFwR8nkxbvkE3jC83RepqAM1SV7wKa0mERe8rEAlU/4hv5jATp6Gg iitwqYuJ39Bcw== Date: Fri, 7 Jun 2024 22:45:49 +0530 From: Vinod Koul To: Dan Carpenter Cc: Peter Ujfalusi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , MD Danish Anwar , Roger Quadros , Grygorii Strashko , Julien Panis , Chintan Vankar , Diogo Ivo , Simon Horman , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] dmaengine: ti: k3-udma-glue: clean up return in k3_udma_glue_rx_get_irq() Message-ID: References: <2f28f769-6929-4fc2-b875-00bf1d8bf3c4@kili.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2f28f769-6929-4fc2-b875-00bf1d8bf3c4@kili.mountain> On 06-06-24, 17:23, Dan Carpenter wrote: > Currently the k3_udma_glue_rx_get_irq() function returns either negative > error codes or zero on error. Generally, in the kernel, zero means > success so this be confusing and has caused bugs in the past. Also the > "tx" version of this function only returns negative error codes. Let's > clean this "rx" function so both functions match. > > This patch has no effect on runtime. Acked-by: Vinod Koul -- ~Vinod