Home
last modified time | relevance | path

Searched hist:abfb228ae64268991653a6e73eb203c759764075 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_spi.cdiff 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 Dsja1105.hdiff 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>