[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241115163631.636927b0@kernel.org>
Date: Fri, 15 Nov 2024 16:36:31 -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 v4 3/5] net: phy: Kconfig: Add ptp library
support and 1588 optional flag in Microchip phys
On Thu, 14 Nov 2024 17:34:53 +0530 Divya Koppera wrote:
> config MICROCHIP_T1_PHY
> tristate "Microchip T1 PHYs"
> + select MICROCHIP_PHYPTP if NETWORK_PHY_TIMESTAMPING
> + depends on PTP_1588_CLOCK_OPTIONAL
I presume the dependency is because select doesn't obey
dependencies, but you only select PHYPTP if NETWORK_PHY_TIMESTAMPING.
Maybe it's possible to create a intermediate meta-symbol which is
NETWORK_PHY_TIMESTAMPING && PTP_1588_CLOCK_OPTIONAL
and use that in the select.. if ... clause?
> + help
> + Supports the LAN8XXX PHYs.
> +
> +config MICROCHIP_PHYPTP
> + tristate "Microchip PHY PTP"
> help
nit: tabs vs spaces
> - Supports the LAN87XX PHYs.
> + Currently supports LAN887X T1 PHY
This Kconfig is likely unsafe.
You have to make sure PHYPTP is not a module when T1_PHY is built in.
--
pw-bot: cr
Powered by blists - more mailing lists