<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/bce, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2026-04-01T07:29:46Z</updated>
<entry>
<title>bce: Fix SYSCTL_IN error check in bce_sysctl_nvram_write()</title>
<updated>2026-04-01T07:29:46Z</updated>
<author>
<name>Weixie Cui</name>
<email>cuiweixie@gmail.com</email>
</author>
<published>2026-03-31T13:51:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f3b59bf28504f901f4fcb568004a92c02fa371ed'/>
<id>urn:sha1:f3b59bf28504f901f4fcb568004a92c02fa371ed</id>
<content type='text'>
The condition after SYSCTL_IN was inverted: success (error == 0) returned
immediately and skipped the NVRAM write path, while failure fell through.
Return only when SYSCTL_IN fails.

Signed-off-by: Weixie Cui &lt;cuiweixie@gmail.com&gt;
Reviewed-by: ngie
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2113
</content>
</entry>
<entry>
<title>bce(4): Fix a typo in a source code comment</title>
<updated>2025-08-25T08:45:32Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-08-25T08:45:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a848c85d27c8f8d6b8394a372417703a2969314c'/>
<id>urn:sha1:a848c85d27c8f8d6b8394a372417703a2969314c</id>
<content type='text'>
- s/firwmare/firmware/

MFC after:	3 days
</content>
</entry>
<entry>
<title>bce: make compile with BCE_DEBUG</title>
<updated>2025-02-02T16:57:01Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-02-02T16:57:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5a8caf9bfae280614ebd98df894a9d895aacd876'/>
<id>urn:sha1:5a8caf9bfae280614ebd98df894a9d895aacd876</id>
<content type='text'>
Builds now with BCE_DEBUG defined. All bets are of as to whether or not
it works though. This is not the default, and likely quite a rare config
given (a) it's been broken for years and (b) this is an old card people
aren't actively debugging anymore. I don't have the hardware to test it,
though I've not changed anything in the BCE_DEBUG undefined case.

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>bce: Fix register dumping to skip blank area</title>
<updated>2025-02-02T16:49:15Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2025-02-02T16:49:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5deab77bb6d119dd171385d144a622e7ba7108fe'/>
<id>urn:sha1:5deab77bb6d119dd171385d144a622e7ba7108fe</id>
<content type='text'>
When compiling with debug enabled, this produces an always false
warning. It's clear that this was to skip ranges that aren't used when
dumping the registers, so change the &amp;&amp; to || to skip things properly.

PR: 200984
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>bus_generic_detach: Delete children after detaching them</title>
<updated>2025-01-02T18:21:30Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-01-02T18:21:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b196276c20b577b364372f1aa1a646b9ce34bf5c'/>
<id>urn:sha1:b196276c20b577b364372f1aa1a646b9ce34bf5c</id>
<content type='text'>
This provides better semantics as a standalone DEVMETHOD for
device_attach as bus drivers should remove child devices they created
as part of detach cleanup.  The implementation calls
bus_detach_children() first to permit child devices an opportunity to
veto the detach operation.  If that succeeds, device_delete_children()
is used to delete the child devices.

This requires fixing various drivers that were deleting devices
explicitly (via a device_t pointer cached in the softc) after calling
bus_generic_detach to stop doing that and just rely on
bus_generic_detach to remove child devices.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47959
</content>
</entry>
<entry>
<title>net: Remove unneeded NULL check for the allocated ifnet</title>
<updated>2024-06-28T10:16:29Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-06-28T10:16:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=aa3860851b9f6a6002d135b1cac7736e0995eedc'/>
<id>urn:sha1:aa3860851b9f6a6002d135b1cac7736e0995eedc</id>
<content type='text'>
Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740
</content>
</entry>
<entry>
<title>bce: Use device_set_descf()</title>
<updated>2024-06-16T20:37:26Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-06-05T19:22:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c0bd6ec3bb2414d23f3013766b79eed51b31f696'/>
<id>urn:sha1:c0bd6ec3bb2414d23f3013766b79eed51b31f696</id>
<content type='text'>
No functional change intended.

MFC after:	1 week
</content>
</entry>
<entry>
<title>bce(4): Fix a typo in a kernel message</title>
<updated>2024-01-20T19:10:21Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2024-01-20T19:10:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e1c0d368d630cce01691e1967ada9f36d6b8c751'/>
<id>urn:sha1:e1c0d368d630cce01691e1967ada9f36d6b8c751</id>
<content type='text'>
- s/adddress/address/

MFC after:	5 days
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:11Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=95ee2897e98f5d444f26ed2334cc7c439f9c16c6'/>
<id>urn:sha1:95ee2897e98f5d444f26ed2334cc7c439f9c16c6</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
</feed>
