]> 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)
commit7e05d9efd891e7011879464e9708bccb9b067a5e
tree91483a7f8ab8efa82bdaf1f34db2beae7a0fb4df
parent0bd2c36437abf7ac9135fe6fabc54d11c18a70d8
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