Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6480270rwp; Tue, 18 Jul 2023 00:35:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEegdK/72ogvNYwwoiyNNmlhwNiUvpjReOzr8n+T9PAaV2GCTJo9GoSh73ZlwjnNi8UHxA0 X-Received: by 2002:a17:902:b286:b0:1b8:6b17:9093 with SMTP id u6-20020a170902b28600b001b86b179093mr13464912plr.1.1689665737296; Tue, 18 Jul 2023 00:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689665737; cv=none; d=google.com; s=arc-20160816; b=rxksXQYL6KMNDz8v07+xHKoVcH2VeKRdO3nc9STROS8lsBaq+VTLVhb6YBXbhyBgBu ypT6t6JaeUX1wjLK+Tx4Awdmqbi1U2aV9nyHnJoDoxOgCV+0RxmP2wS7eosLpBCODgdr rvyhccCFllYo7WfMGZcw0BnTjD2kIOlXd0uRN3gBtAsKZCd1e+gpF/LGiAgL2DOZTj5l zYQ6akJ2k47JM/ufdb1SqZfNAVnRVQtbwDwk56d6E+Wnj/B3k0+H5vs4eu3fC50YBJ+R 53Ot34fBcJYEzTLZVBNRhtvJyYS+xdnfepT9TxFZxDBVSlQo9XfxhrYwPujTPF2bH9Fz ouew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=LO/OU3eOEKbiSK+Rpa6237MBQHj5ytyRv/Karly+Uw4=; fh=1cbLv94wik6XNJBgy39oPGm7mRSRiUcwcZDvKzc2u8o=; b=l3SsXBH3w8lbpkaETTtDJ7ewMF2AY9adfwWFbq7kR/ocPQxwSzS2gn6BcBHC/jSX/o ncrQuUedhpDi0tguh4MVor4N0qczGkLimOA3HNmZriiFsC0YfDqEud9lQJxxI3wS3fyf 254br5bSCvwI5hPdbOs14qmt+GmRxb7CPF7Vvp/NElBWRGLX4aiUtZ2jZD3/w9NyXtmn h16wRLlwBWI9/0znjEGQ6WwrtHXg05HUqM7iGXcLdHE8Ph1B+QjxGyJyIj1XLHGSdUuL h1bhpPnVTF5ZQas0szK8HFrQY82wKPZZTzsEoALWsGt9MQE7JJNdtqGE4pKklbvw2s8b Nrcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A5ZdXFyo; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a170902f54500b001ae014d8d03si1269705plf.432.2023.07.18.00.35.24; Tue, 18 Jul 2023 00:35:37 -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=@redhat.com header.s=mimecast20190719 header.b=A5ZdXFyo; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjGRHQL (ORCPT + 99 others); Tue, 18 Jul 2023 03:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbjGRHQK (ORCPT ); Tue, 18 Jul 2023 03:16:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2610AE48 for ; Tue, 18 Jul 2023 00:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689664518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LO/OU3eOEKbiSK+Rpa6237MBQHj5ytyRv/Karly+Uw4=; b=A5ZdXFyoSxGrEJSW68BKFT3EcXOX5u6qf4sZ86vt1ZDDpuAktf7LO+aA1ZdvsISDwZvQdT SVDkqbtj4Ov3TQKE9uqHEFXmyRL+qReG5/QYnKB3a8WV1945H116Y3x0rLZtBJs/NVXBcR V5gsdTxyBlT5ABSunncuXkWNNVihpWk= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-499-MS-F2VMUOkmU9HgVl_EUPQ-1; Tue, 18 Jul 2023 03:15:17 -0400 X-MC-Unique: MS-F2VMUOkmU9HgVl_EUPQ-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-401e1fc831fso9932041cf.1 for ; Tue, 18 Jul 2023 00:15:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689664516; x=1692256516; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LO/OU3eOEKbiSK+Rpa6237MBQHj5ytyRv/Karly+Uw4=; b=ErTAP1TVuCjlAko9X0cf6JijQOiYj6C4c4Lvu0qeNrGOp3RFFxNYqs5kdrofXUZYVZ 58eg6AnEeQVSdtN11pygTVMg+GUJ+jbneGB+F8Tbgv2C7Onnkk6a+8SmdFn+pKj4uy6o xEHy9KlHa5LU9pGaUGqKhjW7Nh4nokgDIWzTI9fHrdKHUiHU5vienfgVvi0OYDO50SrN T/EhuRzGlQPSKvQ62h26zsjEDiGqU3NR9t3UEkpC0ddBSJ+yNdrSZH7NDXwRDGXtBknI FV5QjJ+sP8x2gIi7/A0RU2R1zOX+kXiz3BdReAr5L1pSjRstuQSmTSInQszqZP+iU3ZX 1S5g== X-Gm-Message-State: ABy/qLaQ6hVnjtF5LgFyyKOX1azbp8pet6Kuva9w0TeP14VnyDCE6vkh JafPeFxW0Go8ODePHmqrCt3J02tUj6qFKDO0mNFwvkOvpoKpFqHyodQRvlE6B9yWbtl621AruEB ehmfbqsvRjcTZYsMmt65u0oci X-Received: by 2002:a05:622a:145:b0:403:b11f:29f0 with SMTP id v5-20020a05622a014500b00403b11f29f0mr12838200qtw.0.1689664516501; Tue, 18 Jul 2023 00:15:16 -0700 (PDT) X-Received: by 2002:a05:622a:145:b0:403:b11f:29f0 with SMTP id v5-20020a05622a014500b00403b11f29f0mr12838190qtw.0.1689664516267; Tue, 18 Jul 2023 00:15:16 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-226-170.dyn.eolo.it. [146.241.226.170]) by smtp.gmail.com with ESMTPSA id bt6-20020ac86906000000b003f364778b2bsm482217qtb.4.2023.07.18.00.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 00:15:15 -0700 (PDT) Message-ID: <6818bc7ffe07c21d415265c00b00cf32c6d2ac6f.camel@redhat.com> Subject: Re: [PATCH] net: ftgmac100: support getting MAC address from NVMEM From: Paolo Abeni To: Paul Fertser , Pavan Chebbi Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Andrew Lunn , Liang He , Geoff Levand , Leon Romanovsky , Tao Ren , Wolfram Sang , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Tue, 18 Jul 2023 09:15:11 +0200 In-Reply-To: References: <20230713095743.30517-1-fercerpav@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 Fri, 2023-07-14 at 08:18 +0300, Paul Fertser wrote: > Hello Pavan, >=20 > On Fri, Jul 14, 2023 at 10:14:02AM +0530, Pavan Chebbi wrote: > > On Thu, Jul 13, 2023 at 3:28=E2=80=AFPM Paul Fertser wrote: > > > Make use of of_get_ethdev_address() to support reading MAC address no= t > > > only from the usual DT nodes but also from an NVMEM provider (e.g. us= ing > > > a dedicated area in an FRU EEPROM). > >=20 > > Looks like earlier ftgmac100_probe() would move on with self generated > > (random) MAC addr if getting it from the device failed. > > Now you will fail the probe in a failure case. Is that OK? >=20 > I think the previous behaviour is preserved with this patch in all the > cases other than of_get_ethdev_address returning -EPROBE_DEFER. Can > you please explain what failure case you have in mind and how the > probe is going to be failed in that case? FTR, I agree with the above: it looks like the old behavior is preserved. The patch LGTM, thanks! Paolo