Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7424119pxb; Thu, 18 Feb 2021 09:40:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrgWZ2a3fxcVIil/zOB1/DflqtiOh1uLpLF82cbz+pQHfq66wQlJWW4kqhLMC3K/2Z6U95 X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr5111516edd.312.1613670058976; Thu, 18 Feb 2021 09:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613670058; cv=none; d=google.com; s=arc-20160816; b=fcMkB2OqRA65YcxvyugkfX9brRDy4D/fIYoViC3cho0WFZb7mqUnw16EqPlf5/SSKY gFbP9nYA+MMttEacBE3hcOvUq/h7RS6UArnsJj+SsgUKyNMOqOvHIFsm0yHR3nkItLhk bXfJM6nDF7r8gVaZkd/+mDdTk1Om3IfufL5mcuTc5spGI2ukvSK2oIVR7c1omNbZkIum TEDJDIIO+maE0CB1QcEg1t0RV/+n6D3FyMRWl3OatO2yc86GfvsSFwS2BcB1MoxHedwe UfUW6oFmJx+p9fGkbeniu41fM5HfTpeSkyqZz1P/APV2s0qmvxuc/w5XWvFJx1mYwML4 5www== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8jS31/1Xy+yRuy91zGYhjBqYA9AzfRcHmkz195N5Ino=; b=ilR73F+3mp/6v5rKK8+WznVughRuTNYsXjQFrLbddLvdlL37KjCaDT/y/fZFpLl3UE DwP0xYx07GaCB1ENJk/y1BTlBzo1WFHNPj0gEf3RrLYMhCfcAe8XnCuaZBP/s/2Nutdg Zc4L21p3P6n9IREwS4XFAGZSscKfknCFkFZOhIni3rkzyA2GIWVLLMAcTUceROdaiiFP R0QJhHVBRchusF2wVB73Xht8BkZEfu+5VgfYKk1STLuRxVGiOpkWLGkpQ2Ut47JPkyxE PkzTph+rXao0bexy6GnpwAPFpY/AsRG5bfeXtWWq11OU225JilaZsweemR1810qGvljp V33Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a5Esrysy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si3875315edq.404.2021.02.18.09.40.26; Thu, 18 Feb 2021 09:40:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a5Esrysy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234502AbhBRRiU (ORCPT + 99 others); Thu, 18 Feb 2021 12:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbhBROxC (ORCPT ); Thu, 18 Feb 2021 09:53:02 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 351F6C061574; Thu, 18 Feb 2021 06:52:21 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id z9so1605105pjl.5; Thu, 18 Feb 2021 06:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8jS31/1Xy+yRuy91zGYhjBqYA9AzfRcHmkz195N5Ino=; b=a5EsrysyjYS2a3vIaxGq657Ry7MQI+NuO/AkfEuVdskDMAZ7G71BzRfPVmksdG56W/ 3fAATQrKa3yCs+icFjOeOgjgNunLPTd63UJenFJ2QeEJJAq5L5EiBoXNGXqyluh7kvm/ Pr1yQMWKZmkRfM7IeHLvsLbYMdGxoyw0qSumoMZ+F2SO9Jivus+xeEo2OAm8XWx8yJoH Id61kAt6ZOw/Mp6/aDt9JIM/p+GSNgiNy+4Za3ROSGqEP06JMtFuG2aMTiJfVQGi+hhr G4X90zlP8P6VLqoFlepGV2rexaMl/D6C22YIvK/WoyTW6f09Pk43n4AwOyOiG+ni+lqp PT/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8jS31/1Xy+yRuy91zGYhjBqYA9AzfRcHmkz195N5Ino=; b=sE643N3bvrm47EcYMcGpZUM3kDE0FzPaySmnt5yhR5/bAMfnXTnwCaiNkhCW0DTurv kfzTVp/dUp5rvkcBRmRaLv0rQjU055+YcRAMyHhEGapkBlKvodFe8Lvni0pMZu2C5UfT 2Hx9nF1WpVDNmqyY0Qw0xrjaQWhtyr3WR3kxz5SsRKS90iqn5gpYqZYL4IIfocmU5NR7 SunqGgBVkkGBS35uQ/VVmp7LN09ADEC3lvQcVX+/Cij/6TmeBAYuDp8XzocuNc4f5sjq VFsOCqmE3udsB5CJJC7OupaXDMMzeDU5n4yaeTDrmMfsg627yAUzjX4bnBQxPl/GWpvX XQzg== X-Gm-Message-State: AOAM532bd63tJeFyMWMr8sSb3RApP9aKTCh+6SiijklTcQAIjPWDZPpY BatREyFuyVkEFrGROBel6WL0MvDVEgpTCfcSR5I= X-Received: by 2002:a17:902:a710:b029:e3:b18:7e5b with SMTP id w16-20020a170902a710b02900e30b187e5bmr4353726plq.17.1613659940699; Thu, 18 Feb 2021 06:52:20 -0800 (PST) MIME-Version: 1.0 References: <20210218052654.28995-1-calvin.johnson@oss.nxp.com> <20210218052654.28995-8-calvin.johnson@oss.nxp.com> In-Reply-To: <20210218052654.28995-8-calvin.johnson@oss.nxp.com> From: Andy Shevchenko Date: Thu, 18 Feb 2021 16:52:04 +0200 Message-ID: Subject: Re: [net-next PATCH v6 07/15] net: mdiobus: Introduce fwnode_mdiobus_register_phy() To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , Linux Kernel Mailing List , netdev , ACPI Devel Maling List , Laurentiu Tudor , Diana Madalina Craciun , linux-arm Mailing List , "linux.cj" , "David S. Miller" , Frank Rowand , Heiner Kallweit , Jakub Kicinski , Rob Herring , devicetree Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 7:28 AM Calvin Johnson wrote: > > Introduce fwnode_mdiobus_register_phy() to register PHYs on the > mdiobus. From the compatible string, identify whether the PHY is > c45 and based on this create a PHY device instance which is > registered on the mdiobus. Thanks for an update! Below some nit-picks, may be ignored. > uninitialized symbol 'mii_ts' > Reported-by: kernel test robot > Reported-by: Dan Carpenter I don't think the above deserves to be in the commit message (rather after the cutter '---' line as a changelog). > Signed-off-by: Calvin Johnson ... > + if (mii_ts) > + unregister_mii_timestamper(mii_ts); ... > + if (mii_ts) > + unregister_mii_timestamper(mii_ts); I'm wondering if we can move this check to the unregister_mii_timestamper() to make it NULL aware as many other similar (unregister) APIs do. I have checked that there are currently three users of this that can benefit of the change. ... > + /* phy->mii_ts may already be defined by the PHY driver. A > + * mii_timestamper probed via the device tree will still have > + * precedence. > + */ > + if (mii_ts) > + phy->mii_ts = mii_ts; I'm wondering if the belo form is better to read phy->mii_ts = mii_ts ?: phy->mii_ts; -- With Best Regards, Andy Shevchenko