projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaefae9
)
cxgb4: notify upper drivers if the device is already up when they load
author
Dimitris Michailidis
<dm@chelsio.com>
Tue, 18 May 2010 10:07:13 +0000
(10:07 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 18 May 2010 22:16:46 +0000
(15:16 -0700)
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>
drivers/net/cxgb4/cxgb4_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/cxgb4/cxgb4_main.c
b/drivers/net/cxgb4/cxgb4_main.c
index
87161ce
..
58045b0
100644
(file)
--- a/
drivers/net/cxgb4/cxgb4_main.c
+++ b/
drivers/net/cxgb4/cxgb4_main.c
@@
-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)