#
64d1a02e |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
Check for errors from bus_generic_detach in various drivers
In some cases, move the call to bus_generic_detach earlier so that any detach failures from child devices do not leave the parent device p
Check for errors from bus_generic_detach in various drivers
In some cases, move the call to bus_generic_detach earlier so that any detach failures from child devices do not leave the parent device partially detached.
Differential Revision: https://reviews.freebsd.org/D47966
show more ...
|
#
b196276c |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
bus_generic_detach: Delete children after detaching them
This provides better semantics as a standalone DEVMETHOD for device_attach as bus drivers should remove child devices they created as part of
bus_generic_detach: Delete children after detaching them
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
show more ...
|
#
18250ec6 |
| 06-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
Replace calls to bus_generic_attach with bus_attach_children
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47675
|
#
723da5d9 |
| 06-Dec-2024 |
John Baldwin <jhb@FreeBSD.org> |
Replace calls to bus_generic_probe with bus_identify_children
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47674
|
Revision tags: release/14.2.0, release/13.4.0 |
|
#
aa386085 |
| 28-Jun-2024 |
Zhenlei Huang <zlei@FreeBSD.org> |
net: Remove unneeded NULL check for the allocated ifnet
Change 4787572d0580 made if_alloc_domain() never fail, then also do the wrappers if_alloc(), if_alloc_dev(), and if_gethandle().
No functiona
net: Remove unneeded NULL check for the allocated ifnet
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
show more ...
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0 |
|
#
b29549c7 |
| 10-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
etherswitch: Fix leftovers from IfAPI conversion
Sponsored by: Juniper Networks, Inc.
|
#
74c592c0 |
| 31-Jan-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
etherswitch: Clean up whitespace after IfAPI conversion
Sponsored by: Juniper Networks, Inc. Fixes: 2e6a8c1ae
|
Revision tags: release/12.4.0 |
|
#
2e6a8c1a |
| 30-May-2022 |
Justin Hibbits <jhibbits@FreeBSD.org> |
Mechanically convert etherswitch drivers to IfAPI
Reviewed by: kd Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37813
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
21cc0918 |
| 17-Aug-2021 |
Elliott Mitchell <ehem+freebsd@m5p.com> |
sys: Nuke double-semicolons
A distinct number of double-semicolons have ended up in FreeBSD. Take a pass at getting rid of many of these harmless typos.
Reviewed by: emaste, rrs Pull Request: http
sys: Nuke double-semicolons
A distinct number of double-semicolons have ended up in FreeBSD. Take a pass at getting rid of many of these harmless typos.
Reviewed by: emaste, rrs Pull Request: https://github.com/freebsd/freebsd-src/pull/609 Differential Revision: https://reviews.freebsd.org/D31716
show more ...
|
#
42726c2f |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
etherswitch drivers: Remove unused devclass arguments to DRIVER_MODULE.
|
#
829a13fa |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused etherswitch_devclass.
|
#
3e38757d |
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused miibus_devclass and miibus_fdt_devclass.
|
#
0f84feb9 |
| 26-Oct-2021 |
Kornel Duleba <mindal@semihalf.com> |
felix: Add support for PHY interrupts
- Replace miibus with newly created miibus_fdt. - Use generic passthrough resource allocation devmethods.
Obtained from: Semihalf Sponsored by: Alstom Group
|
#
782cd815 |
| 09-Nov-2021 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
etherswitch/felix: remove unused function
Remove unused file-local static function felix_phyforport() which was missed in 29cf6a79acb7 to avoid compile time warning.
Reviewed by: Kornel Duleba (min
etherswitch/felix: remove unused function
Remove unused file-local static function felix_phyforport() which was missed in 29cf6a79acb7 to avoid compile time warning.
Reviewed by: Kornel Duleba (mindal semihalf.com) Differential Revision: https://reviews.freebsd.org/D32906
show more ...
|
#
d88aecce |
| 25-Oct-2021 |
Kornel Duleba <mindal@semihalf.com> |
felix: Add a sysctl to control timer routine frequency
Driver polls status of all PHYs connected to the switch in a fixed interval. Add a sysctl that allows to control frequency of that. The value i
felix: Add a sysctl to control timer routine frequency
Driver polls status of all PHYs connected to the switch in a fixed interval. Add a sysctl that allows to control frequency of that. The value is expressed in ticks and defaults to "hz", or 1 second.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
29cf6a79 |
| 26-Oct-2021 |
Kornel Duleba <mindal@semihalf.com> |
felix: Use internal MDIO regs for PHY communication
Previously we would use an external MDIO device found on the PCI bus. Switch to using MDIO mapped in a separate BAR of the switch device. It is mu
felix: Use internal MDIO regs for PHY communication
Previously we would use an external MDIO device found on the PCI bus. Switch to using MDIO mapped in a separate BAR of the switch device. It is much easier this way since we don't have to depend on another driver anymore.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
dfcaa2c1 |
| 28-Jul-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc_mdio: Support building the driver as a loadable module.
After recent arm64 GENERIC config cleanup the ENETC MDIO in NXP LS1028A SoC should support being loaded as a module.
Obtained from: Sem
enetc_mdio: Support building the driver as a loadable module.
After recent arm64 GENERIC config cleanup the ENETC MDIO in NXP LS1028A SoC should support being loaded as a module.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
451bcf1b |
| 09-Jun-2021 |
Marcin Wojtas <mw@FreeBSD.org> |
Introduce driver for Freescale Felix switch
It is found on boards equipped with LS1028A SoC. 802.1q VLAN grouping is supported. An external MDIO device is used for communicating with PHYs. The drive
Introduce driver for Freescale Felix switch
It is found on boards equipped with LS1028A SoC. 802.1q VLAN grouping is supported. An external MDIO device is used for communicating with PHYs. The driver is built as a module by default, it is not included in GENERIC kernel config.
Submitted by: Lukasz Hajec <lha@semihalf.com> Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30923
show more ...
|