summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-10-22 11:00:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-10-22 11:00:03 +0000
commit95e73c0256d19c3310af82a6d676d7906e960442 (patch)
tree299dc0226b6d3582c4979302b2686f35c9ef2e5b /sys/arch
parent16a2ac306af98f12178c0740afe139bc626dfa7a (diff)
Stop setting MIIF_AUTOTSLEEP in sxie(4)
This can lead to tsleep in an interrupt context. Tested by and ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/armv7/sunxi/sxie.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/armv7/sunxi/sxie.c b/sys/arch/armv7/sunxi/sxie.c
index cc5c137f04a..79af320f532 100644
--- a/sys/arch/armv7/sunxi/sxie.c
+++ b/sys/arch/armv7/sunxi/sxie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sxie.c,v 1.22 2016/09/11 21:44:30 kettenis Exp $ */
+/* $OpenBSD: sxie.c,v 1.23 2016/10/22 11:00:02 jsg Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2013 Artturi Alm
@@ -258,7 +258,6 @@ sxie_attach(struct device *parent, struct device *self, void *aux)
mii->mii_readreg = sxie_miibus_readreg;
mii->mii_writereg = sxie_miibus_writereg;
mii->mii_statchg = sxie_miibus_statchg;
- mii->mii_flags = MIIF_AUTOTSLEEP;
ifmedia_init(&mii->mii_media, 0, sxie_ifm_change, sxie_ifm_status);
mii_attach(self, mii, 0xffffffff, MII_PHY_ANY, MII_OFFSET_ANY, 0);