Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp218200rdb; Tue, 31 Oct 2023 05:53:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKkl4coqRtAfgQQd9fc6C73lHqDv+uEuewYiiV213m5Zdp1+wqDWHUOI0niycFGX0m+U2G X-Received: by 2002:a17:90b:3ece:b0:280:a4a1:5d03 with SMTP id rm14-20020a17090b3ece00b00280a4a15d03mr1029789pjb.4.1698756825971; Tue, 31 Oct 2023 05:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698756825; cv=none; d=google.com; s=arc-20160816; b=UzBk9z4RVUg8GST3tlp4RtxMxj/PoRGvHHak83myjR8RNdtMUmNXvosveqVfgFYhiy zvq8wlXW1n76ozfxsby5ZVVw8Vh/VM/Ae3+Z2S/RY87NlG87AKLuKxSxx+SMrPk1GOVY gopgz43dG5CPRDiWhR2Ns50h0E3W68Y/OwSu/UcNx9TKygaHnPeX15N7kQWcZl8M5+jT LK4CavvorYOlgEjmP0PUl9IB9PhTitJNozdTV6HTgEEvNDlTZDcko0pkjWuZsue50+rr dg+bY3BMeo7Om7ARmsZ4gR9dCNpteMarlRbGM25QofECb4VOkPK8foyE5W0mCd7pJc7j mxOQ== 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=rXuqsFrVvVN5BpjjygfvonPIKe+gbeo3sNDGWVV3pks=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=xr0ZNEV0J4c2d3q2MgSZ3kdqkg7/ymdFxiowpeLn/dx8YvRChy6B38J+UXU6D7ZoBs tSPoMspLdMbQAkjavEZAy/tYoLu7iZue14RMez5rmumq58NKyFd7FQVsR2yKmhVVNIgs +GucANyXdWmT4MYWQ2y1imkopBUMXXREFPBsZBIomXUeM4pRPBx9CAc4kjYPGVJdybyZ 0iqGTINLQSqF7bWSWu3Jz7gO3RHSIG/VTYcs3IhmhUxU1+xICBF0zqfCUH+vWikXSbUc nlZJ9Ydg3/OCIhIvBOvY9xdAoMTxLIaN8Z3HeYlnZHGa5HSB4pbTkjAbf+Uz4HyySmUA QSHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hzHJuxP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w8-20020a63f508000000b005b8ef498e2fsi1011594pgh.181.2023.10.31.05.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hzHJuxP6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BF56C809FEE0; Tue, 31 Oct 2023 05:53:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344375AbjJaMxj (ORCPT + 99 others); Tue, 31 Oct 2023 08:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344374AbjJaMxh (ORCPT ); Tue, 31 Oct 2023 08:53:37 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8041E4; Tue, 31 Oct 2023 05:53:34 -0700 (PDT) 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=rXuqsFrVvVN5BpjjygfvonPIKe+gbeo3sNDGWVV3pks=; b=hzHJuxP6Ia6A3s/Ei0M5W2eaTM J5QpswVnopKUXWfXvjrN7xoImq9yHk5i+DvWH46XT8BKM+wkKR19sFSnxioQVaS39FTZ7FcltYRmD pTl9RFyw2qI9lmZI42YYaLak6h7X2KFA0sadE+1PiQU43qCmRoq9XwWf8hTiiaHy9Sxc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxoFJ-000c4Y-23; Tue, 31 Oct 2023 13:53:25 +0100 Date: Tue, 31 Oct 2023 13:53:25 +0100 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, Steen.Hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Horatiu.Vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [PATCH net-next v2 8/9] microchip: lan865x: add driver support for Microchip's LAN865X MACPHY Message-ID: <0ad1c14e-cd7e-4b24-aec9-75cbd19ad8e9@lunn.ch> References: <20231023154649.45931-1-Parthiban.Veerasooran@microchip.com> <20231023154649.45931-9-Parthiban.Veerasooran@microchip.com> <296aa172-404e-414a-a56a-ca82b3e90397@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <296aa172-404e-414a-a56a-ca82b3e90397@microchip.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:53:43 -0700 (PDT) > Ah ok, then it is supposed to be like below, isn't it? > > static int lan865x_set_mac_address(struct net_device *netdev, void *addr) > { > struct sockaddr *address = addr; > int ret; > > if (netif_running(netdev)) > return -EBUSY; > > ret = lan865x_set_hw_macaddr(netdev); > if (ret) > return ret; > > eth_hw_addr_set(netdev, address->sa_data); > > return 0; > } Yes, that is better. In practice, its probably not an issue, setting the MAC address will never fail, but it is good to get right, just in case. Andrew