xtensa: iss: clean up per-device locking in network driver
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 8 Apr 2022 08:56:53 +0000 (01:56 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:20 +0000 (19:51 -0700)
commitb7a861a6c3fb8903d4806a12b9ec7806472faa9a
treeea28eb3e0e18a6a4ea457aa248fabe03cb5f013f
parentfd16501614dd590a3478f1a0ac3257d1cd5cf909
xtensa: iss: clean up per-device locking in network driver

Per-device locking in the ISS network driver is used to protect poll
timer and stats updates. Stat collection is not protected.
Remove per-device locking everywhere except the stats updates. Replace
ndo_get_stats callback with ndo_get_stats64 and use proper locking there
as well.
As a side effect this fixes possible deadlock between iss_net_close
and iss_net_timer.

Reported by: Duoming Zhou <duoming@zju.edu.cn>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/iss/network.c