Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2018616rwp; Thu, 13 Jul 2023 22:26:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGeNm5RlVXRsWSLZQVbRSDOW63yntHNyXItoPqGNgsLUojBj6mXBAxyFwO4OuoW8GpdXYo X-Received: by 2002:aa7:d14c:0:b0:51d:a6e3:81fb with SMTP id r12-20020aa7d14c000000b0051da6e381fbmr3348909edo.14.1689312393301; Thu, 13 Jul 2023 22:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689312393; cv=none; d=google.com; s=arc-20160816; b=ClwDpoEzg0mOeNX4vxp7r93x5KW4haAwQNHRyM9X/eBSN7xyEkGecFzzjntaNw0J+i LH7q2OqNAJ15NQT7H4oka67gjw5ZAbwHPTMIxgLJKMZP+JpueWHvlFLSRd04UkowwvkC KpQlXxZs7uh+XMDYFwPMqZ6S+kyl2KJWS8HkY2gGRG5Q6Guw8YKlTZzoW5jwuv/iUSjE d6xHw8c5IWRErF9cQvT7pc5yw6chXueIOzI1q4nnQJzMuWQ79mZGG5pUSAc/u3REZGTC FK/iCNi1ZZaQ4ZlnpgjRte7Lh2euBTrYIfpAYsF5aknvvy8vk5skgTL8k1FD6vkL5y6Z pOig== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qanFZMj30IH4XW48WS0t6ILLRq3RPYhmVjv06bs4ifs=; fh=NkDOdzOPbCz9DiKTb7h7jjJ5nsoj9MBkfvj6bTNejwg=; b=QuXnXGp+teWJ4B2ZLOTUyFT7t0kTA+Ytsg2eBmbQW8fo/yh6ivXFwJZx5OJlU/yUdn sUw66/UT108JLfyMtW8MuwO8mRJ/oR+JuBCWgbfo2mvwghbj2whuJpjqKcd7ny8oIEe1 zhVUyZReLi+68rl8TM2YXUCiaL+rM0RplnEoRChi0dhZy32zFZeV5qxiAiIEVKg6/RxO g8GDbc6SzW+04U1uECsgjd5PEsvknZigRTHPtPUM6t7kdsPJIs+BqTTfKYdDsBjujb3N pbbsQF4m9M7mJT7B78ClSyLtndorwnAyU2I951oI/PEPcsK/sdelcyBInGed5WPUiAeq 7NBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ocHt077N; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a50ef05000000b0051e02f601aasi2911116eds.324.2023.07.13.22.26.08; Thu, 13 Jul 2023 22:26:33 -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=@gmail.com header.s=20221208 header.b=ocHt077N; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234638AbjGNFS5 (ORCPT + 99 others); Fri, 14 Jul 2023 01:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234545AbjGNFS4 (ORCPT ); Fri, 14 Jul 2023 01:18:56 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADF61BFA; Thu, 13 Jul 2023 22:18:54 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b74fa5e7d7so23368011fa.2; Thu, 13 Jul 2023 22:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689311933; x=1691903933; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=qanFZMj30IH4XW48WS0t6ILLRq3RPYhmVjv06bs4ifs=; b=ocHt077NOqJgR/r/AnSkTtXME0GBY2YvFrJMUkK/HReb5GKgR0PSEXUAwNrQyvTzrZ WhOTnDSvJa43aNxuo0C++s0HxDE7B76u9aFlT/TrrX1hGWa6R9MmseWw0b23iWDkjxS+ 790Mce8LTojIbjb2vRnQIMF7QjDbGYGGRROvXOl1FNWijTcH9HdlNH5GARWvA3M1Rd5v VGF34BYfbXZ7AqpAcr9bXdw2FfdGB4jakjeGp7TNDv2GdlsdLNe504osmEJ7dYkNA0rk nFD9MIdfYVpls54NEE8KiW9Ny96vziJlPDvtTKUxPCFrhyP6A3kD03o0uoTP8eb/DOIw AYiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689311933; x=1691903933; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qanFZMj30IH4XW48WS0t6ILLRq3RPYhmVjv06bs4ifs=; b=g+zOY1DhsyvQ/WBl3adUd1Aw/mRiS5wXtUBOjacZVMx6EbQMETeJzV62LHUu/azGeW xESDzlnoZxffPb/memmr9Zrj2rlXAn2IjrNhjy/HDR/r8Qnov5/Irr4W3pMDfrb6kKwx RxSSI8P8MueiI3onvVFxloRU1VMVQEAn1zcJjAnr+S6/+dYNmNASq8c62S/ykQP32RxU wN6+1OytH8fY5AEHFYw8PdUPayD1zfv5a8gzjDhVbPYeaE6z0wz47hvSoOnUJngXGafR cmz1ZbVo6MgS5uW5f0OyEWtcUeemDtX+6tz1MH6nOx0BdEqUiWS1Z/bjMhtbm0zreYXU jwWQ== X-Gm-Message-State: ABy/qLbxlHJdqGEk/cgJetwDflkPdKNJ0o5BCU9T3T1sMQqVknRNmdbK 4aC+N0SLM+z5pcTK5ltovvE= X-Received: by 2002:a2e:9d0f:0:b0:2b6:f21c:2c46 with SMTP id t15-20020a2e9d0f000000b002b6f21c2c46mr2781140lji.53.1689311932414; Thu, 13 Jul 2023 22:18:52 -0700 (PDT) Received: from home.paul.comp (paulfertser.info. [2001:470:26:54b:226:9eff:fe70:80c2]) by smtp.gmail.com with ESMTPSA id e16-20020a2e9310000000b002b6cb40e9aasm1762440ljh.103.2023.07.13.22.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 22:18:51 -0700 (PDT) Received: from home.paul.comp (home.paul.comp [IPv6:0:0:0:0:0:0:0:1]) by home.paul.comp (8.15.2/8.15.2/Debian-22) with ESMTP id 36E5Imqq000481; Fri, 14 Jul 2023 08:18:49 +0300 Received: (from paul@localhost) by home.paul.comp (8.15.2/8.15.2/Submit) id 36E5Ihls000480; Fri, 14 Jul 2023 08:18:43 +0300 Date: Fri, 14 Jul 2023 08:18:43 +0300 From: Paul Fertser To: Pavan Chebbi Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Liang He , Geoff Levand , Leon Romanovsky , Tao Ren , Wolfram Sang , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ftgmac100: support getting MAC address from NVMEM Message-ID: References: <20230713095743.30517-1-fercerpav@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hello Pavan, On Fri, Jul 14, 2023 at 10:14:02AM +0530, Pavan Chebbi wrote: > On Thu, Jul 13, 2023 at 3:28 PM Paul Fertser wrote: > > Make use of of_get_ethdev_address() to support reading MAC address not > > only from the usual DT nodes but also from an NVMEM provider (e.g. using > > a dedicated area in an FRU EEPROM). > > 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? 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? -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com