[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <efb0fe5e-36af-9b36-98d2-e5f006c749d9@pengutronix.de>
Date: Mon, 11 Jan 2021 09:13:17 +0100
From: Holger Assmann <h.assmann@...gutronix.de>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...com>,
Jose Abreu <joabreu@...opsys.com>,
"David S. Miller" <davem@...emloft.net>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Rayagond Kokatanur <rayagond@...avyalabs.com>,
kernel@...gutronix.de, Michael Olbrich <m.olbrich@...gutronix.de>,
Ahmad Fatoum <a.fatoum@...gutronix.de>,
Jose Abreu <Jose.Abreu@...opsys.com>, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Richard Cochran <richardcochran@...il.com>
Subject: Re: [PATCH 1/2] net: stmmac: retain PTP-clock at hwtstamp_set
On Thu, 17.12.20 um 02:13 Jakub Kicinski wrote:
>
> Thanks for the patch, minor nits below.
Thanks for the Feedback! I will work it in for my v2.
>> +
>> + if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp))
>
> !a && !b reads better IMHO
We've chosen this variant because it is already used this way in
stmmac_main (e.g. in stmmac_hwtstamp_set(), stmmac_hwtstamp_get(), or
stmmac_validate()).
>> @@ -5290,8 +5330,7 @@ int stmmac_resume(struct device *dev)
>> /* enable the clk previously disabled */
>> clk_prepare_enable(priv->plat->stmmac_clk);
>> clk_prepare_enable(priv->plat->pclk);
>> - if (priv->plat->clk_ptp_ref)
>> - clk_prepare_enable(priv->plat->clk_ptp_ref);
>> + stmmac_init_hwtstamp(priv);
>
> This was optional, now you always init?
This was not intended. Will be fixed in v2 to be optional again.
Regards,
Holger
Powered by blists - more mailing lists