Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Set I82579_LPI_CTRL register correctly in wm_set...



details:   https://anonhg.NetBSD.org/src/rev/6edd2ee1c22e
branches:  trunk
changeset: 838324:6edd2ee1c22e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jan 11 05:13:26 2019 +0000

description:
Set I82579_LPI_CTRL register correctly in wm_set_eee_pchlan().

diffstat:

 sys/dev/pci/if_wm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 198fe05879f6 -r 6edd2ee1c22e sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Fri Jan 11 02:57:21 2019 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Jan 11 05:13:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.615 2019/01/09 08:28:22 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.616 2019/01/11 05:13:26 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.615 2019/01/09 08:28:22 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.616 2019/01/11 05:13:26 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -15077,7 +15077,7 @@
        if ((rv = wm_read_emi_reg_locked(dev, pcs_status, &data)) != 0)
                goto release;
 
-       rv = wm_write_emi_reg_locked(dev, I82579_LPI_CTRL, lpi_ctrl);
+       rv = sc->phy.writereg_locked(dev, 1, I82579_LPI_CTRL, lpi_ctrl);
 release:
        sc->phy.release(sc);
 



Home | Main Index | Thread Index | Old Index