sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
glxiic/glxsb: Remove unused devclass arguments to DRIVER_MODULE.
Remove unused iicbus_devclass.
Create new wrapper function: bus_delayed_attach_children()Delay the attachment of children, when requested, until after interrutps arerunning. 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 arerunning. This is often needed to allow children to run transactions on i2c orspi busses. It's a common enough idiom that it will be useful to have its ownwrapper.Reviewed by: ianDifferential Revision: https://reviews.freebsd.org/D21465
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Defer attaching and probing iicbus and its children until interrupts areavailable, in i2c controller drivers that require interrupts for transfers.This is the result of auditing all 22 existing dr
Defer attaching and probing iicbus and its children until interrupts areavailable, in i2c controller drivers that require interrupts for transfers.This is the result of auditing all 22 existing drivers that attach iicbus.These drivers were the only ones remaining that require interrupts and werenot using config_intrhook to defer attachment. That has led, over theyears, to various i2c slave device drivers needing to use config_intrhookthemselves rather than performing bus transactions in their probe() andattach() methods, just in case they were attached too early.
Prevent overflow issues in timeout processingPreviously, any timeout value for which (timeout * hz) will overflow thesigned integer, will give weird results, since callout(9) routines willconvert
Prevent overflow issues in timeout processingPreviously, any timeout value for which (timeout * hz) will overflow thesigned integer, will give weird results, since callout(9) routines willconvert negative values of ticks to '1'. For unsigned integer overflow wewill get sufficiently smaller timeout values than expected.Switch from callout_reset, which requires conversion to int based ticksto callout_reset_sbt to avoid this.Also correct isci to correctly resolve ccb timeout.This was based on the original work done by Eygene Ryabinkin<[email protected]> back in 5 Aug 2011 which used a macro to help avoidthe overlow.Differential Revision: https://reviews.freebsd.org/D1157Reviewed by: mav, davideMFC after: 1 monthSponsored by: Multiplay
Pull in r267961 and r267973 again. Fix for issues reported will follow.
Revert r267961, r267973:These changes prevent sysctl(8) from returning proper output,such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1
Revert r267961, r267973:These changes prevent sysctl(8) from returning proper output,such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1) truss: can not get etype: Cannot allocate memory
Extend the meaning of the CTLFLAG_TUN flag to automatically check ifthere is an environment variable which shall initialize the SYSCTLduring early boot. This works for all SYSCTL types both statica
Extend the meaning of the CTLFLAG_TUN flag to automatically check ifthere is an environment variable which shall initialize the SYSCTLduring early boot. This works for all SYSCTL types both statically anddynamically created ones, except for the SYSCTL NODE type and SYSCTLswhich belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added tobe used in the case a tunable sysctl has a custom initialisationfunction allowing the sysctl to still be marked as a tunable. Thekernel SYSCTL API is mostly the same, with a few exceptions for somespecial operations like iterating childrens of a static/extern SYSCTLnode. This operation should probably be made into a factored outcommon macro, hence some device drivers use this. The reason forchanging the SYSCTL API was the need for a SYSCTL parent OID pointerand not only the SYSCTL parent OID list pointer in order to quicklygenerate the sysctl path. The motivation behind this patch is to avoidparameter loading cludges inside the OFED driver subsystem. Instead ofadding special code to the OFED driver subsystem to post-load tunablesinto dynamically created sysctls, we generalize this in the kernel.Other changes:- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"to "hw.pcic.intr_mask".- Removed redundant TUNABLE statements throughout the kernel.- Some minor code rewrites in connection to removing not neededTUNABLE statements.- Added a missing SYSCTL_DECL().- Wrapped two very long lines.- Avoid malloc()/free() inside sysctl string handling, in case it iscalled to initialize a sysctl from a tunable, hence malloc()/free() isnot ready when sysctls from the sysctl dataset are registered.- Bumped FreeBSD version to indicate SYSCTL API change.MFC after: 2 weeksSponsored by: Mellanox Technologies
Fixed an IIC timing issue between the glxiic master and a slave ofperipheral devices. When transmitting (rx) from slave to master,sometimes nAKC delays. As a result, some slaves fails theirtransm
Fixed an IIC timing issue between the glxiic master and a slave ofperipheral devices. When transmitting (rx) from slave to master,sometimes nAKC delays. As a result, some slaves fails theirtransmission.Submitted by: Masanori OZAWA <[email protected]>Reviewed by: brixMFC after: 1 week
This isn't functionally identical. In some cases a hint to disableunit 0 would in fact disable all units.This reverts r241856Approved by: cperciva (implicit)
Now that device disabling is generic, remove extraneous code from thedevice drivers that used to provide this feature.Reviewed by: desApproved by: cpercivaMFC after: 1 week
Fix breakage on pc98 by redefining DEBUG().Pointy hat to: brix
Add I2C bus driver for the AMD Geode LX series CS5536 CompanionDevice.Reviewed by: jhb (newbus bits only), adrian