]> git.baikalelectronics.ru Git - kernel.git/commit
phy: generate swphy registers on the fly
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 23 Jun 2016 13:50:20 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jun 2016 14:40:57 +0000 (10:40 -0400)
commitae3bdec4ba8743f998980f0010212653bc7c3aa4
tree7c6467d44f22003b8fc5db8dda45888b4cd7c2ae
parentb305c9721be25bbc198433546cee51937c6d0572
phy: generate swphy registers on the fly

Generate software phy registers as and when requested, rather than
duplicating the state in fixed_phy.  This allows us to eliminate
the duplicate storage of of the same data, which is only different
in format.

As fixed_phy_update_regs() no longer updates register state, rename
it to fixed_phy_update().

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c
drivers/net/phy/swphy.c
drivers/net/phy/swphy.h