<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/dev/extres, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-11-17T14:59:58Z</updated>
<entry>
<title>syscon: Add syscon_get_by_ofw_node</title>
<updated>2020-11-17T14:59:58Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2020-11-17T14:59:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=e35c28a24b850afd23beccf9c6683d9cd0b7c4b3'/>
<id>urn:sha1:e35c28a24b850afd23beccf9c6683d9cd0b7c4b3</id>
<content type='text'>
This allow to get a syscon node defined under a specific fdt node (which isn't
always the device one).
</content>
</entry>
<entry>
<title>clk: fix indentation</title>
<updated>2020-10-17T23:42:33Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2020-10-17T23:42:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3d8a0ab61da10c861e90c7b3029c006bbfd3dbe1'/>
<id>urn:sha1:3d8a0ab61da10c861e90c7b3029c006bbfd3dbe1</id>
<content type='text'>
Just fix indentation of an if() clause.
No functional changes intended.

MFC after:	3 days
</content>
</entry>
<entry>
<title>Fix the inverted condition in mtx_asserts.</title>
<updated>2020-10-01T09:50:08Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-10-01T09:50:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c19440e3502be65a84af0c56fbcd48898e4325f8'/>
<id>urn:sha1:c19440e3502be65a84af0c56fbcd48898e4325f8</id>
<content type='text'>
Mutex should be owned in affected functions.

Reborted by:	emaste
MFC after:	4 weeks
MFC with:	r366161
</content>
</entry>
<entry>
<title>Refine locking inside of syscon driver.</title>
<updated>2020-09-25T16:44:01Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-09-25T16:44:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=01d0f9c0e40a44cff5e25842b72075cbaf0864de'/>
<id>urn:sha1:01d0f9c0e40a44cff5e25842b72075cbaf0864de</id>
<content type='text'>
In some cases, the syscon driver may be used by consumer requiring better
control about locking (ie. it may be used as registe file provider for clock
driver which needs locked access to multiple registers).
Add fine locking protocol methods together with bunch of helper functions
in syscon driver and implement this functionality in syscon_generic driver.

MFC after:	4 weeks
</content>
</entry>
<entry>
<title>Correctly handle nodes compatible with "syscon", "simple-bus".</title>
<updated>2020-09-25T13:52:31Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-09-25T13:52:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8dc348a47965722ce5302636f1262d8516fba2c3'/>
<id>urn:sha1:8dc348a47965722ce5302636f1262d8516fba2c3</id>
<content type='text'>
Syscon can also have child nodes that share a registration file with it.
To do this correctly, follow these steps:
- subclass syscon from simplebus and expose it if the node is also
  "simple-bus" compatible.
- block simplebus probe for this compatible string, so it's priority
 (bus pass) doesn't colide with syscon driver.

While I'm in, also block "syscon", "simple-mfd" for the same reason.

MFC after:	4 weeks
</content>
</entry>
<entry>
<title>aw_clk_nm: fix incorrect use of abs()</title>
<updated>2020-09-07T06:27:18Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2020-09-07T06:27:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c3a7328be8b3269c49e3aa1fe29783f0c21d1e55'/>
<id>urn:sha1:c3a7328be8b3269c49e3aa1fe29783f0c21d1e55</id>
<content type='text'>
abs() takes a (signed) int as input.
Instead, it was used with unsigned 64-bit integers.

So, add and use a new helper function to calculate a difference between
two uint64_t-s.

Reviewed by:	manu
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D26307
</content>
</entry>
<entry>
<title>Add syscon power and reset control device driver</title>
<updated>2020-07-26T18:19:50Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2020-07-26T18:19:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=28da7c9ed0f28f79a819b4003b32e81a3fdf55b5'/>
<id>urn:sha1:28da7c9ed0f28f79a819b4003b32e81a3fdf55b5</id>
<content type='text'>
This device driver supports both syscon-power and syscon-reset devices,
as specified in [1] and [2]. These provide a very simple interface for
power and reset control, and among other things are used by QEMU's virt
machine on RISC-V. A separate commit will enable this on RISC-V, as that
requires adding a RISC-V-specific riscv_syscon akin to r327936's
aw_syscon.

[1] https://www.kernel.org/doc/Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt
[2] https://www.kernel.org/doc/Documentation/devicetree/bindings/power/reset/syscon-reboot.txt

Reviewed by:	brooks (mentor), jhb (mentor)
Approved by:	brooks (mentor), jhb (mentor)
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D25724
</content>
</entry>
<entry>
<title>Revert r363123.</title>
<updated>2020-07-25T06:32:23Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-07-25T06:32:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d873a521cad3dfa744d069c9a682c6ac0d21d837'/>
<id>urn:sha1:d873a521cad3dfa744d069c9a682c6ac0d21d837</id>
<content type='text'>
As Emanuel poited me the Linux processes these clock assignments in forward
order, not in reversed. I misread the original code.
Tha problem with wrong order for assigned clocks found in tegra (and some imx)
DT should be reanalyzed and solved by different way.

MFC with:	r363123
Reported by;	manu
</content>
</entry>
<entry>
<title>Reverse the processing order of assigned clocks property.</title>
<updated>2020-07-12T07:59:15Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-07-12T07:59:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c0c5cf7b31ff943dc4f0d473f9b03efb1c6d6fba'/>
<id>urn:sha1:c0c5cf7b31ff943dc4f0d473f9b03efb1c6d6fba</id>
<content type='text'>
Linux processes these clocks in reverse order and some DT relies
on this fact. For example, the frequency setting for a given PLL
is the last in the list, preceded by the frequency setting of its
following divider or so...

MFC after:	1 week
</content>
</entry>
<entry>
<title> Assigned clocks: fix off-by-one bug, don't leak allocated memory.</title>
<updated>2020-07-12T07:42:21Z</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2020-07-12T07:42:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=a9be5d7515f96cfce750984e21458e11e9d755a7'/>
<id>urn:sha1:a9be5d7515f96cfce750984e21458e11e9d755a7</id>
<content type='text'>
 MFC after:	1 week
</content>
</entry>
</feed>
