[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241217192246.47868890@kernel.org>
Date: Tue, 17 Dec 2024 19:22:46 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Divya Koppera <divya.koppera@...rochip.com>
Cc: <andrew@...n.ch>, <arun.ramadoss@...rochip.com>,
<UNGLinuxDriver@...rochip.com>, <hkallweit1@...il.com>,
<linux@...linux.org.uk>, <davem@...emloft.net>, <edumazet@...gle.com>,
<pabeni@...hat.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <richardcochran@...il.com>,
<vadim.fedorenko@...ux.dev>
Subject: Re: [PATCH net-next v7 2/5] net: phy: microchip_rds_ptp : Add rds
ptp library for Microchip phys
On Fri, 13 Dec 2024 17:44:00 +0530 Divya Koppera wrote:
> +
> +static int mchp_rds_ptp_ts_info(struct mii_timestamper *mii_ts,
> + struct kernel_ethtool_ts_info *info)
> +{
> + struct mchp_rds_ptp_clock *clock = container_of(mii_ts,
> + struct mchp_rds_ptp_clock,
> + mii_ts);
> +
> + info->phc_index =
> + clock->ptp_clock ? ptp_clock_index(clock->ptp_clock) : -1;
under what condition can the clock be NULL?
> + if (info->phc_index == -1)
> + return 0;
Powered by blists - more mailing lists