diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-08-05 12:00:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-05 13:11:28 +0200 |
commit | 0157c5b2c12546969372b23032fb08a26a745d3b (patch) | |
tree | 68be735fe9b3757fa55620e90215e21f2f35cbdb | |
parent | 6bf772b86ce874c620609d6a0d0b8a4582f8ded4 (diff) |
Call the driver initialization function if the interface is set to UP.
-rw-r--r-- | rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c b/rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c index 67a62e11..93c24108 100644 --- a/rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c +++ b/rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c @@ -1379,6 +1379,14 @@ static int mcf548x_fec_ioctl (struct ifnet *ifp, ioctl_command_t command, caddr_ switch(command) { + case SIOCSIFFLAGS: + if (ifp->if_flags & IFF_UP) { + if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { + mcf548x_fec_init(sc); + } + } + break; + case SIO_RTEMS_SHOW_STATS: enet_stats(sc); |