lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[net v3 0/1] net: ethernet: adi: adin1110: Fix notifiers
Date
ADIN1110 was registering netdev_notifiers on each device probe.
This leads to warnings/probe failures because of double registration
of the same notifier when to adin1110/2111 devices are connected to
the same system.

Move the registration of netdev_notifiers in module init call,
in this way multiple driver instances can use the same notifiers.


Alexandru Tachici (1):
net: ethernet: adi: adin1110: Fix notifiers

Changelog v2 -> v3:
- moved spi_driver registration after nofiers registration in order to avoid
a small window where events could be lost

drivers/net/ethernet/adi/adin1110.c | 32 +++++++++++++++++++++--------
1 file changed, 23 insertions(+), 9 deletions(-)

--
2.34.1

\
 
 \ /
  Last update: 2022-10-25 09:53    [W:0.059 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site