<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/mii, branch release/9.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F9.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-11-06T21:09:10Z</updated>
<entry>
<title>MFC: r226995, r227042</title>
<updated>2011-11-06T21:09:10Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-11-06T21:09:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=760aa6fde505699baa4d096bdcc573d6c05e7f14'/>
<id>urn:sha1:760aa6fde505699baa4d096bdcc573d6c05e7f14</id>
<content type='text'>
- Import the common MII bitbang'ing code from NetBSD and convert drivers to
  take advantage of it instead of duplicating it. This reduces the size of
  the i386 GENERIC kernel by about 8k. The only potential in-tree users left
  unconverted are ed(4) and xe(4). Xe(4) generally should be changed to use
  miibus(4) instead of implementing PHY handling on its own, as otherwise it
  makes not much sense to add a dependency on miibus(4)/mii_bitbang(4) to it
  just for the MII bitbang'ing code. Ed(4) has some chip specific things
  interwinded with the MII bitbang'ing code and it's unclear whether it can
  be converted to common code, at least not without thorough testing of all
  the various chips supported by ed(4).
  The common MII bitbang'ing code also is useful in the embedded space for
  using GPIO pins to implement MII access.
- Based on lessons learnt with dc(4) (see r185750), add bus barriers to the
  MII bitbang read and write functions of the other drivers converted in
  order to ensure the intended ordering. Given that register access via an
  index register as well as register bank/window switching is subject to the
  same problem, also add bus barriers to the respective functions of smc(4),
  tl(4) and xl(4).
- Sprinkle some const.

Thanks to the following testers:
Andrew Bliznak (nge(4)), nwhitehorn@ (bm(4)), yongari@ (sis(4) and ste(4))
Thanks to Hans-Joerg Sirtl for supplying hardware to test stge(4).

Reviewed by:	yongari (subset of drivers)
Approved by:	re (kib)
Obtained from:	NetBSD (partially)
</content>
</entry>
<entry>
<title>MFC: r226154, r226165</title>
<updated>2011-11-06T17:23:49Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-11-06T17:23:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42d9ccc9c871ec3dc35ebcfde15d3c4a3a8aba64'/>
<id>urn:sha1:42d9ccc9c871ec3dc35ebcfde15d3c4a3a8aba64</id>
<content type='text'>
- Follow the lead of dcphy(4) and pnphy(4) and move the reminder of the PHY
  drivers that only ever attach to a particular MAC driver, i.e. inphy(4),
  ruephy(4) and xlphy(4), to the directory where the respective MAC driver
  lives and only compile it into the kernel when the latter is also there,
  also removing it from miibus.ko and moving it into the module of the
  respective MAC driver.
- While at it, rename exphy.c, which comes from NetBSD where the MAC driver
  it corresponds to also is named ex(4) instead of xl(4) but that in FreeBSD
  actually identifies itself as xlphy(4), and its function names accordingly
  for consistency.
- Additionally while at it, fix some minor style issues like whitespace
  in the register headers and add multi-inclusion protection to inphyreg.h.

Approved by:	re (kib)
</content>
</entry>
<entry>
<title>r221812 reveals that at least some Broadcom PHYs default to being not only</title>
<updated>2011-08-19T19:12:58Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-08-19T19:12:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e3f30748689bbb1a8c506c8e410fad2332916f2'/>
<id>urn:sha1:6e3f30748689bbb1a8c506c8e410fad2332916f2</id>
<content type='text'>
isolated but also powered down after a reset and while they just work fine
[sic] when both is the case they don't if they are only deisolate but still
powered down. So in order to put PHYs in an overall normal operation mode
for the common case, ensure in mii_phy_reset() that they are not powered
down after a reset. Unfortunately, this only helps in case of BCM5421,
while BCM5709S apparently only work when they remain isolated and powered
down after a reset. So don't call mii_phy_reset() in brgphy_reset() and
implement the reset locally leaving the problematic bits alone. Effectively
this bypasses r221812 for brgphy(4).
Thanks to Justin Hibbits for doing a binary search in order to identify
the problematic commit.

PR:		157405, 158156
Reviewed by:	yongari (mii_phy_reset() part)
Approved by:	re (kib)
MFC after:	3 days
</content>
</entry>
<entry>
<title>Add detection for the Marvel 88E1149R and treat it just like the</title>
<updated>2011-06-30T05:20:02Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2011-06-30T05:20:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2033ea22baa98fcc25fac8acda3482b2ab935bf'/>
<id>urn:sha1:f2033ea22baa98fcc25fac8acda3482b2ab935bf</id>
<content type='text'>
88E1149.
</content>
</entry>
<entry>
<title>- There's no need for nibbletab to be static, it's const however.</title>
<updated>2011-05-14T20:31:04Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-05-14T20:31:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=087a4650e2f4affdf81f1a74c1d5a171283b925e'/>
<id>urn:sha1:087a4650e2f4affdf81f1a74c1d5a171283b925e</id>
<content type='text'>
- Fix whitespace.
</content>
</entry>
<entry>
<title>Explicitly clear 1000baseT control register for F1 PHY used in</title>
<updated>2011-05-12T17:11:31Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2011-05-12T17:11:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6d9580d0d82c8ddd45556c34b1030fb5936e632'/>
<id>urn:sha1:f6d9580d0d82c8ddd45556c34b1030fb5936e632</id>
<content type='text'>
AR8132 FastEthernet controller. The PHY has no ability to
establish a gigabit link. Previously only link parters which
support down-shifting was able to establish link.
This change should fix a long standing link establishment issue of
AR8132.

PR:		kern/156935
MFC after:	1 week
</content>
</entry>
<entry>
<title>Some PHYs like the Level One LXT970 optionally can default to isolation</title>
<updated>2011-05-12T14:16:07Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-05-12T14:16:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7bd2d458c25fa25523aacbbcd33b3565cb5d6af4'/>
<id>urn:sha1:7bd2d458c25fa25523aacbbcd33b3565cb5d6af4</id>
<content type='text'>
after rest, in which case we may need to deisolate it.
Tested by:	nwhitehorn

MFC after	1 week
</content>
</entry>
<entry>
<title>Fix whitespace.</title>
<updated>2011-05-10T18:41:46Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-05-10T18:41:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d648297f32757dc3348386b5b16c6b804f224e8e'/>
<id>urn:sha1:d648297f32757dc3348386b5b16c6b804f224e8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a bug in r221407; this driver doesn't add the media itself.</title>
<updated>2011-05-10T18:38:01Z</updated>
<author>
<name>Marius Strobl</name>
<email>marius@FreeBSD.org</email>
</author>
<published>2011-05-10T18:38:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=693ad91c2b7bfd08f04e5adc40cc5acf7c7fc08e'/>
<id>urn:sha1:693ad91c2b7bfd08f04e5adc40cc5acf7c7fc08e</id>
<content type='text'>
PR:	156893
</content>
</entry>
<entry>
<title>Recognize BCM5719C PHY.</title>
<updated>2011-05-09T20:20:43Z</updated>
<author>
<name>Pyun YongHyeon</name>
<email>yongari@FreeBSD.org</email>
</author>
<published>2011-05-09T20:20:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c83f2f32b4a33a47d407d9843fbd7dc9ca32299'/>
<id>urn:sha1:4c83f2f32b4a33a47d407d9843fbd7dc9ca32299</id>
<content type='text'>
Submitted by:	Geans Pin at Broadcom
</content>
</entry>
</feed>
