#
5b56413d |
| 25-Jul-2024 |
Warner Losh <imp@FreeBSD.org> |
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY
Sponsored by: Netflix
|
Revision tags: release/14.1.0, release/13.3.0, 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/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
ffd39155 |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
ow: Remove unused devclass arguments to DRIVER_MODULE.
|
Revision tags: release/12.3.0, release/13.0.0 |
|
#
519b64e2 |
| 23-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
Revert "Define PNP info after defining driver modules"
This reverts commit aa37baf3d7cf51da92fd367476182802e71838ae.
The reverted commit was motivated by a problem observed on stable/12, but it tur
Revert "Define PNP info after defining driver modules"
This reverts commit aa37baf3d7cf51da92fd367476182802e71838ae.
The reverted commit was motivated by a problem observed on stable/12, but it turns out that a better solution was committed in r348309 but not MFCed. So, revert this change since it is unnecessary and not really correct: it assumes that the order in which module metadata records is defined determines their order in the output linker set. While this seems to hold in my testing, it is not guaranteed.
Reported by: cem Discussed with: imp MFC after: 3 days
show more ...
|
#
aa37baf3 |
| 21-Jan-2021 |
Mark Johnston <markj@FreeBSD.org> |
Define PNP info after defining driver modules
PNP info definitions currently have an unfortunate requirement in that they must follow the associated module definition in the module metadata linker s
Define PNP info after defining driver modules
PNP info definitions currently have an unfortunate requirement in that they must follow the associated module definition in the module metadata linker set. Otherwise devmatch can segfault while processing the linker hints file since kldxref maintains the order in the linker set.
A number of drivers violate this requirement. In some cases this can cause devmatch(8) to segfault when processing the linker hints file. Work around the problem for now simply by adjusting the drivers.
Reviewed by: imp MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D28260
show more ...
|
Revision tags: release/12.2.0, release/11.4.0 |
|
#
c7b0edf2 |
| 17-Dec-2019 |
Ian Lepore <ian@FreeBSD.org> |
Update owc_gpiobus (one-wire over gpio) to the modern gpio_pin interface.
It used to be required that a device be a child of gpiobus(4) to manipulate gpio pins. That requirement didn't work well for
Update owc_gpiobus (one-wire over gpio) to the modern gpio_pin interface.
It used to be required that a device be a child of gpiobus(4) to manipulate gpio pins. That requirement didn't work well for FDT-based systems with many cross-hierarchy users of gpio, so a more modern framework was created that removed the old hierarchy requirement.
These changes adapt the owc_gpiobus driver to use the newer gpio_pin_* functions to acquire, release, and manipulate gpio pins. This allows a single driver to work for both hinted-attachment and fdt-based systems, and removes the requirement that any one-wire fdt nodes must appear at the root of the devicetree.
Differential Revision: https://reviews.freebsd.org/D22710
show more ...
|
#
9f07ef76 |
| 13-Dec-2019 |
Warner Losh <imp@FreeBSD.org> |
Be consistent about checking return value from bus_delayed_attach_children.
Most places checked, but a couple last minute changes didn't. Make them all use the return value.
Noticed by: rpokala@
|
#
b832a7e5 |
| 13-Dec-2019 |
Warner Losh <imp@FreeBSD.org> |
Create new wrapper function: bus_delayed_attach_children()
Delay the attachment of children, when requested, until after interrutps are running. This is often needed to allow children to run transac
Create new wrapper function: bus_delayed_attach_children()
Delay the attachment of children, when requested, until after interrutps are running. This is often needed to allow children to run transactions on i2c or spi busses. It's a common enough idiom that it will be useful to have its own wrapper.
Reviewed by: ian Differential Revision: https://reviews.freebsd.org/D21465
show more ...
|
#
f24f20f4 |
| 10-Dec-2019 |
Ian Lepore <ian@FreeBSD.org> |
Do not attach children of owc_gpiobus until interrupts are working.
The children of the bus need to do IO on the bus to probe for hardware presence. Doing IO means timing the bus states using sbinu
Do not attach children of owc_gpiobus until interrupts are working.
The children of the bus need to do IO on the bus to probe for hardware presence. Doing IO means timing the bus states using sbinuptime(), and that requires working timecounters, which are not initialized until after device attachment has completed.
PR: 242526
show more ...
|
#
f86e6000 |
| 04-Dec-2019 |
Warner Losh <imp@FreeBSD.org> |
Regularize my copyright notice
o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't clai
Regularize my copyright notice
o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear.
show more ...
|
Revision tags: release/12.1.0 |
|
#
dbb15ea5 |
| 25-Oct-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus: add missing space in r354077
|
#
b8c776ba |
| 25-Oct-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus_read_data: add recovery time to the read slot
Reviewed by: imp MFC after: 2 weeks
|
#
bb7b803b |
| 25-Oct-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus_read_data: compare times in sbintime_t units
Previously the code used sbttous() before microseconds comparison in one place, sbttons() and nanoseconds in another, division by SBT_1US and
owc_gpiobus_read_data: compare times in sbintime_t units
Previously the code used sbttous() before microseconds comparison in one place, sbttons() and nanoseconds in another, division by SBT_1US and microseconds in yet another.
Now the code consistently uses multiplication by SBT_1US to convert microseconds to sbintime_t before comparing them with periods between calls to sbinuptime(). This is fast, this is precise enough (below 0.03%) and the periods defined by the protocol cannot overflow.
Reviewed by: imp (D22108) MFC after: 2 weeks
show more ...
|
#
c1750b82 |
| 25-Oct-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus_read_data: disable preemption earlier
Now this is done before starting the low pulse that has rather tight timing.
Reviewed by: imp (D22108) MFC after: 2 weeks
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
#
01f1fff0 |
| 10-Jul-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus: small formatting cleanup
MFC after: 1 week
|
Revision tags: release/11.3.0 |
|
#
7f49ce7a |
| 28-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349476
Sponsored by: The FreeBSD Foundation
|
#
b66ed8ee |
| 26-Jun-2019 |
Andriy Gapon <avg@FreeBSD.org> |
fix up r349428, fix a typo made during "fdt" removal
Reported by: ian MFC after: 11 days
|
#
926c3367 |
| 26-Jun-2019 |
Andriy Gapon <avg@FreeBSD.org> |
owc_gpiobus: clean / fix up the driver module things
"fdt" is removed from the driver module name as the driver does not require FDT and can work very well on hints based systems.
A module dependen
owc_gpiobus: clean / fix up the driver module things
"fdt" is removed from the driver module name as the driver does not require FDT and can work very well on hints based systems.
A module dependency is added for gpiobus. Without that owc cannot resolve symbols in gpiobus if both are loaded as kernel modules.
Finally, a driver module module version is added.
Reviewed by: imp MFC after: 11 days
show more ...
|
Revision tags: release/12.0.0, release/11.2.0 |
|
#
108117cc |
| 20-Mar-2018 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
[ofw] fix errneous checks for OF_finddevice(9) return value
OF_finddevices returns ((phandle_t)-1) in case of failure. Some code in existing drivers checked return value to be equal to 0 or less/equ
[ofw] fix errneous checks for OF_finddevice(9) return value
OF_finddevices returns ((phandle_t)-1) in case of failure. Some code in existing drivers checked return value to be equal to 0 or less/equal to 0 which is also wrong because phandle_t is unsigned type. Most of these checks were for negative cases that were never triggered so trhere was no impact on functionality.
Reviewed by: nwhitehorn MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D14645
show more ...
|
Revision tags: release/10.4.0 |
|
#
0275f9db |
| 11-Aug-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r321383 through r322397.
|
#
69ef36e3 |
| 01-Aug-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r321829
|
#
0e34ba73 |
| 31-Jul-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r321755
|
#
d35f6548 |
| 29-Jul-2017 |
Ian Lepore <ian@FreeBSD.org> |
Add inline functions to convert between sbintime_t and decimal time units. Use them in some existing code that is vulnerable to roundoff errors.
The existing constant SBT_1NS is a honeypot, luring u
Add inline functions to convert between sbintime_t and decimal time units. Use them in some existing code that is vulnerable to roundoff errors.
The existing constant SBT_1NS is a honeypot, luring unsuspecting folks into writing code such as long_timeout_ns*SBT_1NS to generate the argument for a sleep call. The actual value of 1ns in sbt units is ~4.3, leading to a large roundoff error giving a shorter sleep than expected when multiplying by the trucated value of 4 in SBT_1NS. (The evil honeypot aspect becomes clear after you waste a whole day figuring out why your sleeps return early.)
show more ...
|
Revision tags: release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0 |
|
#
11d38a57 |
| 28-Oct-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Merge from head
Sponsored by: Gandi.net
|