mbox series

[net-next,v3,0/2] Read PHY address of switch from device tree on MT7530 DSA subdriver

Message ID 20240418-b4-for-netnext-mt7530-phy-addr-from-dt-and-simplify-core-ops-v3-0-3b5fb249b004@arinc9.com (mailing list archive)
Headers show
Series Read PHY address of switch from device tree on MT7530 DSA subdriver | expand

Message

Arınç ÜNAL via B4 Relay April 18, 2024, 5:35 a.m. UTC
This patch series makes the driver read the PHY address the switch listens
on from the device tree which, in result, brings support for MT7530
switches listening on a different PHY address than 31. And the patch series
simplifies the core operations.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
---
Changes in v3:
- Patch 1
  - Whilst compiling, GCC suggests parentheses around '+' in operand of
    '&'. Address that on the MT753X_CTRL_PHY_ADDR macro.
  - Instead of storing the PHY address in the mt7530_priv structure, store
    the MDIO device pointer as suggested by Florian.
- Link to v2: https://lore.kernel.org/r/20240414-b4-for-netnext-mt7530-phy-addr-from-dt-and-simplify-core-ops-v2-0-1a7649c4d3b6@arinc9.com

Changes in v2:
- Patch 1
  - Use a more efficient definition for the MT753X_CTRL_PHY_ADDR macro
    provided by Daniel.
- Link to v1: https://lore.kernel.org/r/20240414-b4-for-netnext-mt7530-phy-addr-from-dt-and-simplify-core-ops-v1-0-b08936df2770@arinc9.com

---
Arınç ÜNAL (2):
      net: dsa: mt7530-mdio: read PHY address of switch from device tree
      net: dsa: mt7530: simplify core operations

 drivers/net/dsa/mt7530-mdio.c |  28 +++++-----
 drivers/net/dsa/mt7530.c      | 127 +++++++++++++++++++-----------------------
 drivers/net/dsa/mt7530.h      |   4 +-
 3 files changed, 75 insertions(+), 84 deletions(-)
---
base-commit: 2bd99aef1b19e6da09eff692bc0a09d61d785782
change-id: 20240324-b4-for-netnext-mt7530-phy-addr-from-dt-and-simplify-core-ops-64476588ebea

Best regards,

Comments

patchwork-bot+netdevbpf@kernel.org April 23, 2024, 9 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Thu, 18 Apr 2024 08:35:29 +0300 you wrote:
> This patch series makes the driver read the PHY address the switch listens
> on from the device tree which, in result, brings support for MT7530
> switches listening on a different PHY address than 31. And the patch series
> simplifies the core operations.
> 
> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/2] net: dsa: mt7530-mdio: read PHY address of switch from device tree
    https://git.kernel.org/netdev/net-next/c/868ff5f4944a
  - [net-next,v3,2/2] net: dsa: mt7530: simplify core operations
    https://git.kernel.org/netdev/net-next/c/7c5e37d7ee78

You are awesome, thank you!