Netdev List
 help / color / mirror / Atom feed
From: Ivan Vecera <ivecera@redhat.com>
To: Jakub Kicinski <kuba@kernel.org>
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: Mon, 27 Jul 2026 10:33:35 +0200	[thread overview]
Message-ID: <B047A851-87E8-4156-97CB-117A71CDBCD8@redhat.com> (raw)
In-Reply-To: <20260722135848.2d401ada@kernel.org>



22. července 2026 22:58:48 SELČ, Jakub Kicinski <kuba@kernel.org> napsal:
>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.
>

There are some chip variants that don't support PTP. Should we depend non-optionally?

>> +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

Yes, will do.

>
>>  #include <linux/dpll.h>
>>  #include <linux/list.h>
>> +#include <linux/mutex.h>
>
>spurious include?

Yep, will remove.

>
>> +#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);


  reply	other threads:[~2026-07-27  8:33 UTC|newest]

Thread overview: 9+ 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
2026-07-27  8:33     ` Ivan Vecera [this message]
2026-07-27 19:59       ` Jakub Kicinski

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=B047A851-87E8-4156-97CB-117A71CDBCD8@redhat.com \
    --to=ivecera@redhat.com \
    --cc=Chris.duQuesnay@microchip.com \
    --cc=Prathosh.Satish@microchip.com \
    --cc=arkadiusz.kubalewski@intel.com \
    --cc=davem@davemloft.net \
    --cc=horms@kernel.org \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --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