Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip dont clear EMAC_STAT_MDIO on irq, as w...
details: https://anonhg.NetBSD.org/src/rev/9a3262329a9e
branches: trunk
changeset: 335405:9a3262329a9e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Jan 05 23:00:52 2015 +0000
description:
dont clear EMAC_STAT_MDIO on irq, as we poll this bit in readreg/writereg
diffstat:
sys/arch/arm/rockchip/rockchip_emac.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 95e109d9711d -r 9a3262329a9e sys/arch/arm/rockchip/rockchip_emac.c
--- a/sys/arch/arm/rockchip/rockchip_emac.c Mon Jan 05 22:45:09 2015 +0000
+++ b/sys/arch/arm/rockchip/rockchip_emac.c Mon Jan 05 23:00:52 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rockchip_emac.c,v 1.4 2015/01/05 22:16:49 jmcneill Exp $ */
+/* $NetBSD: rockchip_emac.c,v 1.5 2015/01/05 23:00:52 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_rkemac.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.4 2015/01/05 22:16:49 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_emac.c,v 1.5 2015/01/05 23:00:52 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -384,7 +384,7 @@
if (!stat)
return 0;
- EMAC_WRITE(sc, EMAC_STAT_REG, stat);
+ EMAC_WRITE(sc, EMAC_STAT_REG, stat & ~EMAC_STAT_MDIO);
if (stat & EMAC_STAT_TXINT)
rkemac_txintr(sc);
Home |
Main Index |
Thread Index |
Old Index