Re: [PATCH net-next v5 1/9] net: dsa: microchip: Add support for KSZ8463 global irq
From: Bastien Curutchet
Date: Wed Mar 04 2026 - 03:14:36 EST
Hi Jakub,
On 2/28/26 11:16 PM, Jakub Kicinski wrote:
On Thu, 26 Feb 2026 17:41:48 +0100 Bastien Curutchet (Schneider
Electric) wrote:
/* Read interrupt status register */
- ret = ksz_read8(dev, kirq->reg_status, &data);
+ ret = ksz_read16(dev, kirq->reg_status, &data);
if (ret)
goto out;
I think you promised to extend this comment to indicate that the
over-read is safe?
https://lore.kernel.org/netdev/c9cb204b-e079-4f5b-b670-dcce14101390@xxxxxxxxxxx/
You're right, I forgot about this one, sorry about that.
Also could you go thru the series and check for cases where the lines
are unnecessarily long? In netdev we still prefer 80 chars.
Not a hard requirement, of course, sometimes wrapping hurts readability.
But plenty of examples in here of this which could be trivially wrapped:
WARNING: line length of 96 exceeds 80 columns
#166: FILE: drivers/net/dsa/microchip/ksz_ptp.c:1138:
+static int ksz8463_ptp_port_irq_setup(struct ksz_irq *ptpirq, struct ksz_port *port, int hw_irq)
WARNING: line length of 82 exceeds 80 columns
#207: FILE: drivers/net/dsa/microchip/ksz_ptp.c:1179:
+ ptpirq->irq_num = irq_find_mapping(dev->girq.domain, KSZ8463_SRC_PTP_INT);
WARNING: line length of 86 exceeds 80 columns
#218: FILE: drivers/net/dsa/microchip/ksz_ptp.c:1190:
+ ptpirq->domain = irq_domain_create_linear(dev_fwnode(dev->dev), ptpirq->nirqs,
WARNING: line length of 83 exceeds 80 columns
#219: FILE: drivers/net/dsa/microchip/ksz_ptp.c:1191:
+ &ksz_ptp_irq_domain_ops, ptpirq);
... etc..
Sure I'll take a look at it.
Best regards,
Bastien