]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: Extend device data ready for adding a new hardware
authorLanden Chao <landen.chao@mediatek.com>
Fri, 11 Sep 2020 13:48:52 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 23:30:38 +0000 (16:30 -0700)
commit6c0f2c6b48c208a21b7c1a3c7ab788dd2ae6cf55
tree3c25938fe5dad1624fa572edf31b3c7268ea0aab
parent65e6fa1c107567e2257c0aca23807b469232270a
net: dsa: mt7530: Extend device data ready for adding a new hardware

Add a structure holding required operations for each device such as device
initialization, PHY port read or write, a checker whether PHY interface is
supported on a certain port, MAC port setup for either bus pad or a
specific PHY interface.

The patch is done for ready adding a new hardware MT7531, and keep the
same setup logic of existing hardware.

Signed-off-by: Landen Chao <landen.chao@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h