From: Dimitris Michailidis Date: Tue, 18 May 2010 10:07:13 +0000 (+0000) Subject: cxgb4: notify upper drivers if the device is already up when they load X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e29f5dbc9e9719af158a960e5c1d16f32740ebc3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) 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)