<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/hsi/hsi.c, branch master</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>hsi: Build hsi_boardinfo.c into hsi core if enabled</title>
<updated>2016-06-15T14:02:50+00:00</updated>
<author>
<name>Andrew F. Davis</name>
<email>afd@ti.com</email>
</author>
<published>2016-06-14T16:13:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=e01957abd4cb3816a1eaaf191b16de182ebb333e'/>
<id>e01957abd4cb3816a1eaaf191b16de182ebb333e</id>
<content type='text'>
If the HSI core is built as a module hsi_boardinfo may still
be built-in as its Kconfig type is bool, which can cause build
issues. Fix this by building this code into the HSI core when
enabled.

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Andrew F. Davis &lt;afd@ti.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the HSI core is built as a module hsi_boardinfo may still
be built-in as its Kconfig type is bool, which can cause build
issues. Fix this by building this code into the HSI core when
enabled.

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Andrew F. Davis &lt;afd@ti.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hsi: use kmemdup</title>
<updated>2016-05-29T18:38:02+00:00</updated>
<author>
<name>Muhammad Falak R Wani</name>
<email>falakreyaz@gmail.com</email>
</author>
<published>2016-05-19T11:09:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b32bd7e7d5c1c04bb351420c09217f38dad8b8f1'/>
<id>b32bd7e7d5c1c04bb351420c09217f38dad8b8f1</id>
<content type='text'>
Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani &lt;falakreyaz@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani &lt;falakreyaz@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hsi: correctly handle return value of kzalloc</title>
<updated>2015-10-19T09:42:02+00:00</updated>
<author>
<name>Insu Yun</name>
<email>wuninsu@gmail.com</email>
</author>
<published>2015-10-17T19:25:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=d2c85ac24ed7636934f469fac8836b87c7e6cb40'/>
<id>d2c85ac24ed7636934f469fac8836b87c7e6cb40</id>
<content type='text'>
Since kzalloc can be failed in memory pressure,
its return value should be checked and handled.

Signed-off-by: Insu Yun &lt;wuninsu@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since kzalloc can be failed in memory pressure,
its return value should be checked and handled.

Signed-off-by: Insu Yun &lt;wuninsu@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hsi: fix double kfree</title>
<updated>2015-10-14T11:22:00+00:00</updated>
<author>
<name>Geliang Tang</name>
<email>geliangtang@163.com</email>
</author>
<published>2015-10-01T14:35:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f098a045350ecd6045f2f2d5a50fecf2a98962d7'/>
<id>f098a045350ecd6045f2f2d5a50fecf2a98962d7</id>
<content type='text'>
When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.

Fixes: a2aa24734d9db ("HSI: Add common DT binding for HSI client devices")
Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.

Fixes: a2aa24734d9db ("HSI: Add common DT binding for HSI client devices")
Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HSI: Add common DT binding for HSI client devices</title>
<updated>2014-05-15T22:54:45+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2014-03-28T21:59:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a2aa24734d9dbbd3b9062c2459936c336278fa6a'/>
<id>a2aa24734d9dbbd3b9062c2459936c336278fa6a</id>
<content type='text'>
Implement and document generic DT bindings for HSI clients.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement and document generic DT bindings for HSI clients.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HSI: export method to (un)register clients</title>
<updated>2014-05-15T22:54:41+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2014-03-28T21:54:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8491451024bcfabdcebd772ce9ec2fc5757acd42'/>
<id>8491451024bcfabdcebd772ce9ec2fc5757acd42</id>
<content type='text'>
Expose method for registering and unregistering HSI clients, so that
client drivers can register other client drivers.

This is useful for HSI drivers, which want to use the functionality
of other HSI drivers. For example the N900 modem driver can load HSI
drivers for mcsaab protocol and speech protocol.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose method for registering and unregistering HSI clients, so that
client drivers can register other client drivers.

This is useful for HSI drivers, which want to use the functionality
of other HSI drivers. For example the N900 modem driver can load HSI
drivers for mcsaab protocol and speech protocol.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HSI: Add channel resource support to HSI clients</title>
<updated>2014-05-15T22:54:36+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2014-03-28T21:48:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a088cf161cc87b39e83c7c53b9f239773422d212'/>
<id>a088cf161cc87b39e83c7c53b9f239773422d212</id>
<content type='text'>
Make HSI channel ids platform data, which can be provided
by platform data.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make HSI channel ids platform data, which can be provided
by platform data.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HSI: method to unregister clients from an hsi port</title>
<updated>2014-05-15T22:54:29+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2013-10-06T18:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a0bf37edb4d34c21bdaa19a1624378924b917491'/>
<id>a0bf37edb4d34c21bdaa19a1624378924b917491</id>
<content type='text'>
This exports a method to unregister all clients from
an hsi port.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This exports a method to unregister all clients from
an hsi port.

Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Reviewed-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hsi: convert bus code to use dev_groups</title>
<updated>2013-10-17T01:36:04+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2013-10-07T06:55:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=00173146897b15b07b8be6c95dd74486e530825d'/>
<id>00173146897b15b07b8be6c95dd74486e530825d</id>
<content type='text'>
The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead.  This converts the hsi code to use the
correct field.

Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead.  This converts the hsi code to use the
correct field.

Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: avoid format string in dev_set_name</title>
<updated>2013-07-03T23:07:41+00:00</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2013-07-03T22:04:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=02aa2a37636c8fa4fb9322d91be46ff8225b7de0'/>
<id>02aa2a37636c8fa4fb9322d91be46ff8225b7de0</id>
<content type='text'>
Calling dev_set_name with a single paramter causes it to be handled as a
format string.  Many callers are passing potentially dynamic string
content, so use "%s" in those cases to avoid any potential accidents,
including wrappers like device_create*() and bdi_register().

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling dev_set_name with a single paramter causes it to be handled as a
format string.  Many callers are passing potentially dynamic string
content, so use "%s" in those cases to avoid any potential accidents,
including wrappers like device_create*() and bdi_register().

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
