mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
cxgb4: notify upper drivers if the device is already up when they load
Upper layer drivers aren't notified that a device is ready if their modules load after the device becomes ready. Add the missing notification. Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aaefae9b32
commit
e29f5dbc9e
1 changed files with 3 additions and 0 deletions
|
@ -2327,6 +2327,9 @@ static void uld_attach(struct adapter *adap, unsigned int uld)
|
|||
register_netevent_notifier(&cxgb4_netevent_nb);
|
||||
netevent_registered = true;
|
||||
}
|
||||
|
||||
if (adap->flags & FULL_INIT_DONE)
|
||||
ulds[uld].state_change(handle, CXGB4_STATE_UP);
|
||||
}
|
||||
|
||||
static void attach_ulds(struct adapter *adap)
|
||||
|
|
Loading…
Reference in a new issue