From: Jakub Kicinski <kuba@kernel.org>
To: "Bastien Curutchet (Schneider Electric)" <bastien.curutchet@bootlin.com>
Cc: "Woojung Huh" <woojung.huh@microchip.com>,
UNGLinuxDriver@microchip.com, "Andrew Lunn" <andrew@lunn.ch>,
"Vladimir Oltean" <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Paolo Abeni" <pabeni@redhat.com>,
"Richard Cochran" <richardcochran@gmail.com>,
"Simon Horman" <horms@kernel.org>,
"Pascal Eberhard" <pascal.eberhard@se.com>,
"Miquèl Raynal" <miquel.raynal@bootlin.com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 4/8] net: dsa: microchip: Add support for KSZ8463's PTP interrupts
Date: Sun, 25 Jan 2026 13:38:58 -0800 [thread overview]
Message-ID: <20260125133858.5fdb7532@kernel.org> (raw)
In-Reply-To: <20260122-ksz8463-ptp-v2-4-b6683f5ce50b@bootlin.com>
On Thu, 22 Jan 2026 14:27:38 +0100 Bastien Curutchet (Schneider
Electric) wrote:
> +int ksz8463_ptp_irq_setup(struct dsa_switch *ds)
> +{
> + struct ksz_device *dev = ds->priv;
> + const struct ksz_dev_ops *ops = dev->dev_ops;
> + struct ksz_port *port1, *port2;
> + struct ksz_irq *ptpirq;
> + int ret;
> + int p;
> +
> + port1 = &dev->ports[0];
> + port2 = &dev->ports[1];
> + ptpirq = &port1->ptpirq;
> +
> + ptpirq->irq_num = irq_find_mapping(dev->girq.domain, KSZ8463_SRC_PTP_INT);
> + if (!ptpirq->irq_num)
> + return -EINVAL;
> +
> + ptpirq->dev = dev;
> + ptpirq->nirqs = 4;
> + ptpirq->reg_mask = ops->get_port_addr(p, KSZ8463_PTP_TS_IER);
> + ptpirq->reg_status = ops->get_port_addr(p, KSZ8463_PTP_TS_ISR);
clang says:
drivers/net/dsa/microchip/ksz_ptp.c:1187:40: warning: variable 'p' is uninitialized when used here [-Wuninitialized]
1187 | ptpirq->reg_mask = ops->get_port_addr(p, KSZ8463_PTP_TS_IER);
| ^
drivers/net/dsa/microchip/ksz_ptp.c:1175:7: note: initialize the variable 'p' to silence this warning
1175 | int p;
| ^
| = 0
--
pw-bot: cr
next prev parent reply other threads:[~2026-01-25 21:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 13:27 [PATCH net-next v2 0/8] net: dsa: microchip: Add PTP support for the KSZ8463 Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 1/8] net: dsa: microchip: Add support for KSZ8463 global irq Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 2/8] net: dsa: microchip: Decorrelate IRQ domain from port Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 3/8] net: dsa: microchip: Decorrelate msg_irq index from IRQ bit offset Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 4/8] net: dsa: microchip: Add support for KSZ8463's PTP interrupts Bastien Curutchet (Schneider Electric)
2026-01-25 21:38 ` Jakub Kicinski [this message]
2026-01-26 8:02 ` Bastien Curutchet
2026-01-22 13:27 ` [PATCH net-next v2 5/8] net: dsa: microchip: Add KSZ8463 tail tag handling Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 6/8] net: dsa: microchip: Enable Ethernet PTP detection Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 7/8] net: dsa: microchip: Adapt port offset for KSZ8463's PTP register Bastien Curutchet (Schneider Electric)
2026-01-22 13:27 ` [PATCH net-next v2 8/8] net: dsa: microchip: Add two-step PTP support for KSZ8463 Bastien Curutchet (Schneider Electric)
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=20260125133858.5fdb7532@kernel.org \
--to=kuba@kernel.org \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=bastien.curutchet@bootlin.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--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