<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ow, branch release/12.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-05-21T02:08:34Z</updated>
<entry>
<title>MFC r361011: kernel: provide panicky version of __unreachable</title>
<updated>2020-05-21T02:08:34Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-05-21T02:08:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f359167141f2ab817ca5adaf027cfcb37a347ddf'/>
<id>urn:sha1:f359167141f2ab817ca5adaf027cfcb37a347ddf</id>
<content type='text'>
__builtin_unreachable doesn't raise any compile-time warnings/errors on its
own, so problems with its usage can't be easily detected. While it would be
nice for this situation to change and compilers to at least add a warning
for trivial cases where local state means the instruction can't be reached,
this isn't the case at the moment and likely will not happen.

This commit adds an __assert_unreachable, whose intent is incredibly clear:
it asserts that this instruction is unreachable. On INVARIANTS builds, it's
a panic(), and on non-INVARIANTS it expands to  __unreachable().

Existing users of __unreachable() are converted to __assert_unreachable,
to improve debuggability if this assumption is violated.
</content>
</entry>
<entry>
<title>MFC r355598, r355727, r355735, r355858</title>
<updated>2019-12-22T19:30:13Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2019-12-22T19:30:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c3987c8857473c252dbe9995c770e4f95ffd0c8'/>
<id>urn:sha1:4c3987c8857473c252dbe9995c770e4f95ffd0c8</id>
<content type='text'>
r355598:
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

r355727 (by imp):
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

r355735 (by imp):
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@

r355858:
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
</content>
</entry>
<entry>
<title>MFC r354205: Remove redundant hw sysctl declaration.</title>
<updated>2019-11-20T08:39:21Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-20T08:39:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed661a1f2dd2584a049472cbfc350a2a211c535c'/>
<id>urn:sha1:ed661a1f2dd2584a049472cbfc350a2a211c535c</id>
<content type='text'>
gcc CI complains, but clang doesn't.
</content>
</entry>
<entry>
<title>MFC r354183: ow(4): clean up stray white space</title>
<updated>2019-11-20T08:37:22Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-20T08:37:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=492b7317c3d04777e38af983e05bd93ae54b752d'/>
<id>urn:sha1:492b7317c3d04777e38af983e05bd93ae54b752d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354181: ow(4): protocol timings can now be changed as sysctl-s / tunables</title>
<updated>2019-11-20T08:35:54Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-20T08:35:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=459f12d6dbd416fe09b2743b363300b64b880bb4'/>
<id>urn:sha1:459f12d6dbd416fe09b2743b363300b64b880bb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354180: ow(4): increase regular mode recovery time, t_rec, to 15 us</title>
<updated>2019-11-20T08:34:24Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-20T08:34:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8ede3907a6fc40eb35ecb25d5df17a45b1092db'/>
<id>urn:sha1:a8ede3907a6fc40eb35ecb25d5df17a45b1092db</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354077,r354078: owc_gpiobus_read_data: add recovery time to the read slot</title>
<updated>2019-11-08T07:38:34Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-08T07:38:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4869ee8c50e0cb0da7ac1a67691bd55fb3a6bbaf'/>
<id>urn:sha1:4869ee8c50e0cb0da7ac1a67691bd55fb3a6bbaf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354076: owc_gpiobus_read_data: compare times in sbintime_t units</title>
<updated>2019-11-08T07:36:51Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-08T07:36:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=80fa48d9d784dbddf32e9809d1541a640a3ec412'/>
<id>urn:sha1:80fa48d9d784dbddf32e9809d1541a640a3ec412</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354069: owc_gpiobus_read_data: disable preemption earlier</title>
<updated>2019-11-08T07:35:32Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-08T07:35:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=25721a3daae80e22e770c5de61e4c009c90b8be6'/>
<id>urn:sha1:25721a3daae80e22e770c5de61e4c009c90b8be6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r354067,r354068: ow_temp: drop the lock around a call that can sleep</title>
<updated>2019-11-05T07:00:10Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2019-11-05T07:00:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a2c8f28e22bbd8d69855765b836d10a02514542'/>
<id>urn:sha1:0a2c8f28e22bbd8d69855765b836d10a02514542</id>
<content type='text'>
And use better scopes for the lock.
</content>
</entry>
</feed>
