From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v2 2/3] net: mdio: Add Cortina CS7542 bus controller
Date: Tue, 24 Nov 2026 20:40:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-231995@kernel.org> (raw)
In-Reply-To: <20261123-b4-cs7542-mdio-v2-2-30465e831853@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net: mdio: cs75xx: unused bus member in struct cs75xx_mdio
--
commit ccf31526086167de7cf2594c8a7e311b16ba7517
Author: Fil Dunsky <filipp.dunsky@gmail.com>
net: mdio: Add Cortina CS7542 bus controller
This commit adds an MDIO bus controller driver for the Cortina Systems CS7542
supporting Clause 22 PHY register access via bounded polling.
> diff --git a/drivers/net/mdio/mdio-cs75xx.c b/drivers/net/mdio/mdio-cs75xx.c
> new file mode 100644
> index 0000000000000..33e1a48bfcf16
> --- /dev/null
> +++ b/drivers/net/mdio/mdio-cs75xx.c
> @@ -0,0 +1,119 @@
[ ... ]
> +struct cs75xx_mdio {
> + void __iomem *base;
> + struct mii_bus *bus;
> +};
[ ... ]
> +static int cs75xx_mdio_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct cs75xx_mdio *priv;
> + struct mii_bus *bus;
> + u32 cfg;
> +
> + bus = devm_mdiobus_alloc_size(dev, sizeof(*priv));
> + if (!bus)
> + return -ENOMEM;
> +
> + priv = bus->priv;
> + priv->bus = bus;
[Severity: Low]
This isn't a bug, but priv->bus is assigned in cs75xx_mdio_probe() and never
read anywhere in the driver. Could the bus member be removed from struct
cs75xx_mdio?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-b4-cs7542-mdio-v2-0-30465e831853@gmail.com?part=2
next prev parent reply other threads:[~2026-11-24 20:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 20:40 [PATCH net-next v2 0/3] Add Cortina Systems CS7542 MDIO controller support Fil Dunsky
2026-11-23 20:40 ` Fil Dunsky via B4 Relay
2026-11-23 20:40 ` [PATCH net-next v2 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller Fil Dunsky
2026-11-23 20:40 ` Fil Dunsky via B4 Relay
2026-11-24 20:40 ` sashiko-bot
2026-11-23 20:40 ` [PATCH net-next v2 2/3] net: mdio: Add Cortina CS7542 bus controller Fil Dunsky
2026-11-23 20:40 ` Fil Dunsky via B4 Relay
2026-11-24 20:40 ` sashiko-bot [this message]
2026-11-23 20:40 ` [PATCH net-next v2 3/3] MAINTAINERS: Add Cortina CS7542 MDIO controller entry Fil Dunsky
2026-11-23 20:40 ` Fil Dunsky via B4 Relay
2026-11-23 20:54 ` [PATCH net-next v2 0/3] Add Cortina Systems CS7542 MDIO controller support Andrew Lunn
2026-11-23 21:08 ` Fil Dunsky
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=sashiko-outbox-231995@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.