Vladimir Oltean 96980ff7c2 net: mscc: ocelot: make access to STAT_VIEW sleepable again
To support SPI-controlled switches in the future, access to
SYS_STAT_CFG_STAT_VIEW needs to be done outside of any spinlock
protected region, but it still needs to be serialized (by a mutex).

Split the ocelot->stats_lock spinlock into a mutex that serializes
indirect access to hardware registers (ocelot->stat_view_lock) and a
spinlock that serializes access to the u64 ocelot->stats array.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-09-09 10:59:12 +01:00
..
2022-08-04 12:12:54 -07:00
2022-08-04 19:30:35 -07:00
2022-07-17 17:14:30 -07:00
2022-08-04 19:30:35 -07:00
2022-08-06 16:38:17 -07:00
2022-08-31 09:54:14 -07:00
2022-08-05 10:07:23 -07:00
2022-09-03 13:09:46 -07:00
2022-08-18 17:37:22 +02:00
2022-08-26 11:05:54 -07:00
2022-08-04 19:41:09 -07:00
2022-08-06 10:25:16 -07:00
2022-09-02 15:03:12 -07:00
2022-08-05 14:13:45 -07:00
2022-08-12 09:50:34 -07:00
2022-09-02 16:44:30 -07:00
2022-08-04 12:12:54 -07:00
2022-08-03 17:49:38 +02:00
2022-09-02 10:32:30 -07:00
2022-08-31 12:54:48 +01:00
2022-09-02 10:35:51 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-16 11:36:38 -07:00
2022-08-05 10:02:33 -07:00
2022-08-09 00:56:41 +02:00
2022-08-20 11:29:01 -07:00
2022-08-16 11:40:15 -07:00
2022-08-12 09:50:34 -07:00
2022-08-08 15:04:04 -07:00
2022-09-03 13:23:11 -07:00
2022-08-04 12:01:42 -07:00