Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
i2c.8: Fix a typo in the manual page- s/endianess/endianness/MFC after: 5 days
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 ...
Update/fix Makefile.depend for userland
i2c(8): fix option handlingRecognize the '-o' option when processing command line arguments.Fixes: 9c10d00bf8cd ("i2c(8): Add interpreted mode for batch/scripted...")PR: 258572
i2c(8): Add interpreted mode for batch/scripted i2c operations
i2c(8): Change default mode to "transfer", which should work everywhere¹¹ According to @ian
i2c(8): Polish: sort switches, dont confuse address & offset
Final pass of cleanup: Get rid of gotos and general polish.NB: This changes the outputs, in particular in error conditions, in various subtle ways to be more systematic and usable.
Rewrite and simplify the -n argument processing.
Refactor argument processing.
More refactoring & polishing.Do not call usage() without telling why.Extract '-a' mode into a function, and sanitize hexdumping.Revise manpage to match reality of code.
More refactoring:Extract the '-a' mode into a separate function, and simplify thehexdumping logic.Dont call usage() without telling why.
Centralize offset width handling, and make it possible to specify explicit endianess.
Centralize open/close of /dev/iic%d devices
Sixteen bit I2c addresses are always little endian.
Polish source to WARNS=6
Fix a few mandoc issues- no blank before trailing delimiter- whitespace at end of input line- sections out of conventional order- normalizing date format- AUTHORS section without An macro
Fix error found by new clang operator precendence warningerror: operator '?:' has lower precedence than '|'; '|' will be evaluated firstI discovered this in CheriBSD after updating our fork of cl
Fix error found by new clang operator precendence warningerror: operator '?:' has lower precedence than '|'; '|' will be evaluated firstI discovered this in CheriBSD after updating our fork of clang to the latestupstream master.Reviewed By: ianDifferential Revision: https://reviews.freebsd.org/D22433
Add a new 'tr' (transfer) mode to i2c(8) to support more i2c controllers.Some i2c controller hardware does not provide a way to do individual START,REPEAT-START and STOP actions on the i2c bus. I
Add a new 'tr' (transfer) mode to i2c(8) to support more i2c controllers.Some i2c controller hardware does not provide a way to do individual START,REPEAT-START and STOP actions on the i2c bus. Instead, they can only doa complete transfer as a single operation. Typically they can do eitherSTART-data-STOP or START-data-REPEATSTART-data-STOP. In the i2c driverframework, this corresponds to the iicbus_transfer method. In the userlandinterface they are initiated with the I2CRDWR ioctl command.These changes add a new 'tr' mode which can be specified with the '-m'command line option. This mode should work on all hardware; when an i2ccontroller driver doesn't directly support the iicbus_transfer method,code in the i2c driver framework uses the lower-level START/REPEAT/STOPmethods to implement the transfer. After this new mode has gotten sometesting on various hardware, the 'tr' mode should probably become thenew default mode.PR: 189914
various: general 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
various: general 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.No functional change intended.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
i2c(8): clean up and clarify read operationThe code went to a lot of trouble to issue either a start+stop conditionor a repeated start condition only to follow it with a stop conditionand a read(
i2c(8): clean up and clarify read operationThe code went to a lot of trouble to issue either a start+stop conditionor a repeated start condition only to follow it with a stop conditionand a read(2) call that issues a new start condition.So, fix the read in I2C_MODE_REPEATED_START mode by using I2CREAD ioctlwithin the running transaction. This obviously requires that the slaveaddress has the read bit set which was not required before.Another problem was with width parameter of zero andI2C_MODE_REPEATED_START mode. In that case we issued a repeated startwithout any preceding start.While here, remove the redundant (unused) argument to I2CSTOP throughoutthe program.Also, clarify the meaning of -w option, especially "-w 0", in the manualpage.Reviewed by: no oneDifferential Revision: https://reviews.freebsd.org/D12331
12