<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/hte, branch v6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v6.4</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2023-04-26T22:44:30Z</updated>
<entry>
<title>hte: tegra-194: Use proper includes</title>
<updated>2023-04-26T22:44:30Z</updated>
<author>
<name>Linus Walleij</name>
<email>linus.walleij@linaro.org</email>
</author>
<published>2023-02-08T17:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ca3d1a4b419acad3fca6828884acb03614f7558b'/>
<id>urn:sha1:ca3d1a4b419acad3fca6828884acb03614f7558b</id>
<content type='text'>
The test driver uses the gpiod consumer API so include the right
&lt;linux/gpio/consumer.h&gt; header. This may cause a problem with
struct of_device_id being implcitly pulled in by the legacy
header &lt;linux/gpio.h&gt; so include &lt;linux/mod_devicetable.h&gt;
explicitly as well.

While at it, drop explicit moduleparam.h (it's included with module.h)
and sort the headers.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: Use device_match_of_node()</title>
<updated>2023-04-26T22:44:19Z</updated>
<author>
<name>ye xingchen</name>
<email>ye.xingchen@zte.com.cn</email>
</author>
<published>2022-11-17T07:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9e0c2d40a40733fba605ff47a08f3eba2fab4fbb'/>
<id>urn:sha1:9e0c2d40a40733fba605ff47a08f3eba2fab4fbb</id>
<content type='text'>
Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen &lt;ye.xingchen@zte.com.cn&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: tegra-194: Fix off by one in tegra_hte_map_to_line_id()</title>
<updated>2023-04-26T22:44:14Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@linaro.org</email>
</author>
<published>2023-04-19T14:30:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e078180d66848a6a890daf0a3ce28dc43cc66790'/>
<id>urn:sha1:e078180d66848a6a890daf0a3ce28dc43cc66790</id>
<content type='text'>
The "map_sz" is the number of elements in the "m" array so the &gt;
comparison needs to be changed to &gt;= to prevent an out of bounds
read.

Fixes: 09574cca6ad6 ("hte: Add Tegra194 HTE kernel provider")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: tegra: fix 'struct of_device_id' build error</title>
<updated>2023-04-26T22:44:06Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2022-12-15T16:46:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6680c835ada1b34e882d0a32612f7294c62e27e0'/>
<id>urn:sha1:6680c835ada1b34e882d0a32612f7294c62e27e0</id>
<content type='text'>
Without the extra #include, this driver produces a build failure
in some configurations.

drivers/hte/hte-tegra194-test.c:96:34: error: array type has incomplete element type 'struct of_device_id'
   96 | static const struct of_device_id tegra_hte_test_of_match[] = {

Fixes: 9a75a7cd03c9 ("hte: Add Tegra HTE test driver")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: Use of_property_present() for testing DT property presence</title>
<updated>2023-04-26T22:43:57Z</updated>
<author>
<name>Rob Herring</name>
<email>robh@kernel.org</email>
</author>
<published>2023-03-10T14:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=902dea62b3dda532172c0f4d0410fe595266b22c'/>
<id>urn:sha1:902dea62b3dda532172c0f4d0410fe595266b22c</id>
<content type='text'>
It is preferred to use typed property access functions (i.e.
of_property_read_&lt;type&gt; functions) rather than low-level
of_get_property/of_find_property functions for reading properties. As
part of this, convert of_get_property/of_find_property calls to the
recently added of_property_present() helper when we just want to test
for presence of a property and nothing more.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: handle nvidia,gpio-controller property</title>
<updated>2023-04-26T22:43:42Z</updated>
<author>
<name>Dipen Patel</name>
<email>dipenp@nvidia.com</email>
</author>
<published>2023-04-14T00:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d02b1cabc7c6fe0e237bf8a2a6a8813302cfd87c'/>
<id>urn:sha1:d02b1cabc7c6fe0e237bf8a2a6a8813302cfd87c</id>
<content type='text'>
The dt binding adds nvidia,gpio-controller property from Tegra234 SoC
onwards to simplify code handling gpio chip search. The gpio chip search
is needed for the AON GPIO GTE instances to map the hardware timestamp
GPIO request (coming from the GPIO framework) to the tegra HTE
providers. The patch also adds new gpio chip match function to match
from the fwnode instead of the gpio controller label. The addition
of the property does not break ABI for the existing Tegra194 code.

Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>hte: Deprecate nvidia,slices property</title>
<updated>2023-04-26T22:43:34Z</updated>
<author>
<name>Dipen Patel</name>
<email>dipenp@nvidia.com</email>
</author>
<published>2023-04-14T00:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0ebc475fb636df12222faa04dd989a4e3c87f31a'/>
<id>urn:sha1:0ebc475fb636df12222faa04dd989a4e3c87f31a</id>
<content type='text'>
The relevant DT bindings deprecates nvidia,slices property from
Tegra234 SoC onwards, moving the slices value per SoC data structure
instead.

Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: Add Tegra234 provider</title>
<updated>2023-04-26T22:43:26Z</updated>
<author>
<name>Dipen Patel</name>
<email>dipenp@nvidia.com</email>
</author>
<published>2023-04-14T00:44:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b003fb5c9df8a8923bf46e0c00cc54edcfb0fbe3'/>
<id>urn:sha1:b003fb5c9df8a8923bf46e0c00cc54edcfb0fbe3</id>
<content type='text'>
The Tegra234 AON GPIO instance and LIC IRQ support HTE. For the GPIO
HTE support, it also requires to add mapping between GPIO and HTE
framework same as it was done with Tegra194 SoC.

Signed-off-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: Uninitialized variable in hte_ts_get()</title>
<updated>2022-05-20T13:54:41Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2022-05-06T14:54:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=348b10b075f35828a21bf928edf7f6b1737b1840'/>
<id>urn:sha1:348b10b075f35828a21bf928edf7f6b1737b1840</id>
<content type='text'>
The "free_name" variable is sometimes used without being initialized.

Fixes: 31ab09b42188 ("drivers: Add hardware timestamp engine (HTE) subsystem")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
</content>
</entry>
<entry>
<title>hte: Fix off by one in hte_push_ts_ns()</title>
<updated>2022-05-10T13:35:52Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2022-05-06T14:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e30b64a3ab9b9640e25b2ee6d7a9d70c1efd3b67'/>
<id>urn:sha1:e30b64a3ab9b9640e25b2ee6d7a9d70c1efd3b67</id>
<content type='text'>
The &amp;chip-&gt;gdev-&gt;ei[] array has chip-&gt;nlines elements so this &gt;
comparison needs to be &gt;= to prevent an out of bounds access. The
gdev-&gt;ei[] array is allocated in hte_register_chip().

Fixes: 31ab09b42188 ("drivers: Add hardware timestamp engine (HTE) subsystem")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Acked-by: Dipen Patel &lt;dipenp@nvidia.com&gt;
Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
</content>
</entry>
</feed>
