Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp110658lqd; Tue, 23 Apr 2024 17:03:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjSp7czmI91AwsNYVlo2poF9udVjqKkWbSyJ+k2Ajt9Nc8CEjxMTfxkAoRlkADdpQBC5I1Aa0zJdJV2POI10cc0Y1csnYwafK8LHZNmg== X-Google-Smtp-Source: AGHT+IEouKep3+W/Hxa21kzKlmqATyAdyvAzFDclEkBYG7vavYFeYsf1PBL8/43mWCT91FwHB38J X-Received: by 2002:a05:620a:3841:b0:78f:15b9:83a4 with SMTP id po1-20020a05620a384100b0078f15b983a4mr1045181qkn.40.1713916983984; Tue, 23 Apr 2024 17:03:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713916983; cv=pass; d=google.com; s=arc-20160816; b=LtDvG+9kvAp9qwGKNpeLJIUU25GQ/TjAFmqT9Evl2yqpp9ddzMwsMxBVdMQYc5BxRR a6R/SMEbAjNB30F67O1hB7lXPi8TZuKR4kF70aBo2AqS+wCUggi/3OBLbuQEFp50PbjH eWnJWY79paXb6RoAP+0tnIVa90OX7hlRXHqsC3r4WJywuqglDaEB1QT1zQMlO08vIeKh MMxmvZqWZprmkBjhtIYjIQ9GcUNwfLqSmY5hn1CckTtyfoKQscHddDb2knO6fxLU0H4X xrFOSi/4ymLfusyzCClNF965ZWjIVmjTj6maa5qN6dGlN/DUTZsO4eDmzjvf5UESntix QnVA== 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=L/ug2r4EVbSkWdawJ0j/nghtH+tymAoyGiGC07jOBcA=; fh=iT69aLAFCaAL1ECVELFGqnZRVt9iikoJcvzeKR1Ry4g=; b=Z9Y+t4CakhM35fgVFaoy+NF00/w7QyYNukV9agULdmYIaZ/yIn+fXYUWqAGCdHlkXe tvcbwFE1mee8WoExoldtNPE1suJL4XIAkjIN+EegWgwlG6GYwkrRWvD8ZLaQJNzxDtzV p6w+aLg1SaGxmO5YN7gM425yLapXh7KrZ/DxiVEJ31e9Z6u8OcRJuGwyzznY9qlnTUzI q2lgJzhvyJwtkNM+h34VK868jwAxHxvvmQ2IkSq2GSMV7XFYaqa71K1t9G4tqdkoz3WG Woa7J/AM+moDKAw9E5HPJEzDycnCRQXbW50XsvPBZabKTgUNQxYa56uz66cisR+X/v5R UupA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=C0BEo15Q; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-156041-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h4-20020a05620a244400b0078ee989a2e8si15645376qkn.35.2024.04.23.17.03.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 17:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156041-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=C0BEo15Q; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-156041-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6AD8F1C229A1 for ; Wed, 24 Apr 2024 00:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74CB51FDD; Wed, 24 Apr 2024 00:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="C0BEo15Q" 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 699C3193; Wed, 24 Apr 2024 00:02:50 +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=1713916971; cv=none; b=IGohGt1BUeWHK7qU9Zq7nhM5TEDbKYgE53mN2xwcrUWSauuLzbrDESDrk47hhgfpeFAOzKfuPVgdSbqiW8ykkutHS5k9x00AuT/NvXMs/Wu1W0QJCJKpbjCerkEM5mwd+H9dfOXyshoMh8GpE3QprBAtOmpS7W1XyOmPF5MiShc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713916971; c=relaxed/simple; bh=zvEIcMVTlwJZSglb1GiKi9TnhASLIxAL9lSNUP9cJFI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZDoNDcPO+mxgn2TnALIBNzB7yV1TbQI1sNdkm3VTO0ZDLLlqRB91i0+WpRx+FRTN6U48syqnU/q9b4itNWGtwcj0hddAl5FeV2xWnARHjTBfAZUzbeEONK4fJRSa556tgI8hr6yJxlJAbekudSI12r1QPUsWmjEGu9JNpvcrX10= 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=C0BEo15Q; 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 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=L/ug2r4EVbSkWdawJ0j/nghtH+tymAoyGiGC07jOBcA=; b=C0BEo15Q9n41MglXN7Nc441kp3 Wjld1mD32vxcmfyS9ftxL9uaoaTenHu1cxmy3tSSmRkkIT90sj0gUR547uxUVRWcOypLMw3ntjG0d P55ZuaelFIfdoHaIYaBsmodQRUF0UuwKu63Rz8vHFtT/m5cBUTfz3S0p7jOud7MFRWI0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rzQ5u-00DlJY-U9; Wed, 24 Apr 2024 02:02:38 +0200 Date: Wed, 24 Apr 2024 02:02:38 +0200 From: Andrew Lunn To: Parthiban Veerasooran Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, saeedm@nvidia.com, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, horatiu.vultur@microchip.com, ruanjinjie@huawei.com, steen.hegelund@microchip.com, vladimir.oltean@nxp.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com, Pier.Beruto@onsemi.com, Selvamani.Rajagopal@onsemi.com, Nicolas.Ferre@microchip.com, benjamin.bigler@bernformulastudent.ch Subject: Re: [PATCH net-next v4 08/12] net: ethernet: oa_tc6: implement transmit path to transfer tx ethernet frames Message-ID: <460a42cf-2b67-49f5-be4d-fcce6c824ba6@lunn.ch> References: <20240418125648.372526-1-Parthiban.Veerasooran@microchip.com> <20240418125648.372526-9-Parthiban.Veerasooran@microchip.com> 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: <20240418125648.372526-9-Parthiban.Veerasooran@microchip.com> > +static int oa_tc6_process_extended_status(struct oa_tc6 *tc6) > +{ > + u32 value; > + int ret; > + > + ret = oa_tc6_read_register(tc6, OA_TC6_REG_STATUS0, &value); > + if (ret) { > + netdev_err(tc6->netdev, "STATUS0 register read failed: %d\n", > + ret); > + return -ENODEV; > + } > + > + /* Clear the error interrupts status */ > + ret = oa_tc6_write_register(tc6, OA_TC6_REG_STATUS0, value); > + if (ret) { > + netdev_err(tc6->netdev, "STATUS0 register write failed: %d\n", > + ret); > + return -ENODEV; More examples where you replace one error code with a different one. Andrew