summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-05 12:00:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-05 13:11:46 +0200
commit07176074bdfb53946e277e046ca3e2bc77726bf7 (patch)
treed21b65e54e1358a8674309fb2e7d76500f88de83
parent9907ae4070140fe2ff09506d7b98d5af3ba4ca6b (diff)
downloadrtems-libbsd-07176074bdfb53946e277e046ca3e2bc77726bf7.tar.bz2
if_ffec_mcf548x: Init when interface is set to UP.
Call the driver initialization function if the interface is set to UP.
-rw-r--r--rtemsbsd/sys/dev/ffec/if_ffec_mcf548x.c8
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 93e4a62c..0e6b0809 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);