[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240305100426.5ed724f3@kernel.org>
Date: Tue, 5 Mar 2024 10:04:26 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Köry Maincent <kory.maincent@...tlin.com>
Cc: Florian Fainelli <florian.fainelli@...adcom.com>, Broadcom internal
kernel review list <bcm-kernel-feedback-list@...adcom.com>, Andrew Lunn
<andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>, Russell King
<linux@...linux.org.uk>, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Richard
Cochran <richardcochran@...il.com>, Radu Pirea
<radu-nicolae.pirea@....nxp.com>, Jay Vosburgh <j.vosburgh@...il.com>, Andy
Gospodarek <andy@...yhouse.net>, Nicolas Ferre
<nicolas.ferre@...rochip.com>, Claudiu Beznea <claudiu.beznea@...on.dev>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>, Jonathan Corbet
<corbet@....net>, Horatiu Vultur <horatiu.vultur@...rochip.com>,
UNGLinuxDriver@...rochip.com, Simon Horman <horms@...nel.org>, Vladimir
Oltean <vladimir.oltean@....com>, Thomas Petazzoni
<thomas.petazzoni@...tlin.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org, Maxime Chevallier
<maxime.chevallier@...tlin.com>, Rahul Rameshbabu <rrameshbabu@...dia.com>
Subject: Re: [PATCH net-next v9 12/13] net: ethtool: tsinfo: Add support for
hwtstamp provider and get/set hwtstamp config
On Tue, 5 Mar 2024 17:52:53 +0100 Köry Maincent wrote:
> > > + /* Does the hwtstamp supported in the netdev topology */
> > > + if (mod) {
> > > + hwtstamp.ptp = ptp_clock_get_by_index(phc_index);
> >
> > This just returns a pointer without any refcounting, right?
> > What guarantees the ptp object doesn't disappear?
>
> Could the ptp object disappears within rtnlock?
I believe so, yes.
> Maybe I should add refcounting.
Powered by blists - more mailing lists