diff options
author | Dimitris Michailidis <dm@chelsio.com> | 2010-05-18 06:07:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 18:16:46 -0400 |
commit | e29f5dbc9e9719af158a960e5c1d16f32740ebc3 (patch) | |
tree | b3c92264d425d81cbcf148e559b8be0ba4046b7e /drivers/net/cxgb4 | |
parent | aaefae9b32b2cba7350a4d524357168119372e51 (diff) |
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>
Diffstat (limited to 'drivers/net/cxgb4')
-rw-r--r-- | drivers/net/cxgb4/cxgb4_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c index 87161ceb3ea7..58045b00cf40 100644 --- 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) | |||
2327 | register_netevent_notifier(&cxgb4_netevent_nb); | 2327 | register_netevent_notifier(&cxgb4_netevent_nb); |
2328 | netevent_registered = true; | 2328 | netevent_registered = true; |
2329 | } | 2329 | } |
2330 | |||
2331 | if (adap->flags & FULL_INIT_DONE) | ||
2332 | ulds[uld].state_change(handle, CXGB4_STATE_UP); | ||
2330 | } | 2333 | } |
2331 | 2334 | ||
2332 | static void attach_ulds(struct adapter *adap) | 2335 | static void attach_ulds(struct adapter *adap) |