mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [net v4 0/1] net: ethernet: adi: adin1110: Fix notifiers
@ 2022-10-27  9:56 Alexandru Tachici
  2022-10-27  9:56 ` [net v4 1/1] " Alexandru Tachici
  2022-10-29  5:00 ` [net v4 0/1] " patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandru Tachici @ 2022-10-27  9:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: andrew, linux, davem, edumazet, kuba, pabeni, netdev, lennart

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 v3 -> v4:
- unregister notifiers in case of spi_register_driver() failure

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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-29  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27  9:56 [net v4 0/1] net: ethernet: adi: adin1110: Fix notifiers Alexandru Tachici
2022-10-27  9:56 ` [net v4 1/1] " Alexandru Tachici
2022-10-29  5:00 ` [net v4 0/1] " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®