From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 946892FE066; Thu, 30 Apr 2026 20:53:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777582420; cv=none; b=gDXPttUJFa1B0VAJZu+62mhsHqivawAvsbuHIvTQe4nDFdgWnE54lx/rwE8Y2k66AktqhDGBDSsS3UnpodONgCG0aMu+rNgg2xB1ax6N0GXLKIsGL+s7tq8bmTwcZPPbrvtkYDNqbZPgN6Ca0M7IS3LJ1bWhzW6Ix38xZFUhIRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777582420; c=relaxed/simple; bh=2xY6QXp+xDjIPzfjgM937u3DZS3jvm7IWfWklxvvSHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=US+3PhKeNpP305bADAnCDTFTPOSjPVEnJp48tUTpixt5P2z8WVorLW1GQ4aahUWUpNSHEYfmS4v0owpbqJxswlK0E1N4qXA237w+tLsaVx/SbwlSvy9/IT7N8OFR0Zt3jCU7QpuCBHOa6/WG+lCU2dXMosZKNrysdfM68TyXxkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=42bawgt5; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="42bawgt5" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Fb7QkoGw9cRrxb4sMM2/4Lv4eMeLn4V7CADnhUhruZU=; b=42bawgt5bNFy+BAbLlXOuXzuW2 OHzrG/E9Cnhq2J1+gK4RdnllV16yyqL1y/W3N0Q9c1sKPRKtWNEKEOv5sv70Q7mcRAc+GpS+gDij+ +98WwpaiTVrw8OsG5zbZRZgZ6dGPiH+jh67tquBNaQyzlrl/kDe4UD29O51dEntht0yA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1wIYO0-000kCZ-RV; Thu, 30 Apr 2026 22:53:28 +0200 Date: Thu, 30 Apr 2026 22:53:28 +0200 From: Andrew Lunn To: muhammad.nazim.amirul.nazle.asmade@altera.com Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, andrew+netdev@lunn.ch, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: stmmac: Add support for TX/RX channel interrupt Message-ID: <42b173da-5c0b-4d72-9247-49ebec5e95e5@lunn.ch> References: <20260429072728.13638-1-muhammad.nazim.amirul.nazle.asmade@altera.com> Precedence: bulk X-Mailing-List: netdev@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: <20260429072728.13638-1-muhammad.nazim.amirul.nazle.asmade@altera.com> > + /* For RX Channel */ > + for (i = 0; i < MTL_MAX_RX_QUEUES; i++) { > + snprintf(irq_name, sizeof(irq_name), "dma_rx%i", i); > + irq = platform_get_irq_byname_optional(pdev, irq_name); > + if (irq == -EPROBE_DEFER) > + return irq; > + else if (irq < 0) > + break; It would be good to differentiate between real errors, and it not being available. I think -ENOXIO is returned when it does not exist. Anything else is a real error? Andrew