mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bastien Curutchet <bastien.curutchet@bootlin.com>
To: netdev-bot+sashiko@kernel.org
Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com,
	andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	richardcochran@gmail.com, pascal.eberhard@se.com,
	miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 10/10] net: dsa: microchip: add periodic output support for the KSZ8463
Date: Mon, 7 Sep 2026 10:43:01 +0200	[thread overview]
Message-ID: <a3ee0fb0-417a-4844-8c8d-b29189ea2b31@bootlin.com> (raw)
In-Reply-To: <178857332410.219967.8963048354667407581@kernel.org>

Hi all,

On 9/5/26 3:55 AM, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 5 potential
> issue(s) to consider:
> 
> Critical: 0 · High: 2 (1) · Medium: 3 · Low: 0 (2)
> 
> - [High] KSZ8463 periodic output is advertised as 12 independent channels
>    (.n_pins = 12, .n_per_out = 12 in ksz_switch_chips[KSZ8463]) but the…
> - [High] KSZ8463 periodic output (TOU) is not properly disabled in
>    hardware (leaves EN bit).
> - [Medium] Build failure when CONFIG_NET_DSA_MICROCHIP_KSZ_PTP=n:
>    ksz8463_setup() in drivers/net/dsa/microchip/ksz8.c now calls…
> - [Medium] The newly added ksz8463_ptp_configure_perout() dereferences
>    dev->ptp_data.pin_config[index] (reading pin->chan to select the…
> - [Medium] KSZ8463 TOU enable bit is left set in the hardware if the
>    activation verification check fails.
> 
> Pre-existing issues:
> - [High] A non-normalized periodic-output period whose nanosecond value
>    converts to zero is accepted, stored as the global restart period, and…
> - [Low] The KSZ periodic-output implementation accepts and processes
>    PTP_PEROUT_DUTY_CYCLE (ksz_ptp_get_pin() returns -EOPNOTSUPP only for…
> - [Low] ksz_ptp_clock_unregister() only calls ptp_clock_unregister(); it
>    never disables the trigger units that the perout path enabled.
> 
> --
> 
> net: dsa: microchip: add periodic output support for the KSZ8463
> 
> This adds KSZ8463 specific periodic output handling, since the chip has one
> configuration register block per trigger unit, a smaller maximum pulse
> width and 12 outputs instead of 2.  It wires new ksz8463_ptp_* callbacks
> into a dedicated ksz8463_ptp_set_caps() and advertises 12 pins / 12
> periodic output channels for the KSZ8463.
> 
> A few questions on the new code below.
> 
>> diff --git a/drivers/net/dsa/microchip/ksz8.c b/drivers/net/dsa/microchip/ksz8.c
>> index f2a23e2e474ac..6b08bb8fed5b7 100644
>> --- a/drivers/net/dsa/microchip/ksz8.c
>> +++ b/drivers/net/dsa/microchip/ksz8.c
>> @@ -2478,7 +2478,7 @@ static int ksz8463_setup(struct dsa_switch *ds)
>>   		if (ret)
>>   			goto free_girq;
>>   
>> -		ksz_ptp_set_caps(ds);
>> +		ksz8463_ptp_set_caps(ds);
> 
> [Severity: Medium]
> Does this still build with CONFIG_NET_DSA_MICROCHIP_KSZ_PTP=n?
> 

No it doesn't .. I'll send a new iteration with this fixed


Best regards,
Bastien

      reply	other threads:[~2026-09-07  8:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  9:57 [PATCH net-next v2 00/10] " Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 01/10] net: dsa: microchip: add the number of pins to chip infos Bastien Curutchet (Schneider Electric)
2026-09-05  1:55   ` netdev-bot+sashiko
2026-09-02  9:57 ` [PATCH net-next v2 02/10] net: dsa: microchip: add the number of periodic signals " Bastien Curutchet (Schneider Electric)
2026-09-05  1:55   ` netdev-bot+sashiko
2026-09-02  9:57 ` [PATCH net-next v2 03/10] net: dsa: microchip: use dynamic mask to check pulse width validity Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 04/10] net: dsa: microchip: extract PTP callbacks configuration from PTP registration Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 05/10] net: dsa: microchip: extract ptp_get_pin Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 06/10] net: dsa: microchip: extract compute_width Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 07/10] net: dsa: microchip: extract prepare reset Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 08/10] net: dsa: microchip: extract time update Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 09/10] net: dsa: microchip: extract time adjustment Bastien Curutchet (Schneider Electric)
2026-09-02  9:57 ` [PATCH net-next v2 10/10] net: dsa: microchip: add periodic output support for the KSZ8463 Bastien Curutchet (Schneider Electric)
2026-09-05  1:55   ` netdev-bot+sashiko
2026-09-07  8:43     ` Bastien Curutchet [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=a3ee0fb0-417a-4844-8c8d-b29189ea2b31@bootlin.com \
    --to=bastien.curutchet@bootlin.com \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=pascal.eberhard@se.com \
    --cc=richardcochran@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=woojung.huh@microchip.com \
    /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

all inboxes | Powered by JetHome®