linux/drivers/net
Vladimir Oltean c50376783f net: dsa: sja1105: skip CGU configuration if it's unnecessary
There are two distinct code paths which enter sja1105_clocking.c, one
through sja1105_clocking_setup() and the other through
sja1105_clocking_setup_port():

sja1105_static_config_reload      sja1105_setup
              |                         |
              |      +------------------+
              |      |
              v      v
   sja1105_clocking_setup               sja1105_adjust_port_config
                 |                                   |
                 v                                   |
      sja1105_clocking_setup_port <------------------+

As opposed to SJA1105, the SJA1110 does not need any configuration of
the Clock Generation Unit in order for xMII ports to work. Just RGMII
internal delays need to be configured, and that is done inside
sja1105_clocking_setup_port for the RGMII ports.

So this patch introduces the concept of a "reserved address", which the
CGU configuration functions from sja1105_clocking.c must check before
proceeding to do anything. The SJA1110 will have reserved addresses for
the CGU PLLs for MII/RMII/RGMII.

Additionally, make sja1105_clocking_setup() a function pointer so it can
be overridden by the SJA1110. Even though nothing port-related needs to
be done in the CGU, there are some operations such as disabling the
watchdog clock which are unique to the SJA1110.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-24 13:59:03 -07:00
..
appletalk net: appletalk: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
arcnet
bonding net: bonding: bond_alb: Fix some typos in bond_alb.c 2021-05-21 13:30:41 -07:00
caif caif_virtio: Fix some typos in caif_virtio.c 2021-05-21 13:29:49 -07:00
can can: m_can: m_can_tx_work_queue(): fix tx_skb race condition 2021-05-06 09:24:07 +02:00
dsa net: dsa: sja1105: skip CGU configuration if it's unnecessary 2021-05-24 13:59:03 -07:00
ethernet net: hns3: use HCLGE_VPORT_STATE_PROMISC_CHANGE to replace HCLGE_STATE_PROMISC_CHANGED 2021-05-24 13:24:09 -07:00
fddi net: fddi: skfp: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
fjes
hamradio net: hamradio: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
hippi
hyperv hv_netvsc: Make netvsc/VF binding check both MAC and serial number 2021-04-25 18:19:23 -07:00
ieee802154
ipa net: ipa: fix inter-EE IRQ register definitions 2021-05-06 16:32:10 -07:00
ipvlan
mdio net: mdio: ipq8064: enlarge sleep after read/write operation 2021-05-14 15:31:45 -07:00
mhi
netdevsim netdevsim: Only use sampling truncation length when valid 2021-04-22 13:23:56 -07:00
pcs net: pcs: Introducing support for DWC xpcs Energy Efficient Ethernet 2021-05-17 15:53:58 -07:00
phy net: phy: Fix inconsistent indenting 2021-05-21 13:54:16 -07:00
plip
ppp net: ppp: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
slip net: slip: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
team
usb net: cdc_ncm: use DEVICE_ATTR_RW macro 2021-05-20 15:50:54 -07:00
vmxnet3
wan net: wan: add necessary () to macro argument 2021-05-21 13:26:41 -07:00
wireguard
wireless Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
wwan net: wwan: Add WWAN port type attribute 2021-05-17 15:39:49 -07:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-26 12:00:00 -07:00
gtp.c
ifb.c ifb: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c macvlan: Use 'hash' iterators to simplify code 2021-04-27 14:03:11 -07:00
macvtap.c
Makefile
mdio.c
mii.c mii: remove leading spaces before tabs 2021-05-20 15:10:57 -07:00
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: use DEVICE_ATTR_RO macro 2021-05-19 12:01:44 -07:00
veth.c
virtio_net.c virtio-net: get build_skb() buf by data ptr 2021-05-13 15:51:14 -07:00
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c