lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CALeDE9MhZXmnQzazoN_HN=yTGiT=EWDhL4AQmERVvOmuELNqJQ@mail.gmail.com>
Date: Wed, 8 Oct 2025 09:50:17 +0100
From: Peter Robinson <pbrobinson@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Richard Cochran <richardcochran@...il.com>, Andrew Lunn <andrew+netdev@...n.ch>, 
	"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, 
	Paolo Abeni <pabeni@...hat.com>, Frank Li <Frank.Li@....com>, Wei Fang <wei.fang@....com>, 
	netdev@...r.kernel.org
Subject: Re: [PATCH] ptp: netc: Add dependency on NXP_ENETC4

On Wed, 8 Oct 2025 at 02:19, Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Sun,  5 Oct 2025 21:49:42 +0100 Peter Robinson wrote:
> > The NETC V4 Timer PTP IP works with the associated NIC
> > so depend on it, plus compile test, and default it on if
> > the NIC is enabled similar to the other PTP modules.
> >
> > Fixes: 87a201d59963e ("ptp: netc: add NETC V4 Timer PTP driver support")
>
> You put a Fixes tag here, suggesting this is a fix.
> What bug is it fixing? Seems like an improvement to the default
> kconfig behavior, TBH. If it is a bug fix please explain in the
> commit message more. If not please drop the Fixes tag and repost
> next week. Also..

I don't believe it works without the associated hardware so it seems
like a bug to me, There's likely nuance and opinion. I labelled as a
fix so it lands into the same kernel release as opposed to the next
one.

> > Signed-off-by: Peter Robinson <pbrobinson@...il.com>
> > ---
> >  drivers/ptp/Kconfig | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig
> > index 5f8ea34d11d6d..a5542751216d6 100644
> > --- a/drivers/ptp/Kconfig
> > +++ b/drivers/ptp/Kconfig
> > @@ -255,6 +255,8 @@ config PTP_S390
> >
> >  config PTP_NETC_V4_TIMER
> >       tristate "NXP NETC V4 Timer PTP Driver"
> > +     depends on NXP_ENETC4 || COMPILE_TEST
>
> .. why? Does the clock driver not work at all without the networking
> driver? Or you just think that they go together?

It is my understanding that it doesn't, it's also the way the
PTP_1588_CLOCK_QORIQ does it, hence i did that way.

> > +     default y if NXP_ENETC4
>
> Isn't this better written as:
>
>         default NXP_ENETC4

I did it the same way as the other HW drivers such as
PTP_1588_CLOCK_QORIQ and PTP_1588_CLOCK_DTE did in that Kconfig file
for consistency

> ?
>
> >       depends on PTP_1588_CLOCK
> >       depends on PCI_MSI
> >       help
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ