<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/firmware, branch v5.1</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=v5.1</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2019-01-22T09:23:18Z</updated>
<entry>
<title>tools/firmware/ihex2fw: Replace explicit alignment with ALIGN</title>
<updated>2019-01-22T09:23:18Z</updated>
<author>
<name>Andrey Smirnov</name>
<email>andrew.smirnov@gmail.com</email>
</author>
<published>2018-12-21T07:28:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=925f8d4aad5ca1bf18987a3cdcb0e176bddddcf1'/>
<id>urn:sha1:925f8d4aad5ca1bf18987a3cdcb0e176bddddcf1</id>
<content type='text'>
(X + 3) &amp; ~3 is the same as ALIGN(X, 4), so replace all of the
instances of the formwer in the code with the latter. While at it,
introduce a helper variable 'record_size' to avoid duplicating length
calculatin code. No functional change intended.

Cc: Chris Healy &lt;cphealy@gmail.com&gt;
Cc: Kyle McMartin &lt;kyle@kernel.org&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: linux-kernel &lt;linux-kernel@vger.kernel.org&gt;
Signed-off-by: Andrey Smirnov &lt;andrew.smirnov@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools/firmware/ihex2fw: Simplify next record offset calculation</title>
<updated>2019-01-22T09:23:17Z</updated>
<author>
<name>Andrey Smirnov</name>
<email>andrew.smirnov@gmail.com</email>
</author>
<published>2018-12-21T07:28:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2ef8179bb7a6817de3fc9407ab55aa357f2d1e4d'/>
<id>urn:sha1:2ef8179bb7a6817de3fc9407ab55aa357f2d1e4d</id>
<content type='text'>
We can convert original expression for 'writelen" to use ALIGN as
follows:

    (p-&gt;len + 9) &amp; ~3 =&gt; (p-&gt;len + 6 + 3) &amp; ~3 =&gt; ALIGN(p-&gt;len + 6, 4)

Now, subsituting "p-&gt;len + 6" with "p-&gt;len + sizeof(p-&gt;addr) +
sizeof(p-&gt;len)" we end up with the same expression as used by kernel
couterpart in linux/ihex.h:

    ALIGN(p-&gt;len + sizeof(p-&gt;addr) + sizeof(p-&gt;len), 4)

That is a full size of the record, aligned to 4 bytes. No functional
change intended.

Cc: Chris Healy &lt;cphealy@gmail.com&gt;
Cc: Kyle McMartin &lt;kyle@kernel.org&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: linux-kernel &lt;linux-kernel@vger.kernel.org&gt;
Signed-off-by: Andrey Smirnov &lt;andrew.smirnov@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools: Add 'firmware' category and add ihex2fw tool</title>
<updated>2018-11-11T20:58:27Z</updated>
<author>
<name>Andrey Smirnov</name>
<email>andrew.smirnov@gmail.com</email>
</author>
<published>2018-10-17T18:27:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1e5106031f298af4ad29c2eb866780d9a21e9ab4'/>
<id>urn:sha1:1e5106031f298af4ad29c2eb866780d9a21e9ab4</id>
<content type='text'>
Commit 5620a0d1aacd ("firmware: delete in-kernel firmware") removed
ihex2fw tool together with the rest of the contents of firmware/
folder. Since that tool is quite useful for doing .ihex -&gt; .fw
converstion, restore its original source code to tools/firmware

Suggested-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: Kyle McMartin &lt;kyle@kernel.org&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: linux-kernel &lt;linux-kernel@vger.kernel.org&gt;
Signed-off-by: Andrey Smirnov &lt;andrew.smirnov@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
