[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221020130850.18780-1-alexandru.tachici@analog.com>
Date: Thu, 20 Oct 2022 16:08:50 +0300
From: Alexandru Tachici <alexandru.tachici@...log.com>
To: <linux@...linux.org.uk>
CC: <alexandru.tachici@...log.com>, <andrew@...n.ch>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<lennart@...omain.com>, <linux-kernel@...r.kernel.org>,
<netdev@...r.kernel.org>, <pabeni@...hat.com>
Subject: Re: [net v2 1/1] net: ethernet: adi: adin1110: Fix notifiers
> > +
> > + err = adin1110_setup_notifiers();
> > + if (err) {
> > + spi_unregister_driver(&adin1110_driver);
> > + return err;
> > + }
>
> And you setup the notifier after, so there is a window when
> notifications could be lost. Is this safe?
At boot time this should be ok. If the module is inserted and then user starts
bridging/bonding etc. will lose some events. Will move notifiers registration
before registering device. Should be fine as the driver checks in all callbacks
if it is meant for him or not the event.
Thanks,
Alexandru
Powered by blists - more mailing lists