netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: phy: lan87xx: use genphy_read_master_slave function
@ 2022-03-07 16:15 Arun Ramadoss
  2022-03-07 16:15 ` [PATCH net-next 1/2] net: phy: exported the " Arun Ramadoss
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arun Ramadoss @ 2022-03-07 16:15 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: Andrew Lunn, Heiner Kallweit, Russell King, Jakub Kicinski,
	David S . Miller, UNGLinuxDriver

LAN87xx T1 Phy has the same register field as gigabit phy for reading the
master slave configuration. But the genphy_read_master_slave function has a
check of gigabit phy. So refactored the function in such a way, moved the speed
check to the genphy_read_status function. Analyzed the nxp-tja11xx function for
refactoring, but the register for configuring master/slave is nxp specific
which is not extended phy register.
And analyzed the reusing genphy_setup_master_slave, but for LAN87xx
MASTER_ENABLE is always 1 and Preferred state is always 0. So, I didn't try to
change it.

Arun Ramadoss (2):
  net: phy: exported the genphy_read_master_slave function
  net: phy: lan87xx: use genphy_read_master_slave in read_status

 drivers/net/phy/microchip_t1.c | 30 +-----------------------------
 drivers/net/phy/phy_device.c   | 19 +++++++++----------
 include/linux/phy.h            |  1 +
 3 files changed, 11 insertions(+), 39 deletions(-)


base-commit: 57d29a2935c9aab0aaef6264bf6a58aad3859e7c
-- 
2.33.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-08 14:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-07 16:15 [PATCH net-next 0/2] net: phy: lan87xx: use genphy_read_master_slave function Arun Ramadoss
2022-03-07 16:15 ` [PATCH net-next 1/2] net: phy: exported the " Arun Ramadoss
2022-03-07 16:29   ` Andrew Lunn
2022-03-07 16:15 ` [PATCH net-next 2/2] net: phy: lan87xx: use genphy_read_master_slave in read_status Arun Ramadoss
2022-03-08 14:30 ` [PATCH net-next 0/2] net: phy: lan87xx: use genphy_read_master_slave function patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).