<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/gpio, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>gpioc: allocate new fifo size</title>
<updated>2025-10-01T08:52:33+00:00</updated>
<author>
<name>Ahmad Khalifa</name>
<email>vexeduxr@FreeBSD.org</email>
</author>
<published>2025-09-30T11:55:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1488828f451c1793a23afc33e353292f3935b085'/>
<id>1488828f451c1793a23afc33e353292f3935b085</id>
<content type='text'>
This slipped through after I resolved some merge conflicts.

Fixes:		d000adfe
MFC after:	1 day

(cherry picked from commit 2679636b4412927242e46d3806fbb58e2702eddb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This slipped through after I resolved some merge conflicts.

Fixes:		d000adfe
MFC after:	1 day

(cherry picked from commit 2679636b4412927242e46d3806fbb58e2702eddb)
</pre>
</div>
</content>
</entry>
<entry>
<title>gpioc: fix race in ioctl(GPIOCONFIGEVENTS)</title>
<updated>2025-10-01T08:52:21+00:00</updated>
<author>
<name>Ahmad Khalifa</name>
<email>vexeduxr@FreeBSD.org</email>
</author>
<published>2025-09-30T11:09:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4472ecb362b068400f26abfce2db2a2b10a88d95'/>
<id>4472ecb362b068400f26abfce2db2a2b10a88d95</id>
<content type='text'>
A race can occur in gpioc_ioctl when it is called with GPIOCONFIGEVENTS
closely followed by GPIOSETCONFIG. GPIOSETCONFIG can alter the
priv-&gt;pins list, making it no longer empty and opening the door for
access to priv-&gt;events while we are reallocating it. Fix this by holding
priv-&gt;mtx while handling GPIOCONFIGEVENTS.

Reported by:	Qiu-ji Chen
PR:		289120
Reviewed by:	mmel
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D52783

(cherry picked from commit d000adfe41e6f2fe8f3dbe92d8fc2d34ae882086)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A race can occur in gpioc_ioctl when it is called with GPIOCONFIGEVENTS
closely followed by GPIOSETCONFIG. GPIOSETCONFIG can alter the
priv-&gt;pins list, making it no longer empty and opening the door for
access to priv-&gt;events while we are reallocating it. Fix this by holding
priv-&gt;mtx while handling GPIOCONFIGEVENTS.

Reported by:	Qiu-ji Chen
PR:		289120
Reviewed by:	mmel
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D52783

(cherry picked from commit d000adfe41e6f2fe8f3dbe92d8fc2d34ae882086)
</pre>
</div>
</content>
</entry>
<entry>
<title>gpioc: allocate priv-&gt;events with the correct size</title>
<updated>2025-10-01T08:52:08+00:00</updated>
<author>
<name>Ahmad Khalifa</name>
<email>vexeduxr@FreeBSD.org</email>
</author>
<published>2025-09-30T11:09:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d8ee81cb8a868d4b066a8a087fa7726b638484d8'/>
<id>d8ee81cb8a868d4b066a8a087fa7726b638484d8</id>
<content type='text'>
MFC after:	1 day

(cherry picked from commit fa26e445544eb88f05779258e2ab9c96384fe74d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	1 day

(cherry picked from commit fa26e445544eb88f05779258e2ab9c96384fe74d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove bogus detach routines</title>
<updated>2024-11-30T21:48:00+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-11-05T01:31:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fba4ef71b71e5f3808680f22401d3eab15dd6a4f'/>
<id>fba4ef71b71e5f3808680f22401d3eab15dd6a4f</id>
<content type='text'>
These drivers are not bus drivers, and would need proper detach
routines that tore down state stored in the softc.  Better to just
fail detach outright instead of an incorrect success.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47389

(cherry picked from commit 7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These drivers are not bus drivers, and would need proper detach
routines that tore down state stored in the softc.  Better to just
fail detach outright instead of an incorrect success.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47389

(cherry picked from commit 7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1)
</pre>
</div>
</content>
</entry>
<entry>
<title>gpiobus: Use a bus_child_deleted method to free ivars for children</title>
<updated>2024-11-30T21:43:55+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-11-01T14:09:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dd47685dbdc89e33632d1e7da25e112849c324f7'/>
<id>dd47685dbdc89e33632d1e7da25e112849c324f7</id>
<content type='text'>
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47369

(cherry picked from commit c9e880c0ceef9541625c18add3f5a8499137e016)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47369

(cherry picked from commit c9e880c0ceef9541625c18add3f5a8499137e016)
</pre>
</div>
</content>
</entry>
<entry>
<title>gpiospi: Fix module dependencies.</title>
<updated>2024-11-19T11:40:25+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-11-15T05:53:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5d7079bedcca72fd2ab14b2bf1df914234050dd5'/>
<id>5d7079bedcca72fd2ab14b2bf1df914234050dd5</id>
<content type='text'>
MFC after:	3 days
Reviewed by:	ray
Differential Revision:	https://reviews.freebsd.org/D47570

(cherry picked from commit 79af8f72b3aff993703778423e83320df0953a37)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	3 days
Reviewed by:	ray
Differential Revision:	https://reviews.freebsd.org/D47570

(cherry picked from commit 79af8f72b3aff993703778423e83320df0953a37)
</pre>
</div>
</content>
</entry>
<entry>
<title>gpiopower: trigger low, high and both edges</title>
<updated>2024-02-17T19:22:08+00:00</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2024-01-28T11:29:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=929db0457513b577c4e256f6633dc72f76151c91'/>
<id>929db0457513b577c4e256f6633dc72f76151c91</id>
<content type='text'>
Power off or reset may be activated either by low or high signal or by an
edge.  So, try everything.

Also, the driver now supports DTS properties for timings.

Finally, the driver does not change the pin configuration during attach.
It is assumed that the pin is already in a state that does not trigger
the power event (otherwise we wouldn't be running).

(cherry picked from commit 320e4beb97618c6964380bfa404a3e96c5de7663)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Power off or reset may be activated either by low or high signal or by an
edge.  So, try everything.

Also, the driver now supports DTS properties for timings.

Finally, the driver does not change the pin configuration during attach.
It is assumed that the pin is already in a state that does not trigger
the power event (otherwise we wouldn't be running).

(cherry picked from commit 320e4beb97618c6964380bfa404a3e96c5de7663)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:27+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5510f79042fbd543de55807d0da7f8a2b8be2f89'/>
<id>5510f79042fbd543de55807d0da7f8a2b8be2f89</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in current:
(cherry picked from commit 031beb4e239b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in current:
(cherry picked from commit 031beb4e239b)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:25+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3bc80996974a61a4223eae4c1ccd47b6ee32a48a'/>
<id>3bc80996974a61a4223eae4c1ccd47b6ee32a48a</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .c pattern</title>
<updated>2023-08-23T17:43:23+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ecf688348bd2c1e292b64a1a37b1d0f545aaa11e'/>
<id>ecf688348bd2c1e292b64a1a37b1d0f545aaa11e</id>
<content type='text'>
Remove /^#include\s+&lt;sys/cdefs.h&gt;.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

Similar commit in current:
(cherry picked from commit dfc016587a1e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^#include\s+&lt;sys/cdefs.h&gt;.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

Similar commit in current:
(cherry picked from commit dfc016587a1e)
</pre>
</div>
</content>
</entry>
</feed>
