#
3ddaf820 |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
Use bus_generic_detach instead of device_delete_children in detach
While here, check for errors from bus_generic_detach and move it to the start of detach if necessary.
Differential Revision: https
Use bus_generic_detach instead of device_delete_children in detach
While here, check for errors from bus_generic_detach and move it to the start of detach if necessary.
Differential Revision: https://reviews.freebsd.org/D47969
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 |
|
#
a05a6804 |
| 25-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY
Sponsored by: Netflix
|
#
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, release/14.0.0 |
|
#
725962a9 |
| 06-Nov-2023 |
Mark Johnston <markj@FreeBSD.org> |
e6000sw: Fix locking in miibus_{read,write}reg implementations
Commit 469290648005e13b819a19353032ca53dda4378f made e6000sw's implementation of miibus_(read|write)reg assume that the softc lock is h
e6000sw: Fix locking in miibus_{read,write}reg implementations
Commit 469290648005e13b819a19353032ca53dda4378f made e6000sw's implementation of miibus_(read|write)reg assume that the softc lock is held. I presume that is to avoid lock recursion in e6000sw_attach() -> e6000sw_attach_miibus() -> mii_attach() -> MIIBUS_READREG().
However, the lock assertion in e6000sw_readphy_locked() can fail if a different driver uses the interface to probe registers. Work around the problem by providing implementations which lock the softc if it is not already locked.
PR: 274795 Fixes: 469290648005 ("e6000sw: add readphy and writephy wrappers") Reviewed by: kp, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42466
show more ...
|
#
2c135a2a |
| 21-Aug-2023 |
Luiz Otavio O Souza <loos@FreeBSD.org> |
e6000sw: support building without FDT
This enables the use of this driver on platorms without device tree, such as Netgate's XG-7100.
Sponsored by: Rubicon Communications, LLC ("Netgate")
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
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
|
#
8cf905e5 |
| 04-Sep-2022 |
Gordon Bergling <gbe@FreeBSD.org> |
etherswitch(4): Remove a double word in a source code comment
- s/the the/the/
MFC after: 3 days
|
#
7647626d |
| 10-Aug-2022 |
Kristof Provost <kp@FreeBSD.org> |
e6000sw: fix incorrect locking
During attach we release the lock to call e6000sw_attach_miibus(), which calls mii_attach(). The mii_attach() function calls miibus_readreg() / miibus_writereg(). Howe
e6000sw: fix incorrect locking
During attach we release the lock to call e6000sw_attach_miibus(), which calls mii_attach(). The mii_attach() function calls miibus_readreg() / miibus_writereg(). However, these are set to be e6000sw_readphy_locked().
That is, the read/write phy functions do not acquire the lock, but expect to be called while locked. Simply do not unlock and relock while calling mii_attach().
Reviewed by: Hubert Mazur <hum@semihalf.com> Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D36117
show more ...
|
#
46929064 |
| 06-Jul-2022 |
Albert Jakiela <aja@semihalf.com> |
e6000sw: add readphy and writephy wrappers
New functions take lock and give lock after operation. Removed locking and unlocking within other methods, to prevent from recursive locking on non recursi
e6000sw: add readphy and writephy wrappers
New functions take lock and give lock after operation. Removed locking and unlocking within other methods, to prevent from recursive locking on non recursive lock.
Tested on EspressoBin.
Reviewed by: mw Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D35656
show more ...
|
#
66548259 |
| 04-Jul-2022 |
Kornel Dulęba <kd@FreeBSD.org> |
e6000sw: Fix direct register write logic
When accessing a register directly from etherswitchcfg one must specify a register group(e.g. registers of portN) and the register offset within the group. T
e6000sw: Fix direct register write logic
When accessing a register directly from etherswitchcfg one must specify a register group(e.g. registers of portN) and the register offset within the group. The latter is passed as the 5 least significant bits. Extract the former by dividing the register address by 32, not by 5.
Approved by: mw(mentor) Obtained from: Semihalf Sponsored by: Stormshield MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35672
show more ...
|
Revision tags: release/13.1.0 |
|
#
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.
|
#
9a2e6ca6 |
| 05-Apr-2022 |
Warner Losh <imp@FreeBSD.org> |
e6000sw_set_atustat: eliminate write only ret variable
Sponsored by: Netflix
|
Revision tags: release/12.3.0 |
|
#
ee1b7811 |
| 13-Sep-2021 |
Hubert Mazur <hum@semihalf.com> |
e6000sw: Build the driver as a kernel module
Fix detach routine. Driver was tested on EspressoBin. Remove it from GENERIC, since now it can be loaded automatically.
Obtained from: Semihalf Reviewe
e6000sw: Build the driver as a kernel module
Fix detach routine. Driver was tested on EspressoBin. Remove it from GENERIC, since now it can be loaded automatically.
Obtained from: Semihalf Reviewed by: manu Differential revision: https://reviews.freebsd.org/D31580
show more ...
|
#
1e125351 |
| 13-Sep-2021 |
Hubert Mazur <hum@semihalf.com> |
e6000sw: Use taskqueue subsytem for MDIO polling
Previosuly the link status was pooled in an infinite loop in a separate kproc. Use taskqueue subsytem instead. This is a prequisite for making this d
e6000sw: Use taskqueue subsytem for MDIO polling
Previosuly the link status was pooled in an infinite loop in a separate kproc. Use taskqueue subsytem instead. This is a prequisite for making this driver work as a loadable module.
Obtained from: Semihalf Differential revision: https://reviews.freebsd.org/D31579
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
75f5224e |
| 25-Dec-2019 |
Ganbold Tsagaankhuu <ganbold@FreeBSD.org> |
Fix panic when running etherswitchcfg port command.
|
Revision tags: release/12.1.0 |
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
Revision tags: release/11.3.0 |
|
#
9aba0637 |
| 01-Jul-2019 |
Luiz Otavio O Souza <loos@FreeBSD.org> |
Add support for the Marvell 88E6190 11 ports switch.
With more ports, some of the registers are shifted a bit to accommodate.
This switch also adds two high speed Serdes/SGMII interfaces (2.5 Gb/s)
Add support for the Marvell 88E6190 11 ports switch.
With more ports, some of the registers are shifted a bit to accommodate.
This switch also adds two high speed Serdes/SGMII interfaces (2.5 Gb/s).
Sponsored by: Rubicon Communications, LLC (Netgate)
show more ...
|
#
d7cecbd1 |
| 29-Jun-2019 |
Luiz Otavio O Souza <loos@FreeBSD.org> |
Add the 802.1q support for the Marvell e6000 series of ethernet switches.
Tested on: espressobin, Clearfog, SG-3100 and others Sponsored by: Rubicon Communications, LLC (Netgate)
|
#
e532a999 |
| 20-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349234
Sponsored by: The FreeBSD Foundation
|