From: Jakub Kicinski <kuba@kernel.org>
To: Ivan Vecera <ivecera@redhat.com>
Cc: netdev@vger.kernel.org,
Chris du Quesnay <Chris.duQuesnay@microchip.com>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
"David S. Miller" <davem@davemloft.net>,
Jiri Pirko <jiri@resnulli.us>,
Michal Schmidt <mschmidt@redhat.com>,
Paolo Abeni <pabeni@redhat.com>,
Pasi Vaananen <pvaanane@redhat.com>, Petr Oros <poros@redhat.com>,
Prathosh Satish <Prathosh.Satish@microchip.com>,
Richard Cochran <richardcochran@gmail.com>,
Simon Horman <horms@kernel.org>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] dpll: zl3073x: add PTP clock support
Date: Wed, 22 Jul 2026 13:58:48 -0700 [thread overview]
Message-ID: <20260722135848.2d401ada@kernel.org> (raw)
In-Reply-To: <20260713103739.1553284-3-ivecera@redhat.com>
On Mon, 13 Jul 2026 12:37:39 +0200 Ivan Vecera wrote:
> diff --git a/drivers/dpll/zl3073x/Kconfig b/drivers/dpll/zl3073x/Kconfig
> index 5bbca14005813..d0574ad571d3f 100644
> --- a/drivers/dpll/zl3073x/Kconfig
> +++ b/drivers/dpll/zl3073x/Kconfig
> @@ -2,7 +2,7 @@
>
> config ZL3073X
> tristate "Microchip Azurite DPLL/PTP/SyncE devices" if COMPILE_TEST
> - depends on NET
> + depends on NET && PTP_1588_CLOCK_OPTIONAL
Real dependency is probably better here?
The Optional is meant for NICs for which PTP truly is a side-feature.
> +zl3073x_dpll_alloc(struct zl3073x_dev *zldev, u8 ch)
Would be nice to factor out the code movement to a separate commit to
make this diff easier to follow
> #include <linux/dpll.h>
> #include <linux/list.h>
> +#include <linux/mutex.h>
spurious include?
> +#include <linux/ptp_clock_kernel.h>
>
> #include "core.h"
>
> @@ -22,6 +24,8 @@
> * @type: DPLL type (PPS or EEC)
> * @lock_status: last saved DPLL lock status
> * @pins: list of pins
> + * @ptp_info: PTP clock info
> + * @ptp_clock: registered PTP clock (or NULL)
> */
> struct zl3073x_dpll {
> struct list_head list;
> @@ -36,6 +40,8 @@ struct zl3073x_dpll {
> enum dpll_type type;
> enum dpll_lock_status lock_status;
> struct list_head pins;
> + struct ptp_clock_info ptp_info;
> + struct ptp_clock *ptp_clock;
> };
>
> struct zl3073x_dpll *zl3073x_dpll_alloc(struct zl3073x_dev *zldev, u8 ch);
--
pw-bot: cr
prev parent reply other threads:[~2026-07-22 20:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 10:37 [PATCH net-next v2 0/2] dpll: zl3073x: add PTP clock support Ivan Vecera
2026-07-13 10:37 ` [PATCH net-next v2 1/2] dpll: zl3073x: add channel ToD, phase step and TIE operations Ivan Vecera
2026-07-17 8:41 ` Petr Oros
2026-07-22 20:54 ` Jakub Kicinski
2026-07-13 10:37 ` [PATCH net-next v2 2/2] dpll: zl3073x: add PTP clock support Ivan Vecera
2026-07-17 8:43 ` Petr Oros
2026-07-22 20:58 ` Jakub Kicinski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260722135848.2d401ada@kernel.org \
--to=kuba@kernel.org \
--cc=Chris.duQuesnay@microchip.com \
--cc=Prathosh.Satish@microchip.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=davem@davemloft.net \
--cc=horms@kernel.org \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=linux-kernel@vger.kernel.org \
--cc=mschmidt@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=poros@redhat.com \
--cc=pvaanane@redhat.com \
--cc=richardcochran@gmail.com \
--cc=vadim.fedorenko@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox