Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2195086pxu; Fri, 18 Dec 2020 07:38:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz7XrfUM+Y4eFYl8KE9lcrkhKSO9CRRhqPdmYLaiQUkTbmjAiprExQ7E28JTMOe99fGUAh X-Received: by 2002:a17:906:6d0b:: with SMTP id m11mr4482878ejr.230.1608305889297; Fri, 18 Dec 2020 07:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608305889; cv=none; d=google.com; s=arc-20160816; b=bANi30yFufo/r3e4u4gAB9qLlNEUv0Ti0f4joxKssi3FoHJ+XQPYnrZe9dYH/jivKN KW8HP1+G8pkzZU0Mibpu0rMyB8KAL0C+YgzE8yN/cgiD0Q6u4ncL9/rQe5Akq9mEaCzG FfhRWRUP2jFXEEHuWroSCCDbFl3WV3Srv/yA/B0/TdMgpNG0JUUZU2SAmtuT0jDUXJXz kWvfAg/lAaHQbQGFQuAA1NhJTNGEk5Q20tv0E4xGOxs2pEce7yUVoRZdHZ4jnUSLnnEj RMKX24VceH7Se1adiT9NDYAj+Dxwvpu8GnbhpTIuxT/TChpNW7eUt79kBBCYXSTPPKAJ hh6w== 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=7xxcDN6HCVBj/n2MlzzYP00orDljms2QLMLINjiTeKg=; b=fb/8OaECHiGKi2T1894Qi5xnbv0y8gdwaThyhitJGdw3pVT2LRG5zyK1UD+kqSKNUl VIFBpEjXuVnNW0v/3JYlcNPRtfFIalHiRSfwtKGeIauzE0TIy/YS4vW08AdnAd4fLDtx /7plmqqRhqcMVXHD9zrgUAQpDL8fcvuhkOjonK3fGNR8F9hK5bIbMnixyAabUDa6y/GX ecNXwr9xYcmKEBmK2l9lyxfCYeIWj0yq3mtBMbGBcz6RSLm0frBBZRbTx5A2wwTwfq+8 e7hjVVImchsB+OSxROSik0YO9ENbeDPg2E20cp5xvVLhkZ5SUTqBJY+8bchAjlj2Z740 Qr5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PE89hqai; 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 v10si4875669ejh.387.2020.12.18.07.37.45; Fri, 18 Dec 2020 07:38:09 -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=PE89hqai; 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 S1728755AbgLRPgQ (ORCPT + 99 others); Fri, 18 Dec 2020 10:36:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbgLRPgP (ORCPT ); Fri, 18 Dec 2020 10:36:15 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 700E4C0617B0; Fri, 18 Dec 2020 07:35:35 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id n10so1524628pgl.10; Fri, 18 Dec 2020 07:35:35 -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=7xxcDN6HCVBj/n2MlzzYP00orDljms2QLMLINjiTeKg=; b=PE89hqai0/jIJUHPqZ7bRVSqKfzWQ/DhvoEEQ4sspOUPUhLGpHBNxu9U1C2M/8I4n4 DVzd32+NCzVyWuKEUcsihuNq2qxMxqdnthytjkif66VngeSNwttZEz3FS7dPIx7KbYdB 5JHf90i8Jkjj18qMEgi7pknOQirHGNujvq5Vy8n0rXQZkqX+CDx46/BY4H8gY8jmjLAW QLYMKFlZC7Y6iPwb8fGmViDYBpcnSV0moF8CRkbeEyfQ7CgEvu094FrnnbT85W6jNDPb H7EXObGdWHIDj5DE0Xxeyl/JDV2B1b7PacNJp62azmLXBvbu21RYReIA8cRKRlT/YYb0 NMVQ== 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=7xxcDN6HCVBj/n2MlzzYP00orDljms2QLMLINjiTeKg=; b=NUy1RV/u5TzZyGA5XkG2lR3Ay6Y/8IlGMpB/vvjF6Hev9WOZUWzT0FE57H7x6kCmwQ T4rADExdMr/+3PvoimQfaeDhy8hEPN1zVVhyduYDNXtpOAOuJAPFDaf4EsKUkHeKqBPv 5WTZC6SDck4zU6tlX9Yp7cwiuVhrTLF5DGhIVQ+SXms7UavGPAsVR5wk/mJTv1+jFscE ACVY1+f8AeTKL4aEeTRiolzZtZNjIVKgc2IR5rrH1mv9MN+9qS/552+9tA6AnW/bAa1z tMlhYrzfM7vyJJqldNuXtZoAySJSbHijWJE1/Gpu4bnb+ZD6Ka8V53CAQVWB/QBlPPl8 t7Sw== X-Gm-Message-State: AOAM532sOXgpVzooYfRd6P0J1LBrLdwRdo182IKauBpTbUdir8tCb1ut AGtyZmygh/dvSiJNOWF8yQJFB4+BO6CNkpnFUf8= X-Received: by 2002:a63:74b:: with SMTP id 72mr4675770pgh.4.1608305734916; Fri, 18 Dec 2020 07:35:34 -0800 (PST) MIME-Version: 1.0 References: <20201215164315.3666-1-calvin.johnson@oss.nxp.com> <20201215164315.3666-7-calvin.johnson@oss.nxp.com> <20201218053423.GA14594@lsv03152.swis.in-blr01.nxp.com> In-Reply-To: <20201218053423.GA14594@lsv03152.swis.in-blr01.nxp.com> From: Andy Shevchenko Date: Fri, 18 Dec 2020 17:35:18 +0200 Message-ID: Subject: Re: [net-next PATCH v2 06/14] 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 , "linux.cj" , Laurentiu Tudor , Diana Madalina Craciun , ACPI Devel Maling List , Linux Kernel Mailing List , linux-arm Mailing List , netdev , "David S. Miller" , Heiner Kallweit , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 18, 2020 at 7:34 AM Calvin Johnson wrote: > > On Tue, Dec 15, 2020 at 07:33:40PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 15, 2020 at 6:44 PM Calvin Johnson > > wrote: ... > > > + /* 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; > > > > How is that defined? Do you need to do something with an old pointer? > > As the comment says, I think PHY drivers which got invoked before calling > of_mdiobus_register_phy() may have defined phy->mii_ts. What I meant here is that the old pointer might need some care (freeing?). > > > + } -- With Best Regards, Andy Shevchenko