Marek Szyprowski
2b94f5266c
net: stmmac: Fix channel lock initialization
...
Commit 0366f7e06a6b ("net: stmmac: add ethtool support for get/set
channels") refactored channel initialization, but during that operation,
the spinlock initialization got lost. Fix this. This fixes the following
lockdep warning:
meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 1 PID: 331 Comm: kworker/1:2H Not tainted 5.9.0-rc3+ #1858
Hardware name: Hardkernel ODROID-N2 (DT)
Workqueue: kblockd blk_mq_run_work_fn
Call trace:
dump_backtrace+0x0/0x1d0
show_stack+0x14/0x20
dump_stack+0xe8/0x154
register_lock_class+0x58c/0x590
__lock_acquire+0x7c/0x1790
lock_acquire+0xf4/0x440
_raw_spin_lock_irqsave+0x80/0xb0
stmmac_tx_timer+0x4c/0xb0 [stmmac]
call_timer_fn+0xc4/0x3e8
run_timer_softirq+0x2b8/0x6c0
efi_header_end+0x114/0x5f8
irq_exit+0x104/0x110
__handle_domain_irq+0x60/0xb8
gic_handle_irq+0x58/0xb0
el1_irq+0xbc/0x180
_raw_spin_unlock_irqrestore+0x48/0x90
mmc_blk_rw_wait+0x70/0x160
mmc_blk_mq_issue_rq+0x510/0x830
mmc_mq_queue_rq+0x13c/0x278
blk_mq_dispatch_rq_list+0x2a0/0x698
__blk_mq_do_dispatch_sched+0x254/0x288
__blk_mq_sched_dispatch_requests+0x190/0x1d8
blk_mq_sched_dispatch_requests+0x34/0x70
__blk_mq_run_hw_queue+0xcc/0x148
blk_mq_run_work_fn+0x20/0x28
process_one_work+0x2a8/0x718
worker_thread+0x48/0x460
kthread+0x134/0x160
ret_from_fork+0x10/0x1c
Fixes: 0366f7e06a6b ("net: stmmac: add ethtool support for get/set channels")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20201029185011.4749-1-m.szyprowski@samsung.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-30 09:51:40 -07:00
..
2020-09-16 15:22:52 -07:00
2020-09-25 16:48:33 -07:00
2020-01-13 18:31:48 -08:00
2020-09-25 16:48:33 -07:00
2020-09-11 14:37:34 -07:00
2020-01-13 18:31:48 -08:00
2020-01-13 18:31:48 -08:00
2020-01-13 18:31:48 -08:00
2020-03-16 02:10:09 -07:00
2020-09-25 16:48:33 -07:00
2020-05-04 11:57:21 -07:00
2020-09-25 16:48:33 -07:00
2020-08-12 13:12:52 -07:00
2019-12-18 12:14:08 -08:00
2020-03-19 21:05:27 -07:00
2020-08-23 17:36:59 -05:00
2019-12-17 13:55:23 -08:00
2020-09-07 13:34:51 -07:00
2020-09-28 18:43:57 -07:00
2020-10-30 09:48:06 -07:00
2020-04-21 15:54:45 -07:00
2020-08-12 13:12:52 -07:00
2019-12-17 13:48:30 -08:00
2020-06-26 12:17:29 -07:00
2019-08-21 13:52:33 -07:00
2020-05-14 12:48:15 -07:00
2020-09-25 16:29:00 -07:00
2020-04-18 15:02:18 -07:00
2019-11-04 11:21:25 -08:00
2020-05-01 15:17:32 -07:00
2020-01-09 12:13:43 -08:00
2020-04-16 13:47:53 -07:00
2020-04-02 07:04:45 -07:00
2020-09-11 14:37:34 -07:00
2020-01-13 18:31:48 -08:00
2020-01-13 18:31:48 -08:00
2020-03-17 21:37:25 -07:00
2020-03-17 21:37:25 -07:00
2020-09-11 14:37:34 -07:00
2020-08-27 06:55:50 -07:00
2020-08-26 15:52:30 -07:00
2019-12-18 12:17:11 -08:00
2020-09-16 15:22:52 -07:00
2020-10-05 18:40:01 -07:00
2020-04-18 15:02:18 -07:00
2020-10-30 09:51:40 -07:00
2020-03-09 20:13:16 -07:00
2020-04-30 12:50:15 -07:00
2020-09-25 16:29:00 -07:00
2019-11-15 12:48:32 -08:00
2020-09-16 15:22:52 -07:00
2020-08-23 17:36:59 -05:00
2020-10-05 18:40:01 -07:00