git: re: Leverage Realtek driver's chip/PHY initialization/reset.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Nov 23 05:34:38 PST 2016


commit e5a5a436e60ab4219abf38434ce1022d4f7c2ad7
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Nov 3 14:16:26 2016 +0800

    re: Leverage Realtek driver's chip/PHY initialization/reset.
    
    It is mainly used to solve all kinds of weirdness, e.g. hanging after
    watchdog timeout, and PHY read failure, we have encountered so far on
    these chips.
    
    The DEVMETHODs, ifnet setup, and data path are still ours.  miibus(4)
    is no longer used, ifmedia(4) is used directly.
    
    NOTE: This change drops the 8139C+ and 8169 w/ external PHY support,
    which are deemed to be too old.
    
    Realtek's driver is taken from their website: version 1.92 (2016/10/25).
    
    Tested-by: dillon, zrj

Summary of changes:
 share/man/man4/re.4                                |    80 +-
 sys/bus/pci/pcidevs                                |     1 +
 sys/conf/files                                     |     1 +
 sys/dev/netif/mii_layer/rgephy.c                   |     2 -
 sys/dev/netif/mii_layer/rgephyreg.h                |    13 +
 sys/dev/netif/re/Makefile                          |     4 +-
 sys/dev/netif/re/if_re.c                           |  1702 +-
 sys/dev/netif/re/if_rereg.h                        |   443 +-
 sys/dev/netif/re/if_revar.h                        |    65 +-
 sys/dev/netif/re/re.c                              | 22737 +++++++++++++++++++
 sys/dev/netif/re/re.h                              |  1135 +
 .../inf-parse.y => sys/dev/netif/re/re_dragonfly.h |   109 +-
 12 files changed, 24319 insertions(+), 1973 deletions(-)
 create mode 100755 sys/dev/netif/re/re.c
 create mode 100755 sys/dev/netif/re/re.h
 copy usr.sbin/ndiscvt/inf-parse.y => sys/dev/netif/re/re_dragonfly.h (57%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e5a5a436e60ab4219abf38434ce1022d4f7c2ad7


-- 
DragonFly BSD source repository


More information about the Commits mailing list