freebsd-dev/usr.sbin
Ian Lepore c3c16dce19 Make i2c -s (device scan) work on hardware that supports only full xfers.
The existing scan code is based on sending an i2c START condition and if
there is no error it assumes there is a device at that i2c address.  Some
i2c controllers don't support sending individual start/stop signals on the
bus, they can only perform complete data transfers with start/stop handled
in the silicon.

This adds a fallback mechanism that attempts to read a single byte from each
i2c address.  It's less reliable than looking for an an ACK repsonse to a
start, because some devices will NAK an attempt to read that isn't preceeded
by a write of a register address.  Writing to devices to probe them is too
dangerous to even consider.  The user is told that a less-reliable scan is
being done, so even if the read-scan comes up empty too, it's still a vast
improvement over the old situation where it would just claim there were no
devices on the bus even though the devices were there and working fine.

If the i2c controller responds with a proper ENODEV (device doesn't support
operation) or an almost-proper EOPNOTSUPP, the START/STOP scan is switched
to a read-scan right away.  Most controllers respond with ENXIO or EIO if
they don't support START/STOP, so no quick-out is available.  For those,
if a scan of all 127 addresses and come up empty, the scan is re-done using
the read method.

Reported by:	Maxim Filimonov <che@bein.link>
2017-09-11 21:49:38 +00:00
..
ac
accton Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
acpi Merge ACPICA 20170831. 2017-08-31 22:47:04 +00:00
adduser
amd DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
ancontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
apm Create a package for apm(8). 2016-01-21 18:41:55 +00:00
apmd It seems <sys/types.h> is a new prerequisite for <bitstring.h> after 2016-05-24 03:15:46 +00:00
arp DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
asf Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
audit usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditdistd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
auditreduce usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
authpf usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
autofs Fix mdoc typo in auto_master.5 2017-09-01 22:04:45 +00:00
bhyve bhyve/vga.c: fix atc_color_select_67 bit shift 2017-07-28 21:47:10 +00:00
bhyvectl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
bhyveload bhyveload: correctly query size of disks 2017-06-21 18:19:27 +00:00
binmiscctl Correct the binmiscctl(8) man page for powerpc64 2017-09-04 20:57:38 +00:00
blacklistctl DIRDEPS_BUILD: Connect new directories and update dependencies. 2016-06-03 19:25:30 +00:00
blacklistd DIRDEPS_BUILD: Connect new directories and update dependencies. 2016-06-03 19:25:30 +00:00
bluetooth bthidd(8): Add support for Apple's magic mouse 2017-08-12 21:23:33 +00:00
boot0cfg Use nitems() from sys/param.h 2017-03-11 04:00:27 +00:00
bootparamd Don't leak bpf on early return when YP isn't defined (NIS support) 2017-08-17 20:41:28 +00:00
bsdconfig Fix long standing issue in bsdconfig's keymap selection 2017-05-25 18:16:17 +00:00
bsdinstall Ignore error return from newaliases(1) 2017-09-11 17:39:21 +00:00
bsnmpd DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
btxld Reuse our roundup2() macro instead of reinventing the wheel. 2016-04-18 17:30:33 +00:00
camdd Fix a resource leak in an error case in camdd_buf_sg_create(). 2017-08-23 17:52:49 +00:00
cdcontrol Remove last remnants of acd(4), mcd(4), and scd(4) drivers. 2016-08-25 19:36:58 +00:00
chkgrp Revert r286148 2015-08-01 10:40:17 +00:00
chown Revert part of r322770 in usr.sbin/chown/tests/chown_test.sh, 2017-08-22 17:23:29 +00:00
chroot Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ckdist usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
clear_locks
config Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cpucontrol Remove confusion in the line explaining syntax of the msr read. 2017-08-14 11:19:31 +00:00
crashinfo Allow matches of truncated version strings. 2017-07-19 18:41:16 +00:00
cron cron(8) manpage updates 2017-07-19 19:53:07 +00:00
crunch crunchgen: quiet -Wmissing-prototypes 2017-09-07 17:20:47 +00:00
ctladm Correct typo in usage string. 2017-08-22 23:55:09 +00:00
ctld Make ctld(8) mention cfiscsi(4). 2017-05-28 16:41:42 +00:00
ctm ctm: Fix some trivial argv buffer overruns 2017-04-13 22:59:17 +00:00
cxgbetool cxgbe(4): Initial import of the "collect" component of Chelsio unified 2017-08-03 14:43:30 +00:00
daemon DIRDEPS_BUILD: Update dependencies. 2016-11-13 00:11:30 +00:00
dconschat usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
devctl o Missed flag restored. 2017-05-19 20:02:32 +00:00
devinfo Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
digictl
diskinfo Report device descr in addition to ident. 2017-07-06 09:05:38 +00:00
dumpcis
editmap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
edquota Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
eeprom usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
efidp Update the "first appeared in" version in several manual pages. 2017-05-24 17:47:49 +00:00
efivar Create efi utility printing routines 2017-09-07 07:30:19 +00:00
etcupdate Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
extattr Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
extattrctl
fdcontrol Remove the last vestiges of FDC_DEBUG & FD_DEBUG 2017-04-07 16:14:25 +00:00
fdformat usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
fdread Free the memory allocated to trackbuf before exiting, it might fix a potential 2017-05-03 13:57:31 +00:00
fdwrite
fifolog Use :H to manipulate .CURDIR-relative paths instead of ../ 2017-03-01 05:21:21 +00:00
flowctl
fmtree usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
freebsd-update Modernize FreeBSD version numbers in freebsd-update(8). 2017-06-14 18:34:22 +00:00
fstyp Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
ftp-proxy usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
fwcontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
getfmac
getpmac
gpioctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
gssd usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
gstat Add flag -B which does the same like batch mode but without exiting after 2016-11-09 07:31:39 +00:00
hyperv usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
i2c Make i2c -s (device scan) work on hardware that supports only full xfers. 2017-09-11 21:49:38 +00:00
ifmcstat Use nitems() from sys/param.h. 2017-06-15 06:48:36 +00:00
inetd Simplify a pipe for signal handling. 2017-03-20 17:57:24 +00:00
iostat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
iovctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
ip6addrctl Use nitems() from sys/param.h. 2017-06-15 06:46:40 +00:00
ipfwpcap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
iscsid Minor tweaks to iscsi(4) and iscsid(8). 2017-05-28 17:02:29 +00:00
jail Jails: Optionally prevent jailed root from binding to privileged ports 2017-06-06 02:15:00 +00:00
jexec Define which of the username options (-u/-U) to jexec(8) is the default. 2016-04-23 22:31:58 +00:00
jls Improve IP address list representation in libxo output. 2016-12-24 23:51:27 +00:00
kbdcontrol kbdcontrol: add -P path option to add keymap search paths 2016-03-16 04:05:02 +00:00
kbdmap kbdmap: include filename when reporting fopen() failure 2015-11-27 21:27:39 +00:00
keyserv Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
kgmon Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kgzip Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
kldxref kldxref: bump MAXSEGS to 3 2017-02-10 19:17:10 +00:00
lastlogin
lmcconfig Use strlcpy() instead of strncpy() when copying ifname to ensure 2016-05-15 21:45:04 +00:00
lpr Quiesce clang warning while building lpc. 2017-06-16 20:00:39 +00:00
lptcontrol
mailstats usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mailwrapper Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
makefs Replace makefs' hand-rolled unescaping with strunvis 2017-08-25 16:10:16 +00:00
makemap usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
manctl The purge option hasn't been implemented since 1994 when we imported this 2017-09-09 03:09:02 +00:00
memcontrol
mergemaster mergemaster: fix description of -p 2017-03-07 04:13:22 +00:00
mfiutil Avoid taking the address of a packed struct member in mfiutil 2017-01-09 19:39:35 +00:00
mixer mixer(8): Prevent possible sscanf() overflow. 2017-04-29 19:12:44 +00:00
mld6query
mlxcontrol usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mount_smbfs usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
mountd Update the exports.5 man page to reflect the change in default uid/gid 2017-05-20 23:25:07 +00:00
moused Add Elantech trackpad to the list of known models 2016-09-26 22:07:45 +00:00
mpsutil Fix some broken logic used in obtaining the certain config pages. I'm 2017-07-27 05:31:48 +00:00
mptable Stop suggesting -grope argument when -grope argument was actually given 2015-10-22 21:13:35 +00:00
mptutil "Buses" is the preferred plural of "bus" 2017-01-15 17:54:01 +00:00
mtest mtest: Prevent access to uninitialized value. 2016-04-01 01:35:52 +00:00
nandsim usr.sbin: minor spelling fixes on comments. 2016-05-01 16:41:25 +00:00
nandtool META MODE: Connect MK_NAND directories. 2015-12-02 05:31:01 +00:00
ndiscvt usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
ndp Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
newsyslog Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
nfscbd Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
nfsd Update the nfsv4 man page to reflect recent changes to support 2017-07-19 20:57:41 +00:00
nfsdumpstate
nfsrevoke
nfsuserd Document the changes done to nfsuserd by r320757. 2017-07-06 22:34:34 +00:00
ngctl ngctl dot: Drop invalid trailing semi-colon 2015-09-22 01:31:01 +00:00
nghook
nmtree Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
nologin Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
nscd Fix up two assertions following malloc(). vangyzen@ notified me of 2017-05-20 18:16:26 +00:00
ntp Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
nvram
ofwdump DIRDEPS_BUILD: Update dependencies. 2015-12-07 23:53:01 +00:00
pc-sysinstall Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
pciconf Add constants and descriptions for some new PCI class definitions 2017-03-13 07:45:15 +00:00
periodic periodic(8): delete trailing whitespace 2017-06-20 06:20:09 +00:00
pkg Flush stdout before yes/no confirmations, to force question 2017-05-03 20:41:26 +00:00
pmcannotate
pmccontrol Use macro MAX() from sys/param.h. 2016-04-22 05:07:59 +00:00
pmcstat Fix off by one in calculation of the number of buckets for the pc 2017-08-04 18:02:54 +00:00
pmcstudy Don't end up manpage titles with a full stop. 2017-05-24 21:02:53 +00:00
pnpinfo usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
portsnap Avoid division by zero in the rare case that portsnap needs to fetch 2016-12-16 22:37:16 +00:00
powerd Directly set the NONBLOCK flags when creating the socket 2016-05-10 11:18:53 +00:00
ppp Before returning because of an memory allocation error, free the memory 2017-06-06 21:51:04 +00:00
pppctl
praliases usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
praudit Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
procctl
prometheus_sysctl_exporter Be a bit more liberal about sysctl naming. 2017-07-29 08:35:07 +00:00
pstat Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
pw pw useradd: Validate the user name before creating the entry 2017-08-19 00:32:26 +00:00
pwd_mkdb usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
quot prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
quotaon Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rarpd Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
repquota Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rip6query usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
rmt Change /etc/rmt symlink from absolute to relative path, 2017-03-05 04:09:18 +00:00
route6d Fix userland tools that don't check the format of routing socket 2017-04-16 19:17:10 +00:00
rpc.lockd Reduce code duplication in rpc.lockd. 2017-06-21 06:34:06 +00:00
rpc.statd DIRDEPS_BUILD: Update dependencies. 2017-07-10 23:52:04 +00:00
rpc.umntall
rpc.yppasswdd Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:14:41 +00:00
rpc.ypupdated Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
rpc.ypxfrd Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:22:23 +00:00
rpcbind Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
rrenumd rrenumd(8): Fix a trivial Coverity warning 2017-03-29 21:04:39 +00:00
rtadvctl usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
rtadvd Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtprio
rtsold Garbage collect IFT_IEEE80211 (but leave the define for possible reuse) 2017-01-28 17:08:40 +00:00
rwhod rwho/ruptime/rwhod shouldn't be gated by RCMDS. 2017-08-08 20:17:07 +00:00
sa Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
sendmail usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
service Add an additional check to service(8) -e incase rcvar is blank 2015-09-08 22:50:17 +00:00
services_mkdb Remove usage of _WITH_GETLINE from usr.sbin 2016-07-30 01:10:05 +00:00
sesutil DIRDEPS_BUILD: Update dependencies. 2017-07-10 23:52:04 +00:00
setfib Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
setfmac
setpmac
smbmsg smbmsg: use a more convenient way of accessing data read from a slave 2016-11-11 15:00:13 +00:00
snapinfo
spkrtest
spray
syslogd Fix another logic bug that came out of recent syslogd refactoring and exposed by 2017-04-15 18:20:11 +00:00
sysrc Change my given name from "Garrett" to "Ngie" 2016-06-13 10:30:49 +00:00
tcpdchk Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:18 +00:00
tcpdmatch Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:18 +00:00
tcpdrop o Clean the whole array of IPv4 addresses not just a local part. 2017-04-28 09:17:16 +00:00
tcpdump Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
timed usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:38:03 +00:00
traceroute DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
traceroute6 Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:17:59 +00:00
trpt Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
tzsetup Revert the parts of r322097 related to /etc/wall_cmos_clock handling as 2017-08-07 21:38:10 +00:00
uathload Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 03:59:18 +00:00
uefisign uefisign: Remove backwards-compatibility sys/capability.h support 2016-09-19 16:07:32 +00:00
ugidfw
uhsoctl Prevent use-after-free with ctx->ns in set_nameservers(..), which could occur 2015-12-22 05:57:23 +00:00
unbound Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:41:59 +00:00
usbconfig
usbdump Reuse our roundup2() macro instead of reinventing the wheel. 2016-04-18 17:30:33 +00:00
utx
vidcontrol Support setting the colors of cursors for the VGA renderer. 2017-08-25 07:04:41 +00:00
vigr META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
vipw Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
wake Fix a few mandoc warnings. 2015-08-12 10:34:05 +00:00
watch Use strlcpy() when the string is expected to be nul-terminated. 2015-10-06 22:49:25 +00:00
watchdogd Chase malloc() change by removing lg_chunk malloc_conf settings. 2017-06-28 04:19:54 +00:00
wlandebug Belatedly fix documentation on which interface to use as argument. 2015-08-17 09:18:54 +00:00
wpa Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-02 05:04:45 +00:00
yp_mkdb Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:02:36 +00:00
ypbind ypbind(8): let calloc(3) do the multiplying. 2017-03-13 20:51:00 +00:00
ypldap Log when we have finished pushing users and groups. 2017-08-01 05:26:20 +00:00
yppoll Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
yppush Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:24:24 +00:00
ypserv Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:24:56 +00:00
ypset Rename YP to NIS in the manpages. 2015-09-03 07:18:52 +00:00
zic Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:35:21 +00:00
zonectl Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones 2017-03-01 04:19:04 +00:00
zzz
Makefile rwho/ruptime/rwhod shouldn't be gated by RCMDS. 2017-08-08 20:17:07 +00:00
Makefile.amd64 Remove the si(4) driver and sicontrol(8) for Specialix serial cards. 2016-08-19 21:14:27 +00:00
Makefile.arm Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00
Makefile.arm64 arm64: build usr.sbin/acpi subdirectory 2015-11-08 20:56:04 +00:00
Makefile.i386 Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc
Makefile.mips Document why we use -z nonexecstack in the Makefile since it 2015-11-21 16:37:11 +00:00
Makefile.powerpc Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
Makefile.sparc64 Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00