Re: cvs commit: src/sys/dev/age if_age.c if_agereg.h if_agevar.h

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Fri, 18 Jul 2008 09:31:13 +0900
On Thu, Jul 17, 2008 at 04:56:30PM -0700, Andrew Thompson wrote:
 > On Mon, May 19, 2008 at 01:39:59AM +0000, Pyun YongHyeon wrote:
 > > yongari     2008-05-19 01:39:59 UTC
 > > 
 > >   FreeBSD src repository
 > > 
 > >   Added files:
 > >     sys/dev/age          if_age.c if_agereg.h if_agevar.h 
 > >   Log:
 > >   Add age(4), a driver for Attansic/Atheros L1 gigabit ethernet
 > >   controller.
 > 
 > +static void
 > +age_phy_reset(struct age_softc *sc)
 > +{
 > +
 > +        /* Reset PHY. */
 > +        CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_RST);
 > +        pause("agephy", hz / 1000);
 > +        CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_CLR);
 > +        pause("agephy", hz / 1000);
 > +}
 > 
 > This will panic if hz < 1000, perhaps a DELAY(1) is better?

Ah, yes. I'll fix that. Thanks a lot!

 > 
 > 
 > Andrew

-- 
Regards,
Pyun YongHyeon
Received on Thu Jul 17 2008 - 22:58:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC