<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/dio, branch v6.5-rc4</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>drivers: dio: fix possible memory leak in dio_init()</title>
<updated>2022-11-09T14:12:37+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2022-11-09T06:40:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e63e99397b2613d50a5f4f02ed07307e67a190f1'/>
<id>e63e99397b2613d50a5f4f02ed07307e67a190f1</id>
<content type='text'>
If device_register() returns error, the 'dev' and name needs be
freed. Add a release function, and then call put_device() in the
error path, so the name is freed in kobject_cleanup() and to the
'dev' is freed in release function.

Fixes: 2e4c77bea3d8 ("m68k: dio - Kill warn_unused_result warnings")
Fixes: 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20221109064036.1835346-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If device_register() returns error, the 'dev' and name needs be
freed. Add a release function, and then call put_device() in the
error path, so the name is freed in kobject_cleanup() and to the
'dev' is freed in release function.

Fixes: 2e4c77bea3d8 ("m68k: dio - Kill warn_unused_result warnings")
Fixes: 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20221109064036.1835346-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: add missing iounmap() in dio_init()</title>
<updated>2022-05-19T16:56:51+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2022-05-11T06:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=077f5d900f62a817b155e614e7eb79220b1405de'/>
<id>077f5d900f62a817b155e614e7eb79220b1405de</id>
<content type='text'>
If kzalloc() fails, iounmap() need be called in error path.

Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20220511064506.3398512-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If kzalloc() fails, iounmap() need be called in error path.

Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Link: https://lore.kernel.org/r/20220511064506.3398512-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: Missing a blank line after declarations</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=aafce7bc5908205c9169a9a362e1c5a46b4d2cf2'/>
<id>aafce7bc5908205c9169a9a362e1c5a46b4d2cf2</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; WARNING: Missing a blank line after declarations
&lt; #97: FILE: drivers/dio/dio.c:97:
&lt; +     unsigned int i;
&lt; +     for (i = 0; i &lt; ARRAY_SIZE(names); i++)

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-7-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl error:

&lt; WARNING: Missing a blank line after declarations
&lt; #97: FILE: drivers/dio/dio.c:97:
&lt; +     unsigned int i;
&lt; +     for (i = 0; i &lt; ARRAY_SIZE(names); i++)

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-7-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: code indent should use tabs</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dffae938c06aea287ee2a28af90b6e5b15f79a19'/>
<id>dffae938c06aea287ee2a28af90b6e5b15f79a19</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: code indent should use tabs where possible
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; ERROR: code indent should use tabs where possible
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$

+ 44 more errors of type "code indent should use tabs where
possible"
+ 41 more warnings of type "please, no spaces at the start of a
line"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-6-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl error:

&lt; ERROR: code indent should use tabs where possible
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #61: FILE: drivers/dio/dio.c:61:
&lt; +        int id;$
&lt;
&lt; ERROR: code indent should use tabs where possible
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$
&lt;
&lt; WARNING: please, no spaces at the start of a line
&lt; #62: FILE: drivers/dio/dio.c:62:
&lt; +        const char *name;$

+ 44 more errors of type "code indent should use tabs where
possible"
+ 41 more warnings of type "please, no spaces at the start of a
line"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-6-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: space required after that ','</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f8b187c254350a938ac6eca279e2bd90e96d4586'/>
<id>f8b187c254350a938ac6eca279e2bd90e96d4586</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space required after that ',' (ctx:VxV)
&lt; #239: FILE: drivers/dio/dio.c:239:
&lt; +                strcpy(dev-&gt;name,dio_getname(dev-&gt;id));

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-5-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space required after that ',' (ctx:VxV)
&lt; #239: FILE: drivers/dio/dio.c:239:
&lt; +                strcpy(dev-&gt;name,dio_getname(dev-&gt;id));

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-5-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: space prohibited after parenthesis</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c3c6138589e640a4ef538cec633499055652b4f6'/>
<id>c3c6138589e640a4ef538cec633499055652b4f6</id>
<content type='text'>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space prohibited after that open parenthesis '('
&lt; #67: FILE: drivers/dio/dio.c:67:
&lt; +#define DIOFBNAME(x) { DIO_ENCODE_ID( DIO_ID_FBUFFER, DIO_ID2_##x),
DIO_DESC2_##x }

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-4-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl error:

&lt; ERROR: space prohibited after that open parenthesis '('
&lt; #67: FILE: drivers/dio/dio.c:67:
&lt; +#define DIOFBNAME(x) { DIO_ENCODE_ID( DIO_ID_FBUFFER, DIO_ID2_##x),
DIO_DESC2_##x }

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-4-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: trailing whitespace</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7649cb6f3daf2ed8e248c8e923d0fbd6204a0582'/>
<id>7649cb6f3daf2ed8e248c8e923d0fbd6204a0582</id>
<content type='text'>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: trailing whitespace
&lt; #5: FILE: drivers/dio/dio.c:5:
&lt; + * $
&lt;
&lt; ERROR: trailing whitespace
&lt; #11: FILE: drivers/dio/dio.c:11:
&lt; + *    This means that framebuffers should pass it as $
&lt;
&lt; ERROR: trailing whitespace
&lt; #17: FILE: drivers/dio/dio.c:17:
&lt; + *    Every DIO card has a fixed interrupt priority level. This
function $
&lt;
&lt; ERROR: trailing whitespace
&lt; #20: FILE: drivers/dio/dio.c:20:
&lt; + *    Return a character string describing this board [might be "" if
$
&lt;
&lt; ERROR: trailing whitespace
&lt; #25: FILE: drivers/dio/dio.c:25:
&lt; + * This file is based on the way the Amiga port handles Zorro II
cards, $

+ 15 more errors and warnings of type "trailing whitespace"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-3-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: trailing whitespace
&lt; #5: FILE: drivers/dio/dio.c:5:
&lt; + * $
&lt;
&lt; ERROR: trailing whitespace
&lt; #11: FILE: drivers/dio/dio.c:11:
&lt; + *    This means that framebuffers should pass it as $
&lt;
&lt; ERROR: trailing whitespace
&lt; #17: FILE: drivers/dio/dio.c:17:
&lt; + *    Every DIO card has a fixed interrupt priority level. This
function $
&lt;
&lt; ERROR: trailing whitespace
&lt; #20: FILE: drivers/dio/dio.c:20:
&lt; + *    Return a character string describing this board [might be "" if
$
&lt;
&lt; ERROR: trailing whitespace
&lt; #25: FILE: drivers/dio/dio.c:25:
&lt; + * This file is based on the way the Amiga port handles Zorro II
cards, $

+ 15 more errors and warnings of type "trailing whitespace"

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-3-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: brace should be on the previous line</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8a4606c6429d2600deded63d6d3fbe99af99942d'/>
<id>8a4606c6429d2600deded63d6d3fbe99af99942d</id>
<content type='text'>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: open brace '{' following struct go on the same line
&lt; +struct dioname
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +static struct dioname names[] =
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +        for (scode = 0; scode &lt; DIO_SCMAX; ++scode)
&lt; +        {
&lt;
&lt; WARNING: braces {} are not necessary for any arm of this statement
&lt; +        if (scode &gt;= DIOII_SCBASE) {
&lt; [...]
&lt; +        } else if (scode &gt; DIO_SCMAX || scode &lt; 0)
&lt; [...]
&lt; +        else if (DIO_SCINHOLE(scode))
&lt; [...]

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-2-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl errors and warnings:

&lt; ERROR: open brace '{' following struct go on the same line
&lt; +struct dioname
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +static struct dioname names[] =
&lt; +{
&lt;
&lt; ERROR: that open brace { should be on the previous line
&lt; +        for (scode = 0; scode &lt; DIO_SCMAX; ++scode)
&lt; +        {
&lt;
&lt; WARNING: braces {} are not necessary for any arm of this statement
&lt; +        if (scode &gt;= DIOII_SCBASE) {
&lt; [...]
&lt; +        } else if (scode &gt; DIO_SCMAX || scode &lt; 0)
&lt; [...]
&lt; +        else if (DIO_SCINHOLE(scode))
&lt; [...]

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-2-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: dio: Use &lt;linux/io.h&gt; instead &lt;asm/io.h&gt;</title>
<updated>2022-02-04T15:45:39+00:00</updated>
<author>
<name>Aleksa Vučković</name>
<email>aleksav013@gmail.com</email>
</author>
<published>2022-01-27T13:50:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=10f4629f85f1caae6583dc69159740ab26fdf78c'/>
<id>10f4629f85f1caae6583dc69159740ab26fdf78c</id>
<content type='text'>
This patch fixes the checkpatch.pl warning:

&lt; WARNING: Use #include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;
&lt; #36: FILE: drivers/dio/dio.c:36:
&lt; +#include &lt;asm/io.h&gt;                             /* readb() */

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-1-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the checkpatch.pl warning:

&lt; WARNING: Use #include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;
&lt; #36: FILE: drivers/dio/dio.c:36:
&lt; +#include &lt;asm/io.h&gt;                             /* readb() */

Signed-off-by: Aleksa Vučković &lt;aleksav013@gmail.com&gt;
Link: https://lore.kernel.org/r/20220127135054.27281-1-aleksav013@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dio: return -ENOMEM when kzalloc() fails</title>
<updated>2021-07-21T13:53:24+00:00</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2021-07-02T13:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d1d26f40f71c6eabeb2083e2a18d2e55e9a71336'/>
<id>d1d26f40f71c6eabeb2083e2a18d2e55e9a71336</id>
<content type='text'>
Return -ENOMEM when kzalloc() fails in order to inform the caller of the
failure.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Link: https://lore.kernel.org/r/20210702133114.GA314157@pc
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return -ENOMEM when kzalloc() fails in order to inform the caller of the
failure.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Link: https://lore.kernel.org/r/20210702133114.GA314157@pc
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
