]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: sja1105: Simplify reset handling
authorVladimir Oltean <olteanv@gmail.com>
Tue, 12 Nov 2019 22:16:41 +0000 (00:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2019 23:11:17 +0000 (15:11 -0800)
commitabfb228ae64268991653a6e73eb203c759764075
tree91483a7f8ab8efa82bdaf1f34db2beae7a0fb4df
parentccb689939280b9dfdedee8b8b45e616e42696609
net: dsa: sja1105: Simplify reset handling

We don't really need 10k species of reset. Remove everything except cold
reset which is what is actually used. Too bad the hardware designers
couldn't agree to use the same bit field for rev 1 and rev 2, so the
(*reset_cmd) function pointer is there to stay.

However let's simplify the prototype and give it a struct dsa_switch (we
want to avoid forward-declarations of structures, in this case struct
sja1105_private, wherever we can).

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_spi.c