From: Andrew Lunn <andrew@lunn.ch>
To: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Vladimir Oltean <olteanv@gmail.com>,
Woojung Huh <woojung.huh@microchip.com>,
Arun Ramadoss <arun.ramadoss@microchip.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
kernel@pengutronix.de, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, UNGLinuxDriver@microchip.com,
"Russell King (Oracle)" <linux@armlinux.org.uk>,
devicetree@vger.kernel.org, Marek Vasut <marex@denx.de>
Subject: Re: [PATCH net-next v3 3/6] net: dsa: microchip: Refactor MDIO handling for side MDIO access
Date: Tue, 5 Nov 2024 19:15:27 +0100 [thread overview]
Message-ID: <790cbc97-6a08-495c-9afd-b8a49e546241@lunn.ch> (raw)
In-Reply-To: <20241105090944.671379-4-o.rempel@pengutronix.de>
On Tue, Nov 05, 2024 at 10:09:41AM +0100, Oleksij Rempel wrote:
> Add support for accessing PHYs via a side MDIO interface in LAN937x
> switches. The existing code already supports accessing PHYs via main
> management interfaces, which can be SPI, I2C, or MDIO, depending on the
> chip variant. This patch enables using a side MDIO bus, where SPI is
> used for the main switch configuration and MDIO for managing the
> integrated PHYs. On LAN937x, this is optional, allowing them to operate
> in both configurations: SPI only, or SPI + MDIO. Typically, the SPI
> interface is used for switch configuration, while MDIO handles PHY
> management.
>
> Additionally, update interrupt controller code to support non-linear
> port to PHY address mapping, enabling correct interrupt handling for
> configurations where PHY addresses do not directly correspond to port
> indexes. This change ensures that the interrupt mechanism properly
> aligns with the new, flexible PHY address mappings introduced by side
> MDIO support.
>
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
next prev parent reply other threads:[~2024-11-05 18:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 9:09 [PATCH net-next v3 0/6] Side MDIO Support for LAN937x Switches Oleksij Rempel
2024-11-05 9:09 ` [PATCH net-next v3 1/6] dt-bindings: net: dsa: ksz: add internal MDIO bus description Oleksij Rempel
2024-11-05 9:09 ` [PATCH net-next v3 2/6] dt-bindings: net: dsa: ksz: add mdio-parent-bus property for internal MDIO Oleksij Rempel
2024-11-05 9:09 ` [PATCH net-next v3 3/6] net: dsa: microchip: Refactor MDIO handling for side MDIO access Oleksij Rempel
2024-11-05 18:15 ` Andrew Lunn [this message]
2024-11-05 9:09 ` [PATCH net-next v3 4/6] net: dsa: microchip: cleanup error handling in ksz_mdio_register Oleksij Rempel
2024-11-05 9:09 ` [PATCH net-next v3 5/6] net: dsa: microchip: add support for side MDIO interface in LAN937x Oleksij Rempel
2024-11-05 18:21 ` Andrew Lunn
2024-11-05 9:09 ` [PATCH net-next v3 6/6] net: dsa: microchip: parse PHY config from device tree Oleksij Rempel
2024-11-05 14:28 ` Maxime Chevallier
2024-11-05 14:32 ` Oleksij Rempel
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=790cbc97-6a08-495c-9afd-b8a49e546241@lunn.ch \
--to=andrew@lunn.ch \
--cc=UNGLinuxDriver@microchip.com \
--cc=arun.ramadoss@microchip.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=marex@denx.de \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=robh+dt@kernel.org \
--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