Searched hist:abfb228ae64268991653a6e73eb203c759764075 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_spi.c | diff abfb228ae64268991653a6e73eb203c759764075 Tue Nov 12 16:16:41 CST 2019 Vladimir Oltean <olteanv@gmail.com> 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>
|
H A D | sja1105.h | diff abfb228ae64268991653a6e73eb203c759764075 Tue Nov 12 16:16:41 CST 2019 Vladimir Oltean <olteanv@gmail.com> 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>
|