]> git.baikalelectronics.ru Git - kernel.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)
commitf1fba4d6aa8b59c9afce55eba7eb972f1eb97e54
tree91483a7f8ab8efa82bdaf1f34db2beae7a0fb4df
parentacec382affceb79aceb8e40335c32c8870133ea1
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