<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/base/firmware_class.c, branch v4.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=v4.1</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-03-25T13:49:10Z</updated>
<entry>
<title>drivers: base: fw: fix ret value when loading fw</title>
<updated>2015-03-25T13:49:10Z</updated>
<author>
<name>Zahari Doychev</name>
<email>zahari.doychev@linux.com</email>
</author>
<published>2015-03-10T09:45:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ef518cc8aa4427043efe21cb2f0799be9cb1d74d'/>
<id>urn:sha1:ef518cc8aa4427043efe21cb2f0799be9cb1d74d</id>
<content type='text'>
When using the user mode helper to load firmwares the function _request_firmware
gets a positive return value from fw_load_from_user_helper and because of this
the firmware buffer is not assigned. This happens only when the return value
is zero. This patch fixes this problem in _request_firmware_load. When the
completion is ready the return value is set to zero.

Signed-off-by: Zahari Doychev &lt;zahari.doychev@linux.com&gt;
Cc: Ming Lei &lt;ming.lei@canonical.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware: Avoid manual device_create_file() calls</title>
<updated>2015-03-25T13:41:48Z</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2015-02-04T14:18:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=46239902ecddd4690b6d800da258d0ab65a5cb78'/>
<id>urn:sha1:46239902ecddd4690b6d800da258d0ab65a5cb78</id>
<content type='text'>
Use the static attribute groups assigned to the device instead of
manual device_create_file() &amp; co calls.  It simplifies the code and
can avoid possible races, too.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware_class: Fix whitespace and indentation</title>
<updated>2015-03-25T13:36:19Z</updated>
<author>
<name>Andrei Oprea</name>
<email>andrei.br92@gmail.com</email>
</author>
<published>2015-03-08T10:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ea31003ccb2d684916cb7ebc079437ae85425a6d'/>
<id>urn:sha1:ea31003ccb2d684916cb7ebc079437ae85425a6d</id>
<content type='text'>
Fix checkpatch.pl issues with coding style. Removed whitespace and
fixed indentation

Signed-off-by: Andrei Oprea &lt;andrei.br92@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'driver-core-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core</title>
<updated>2015-02-15T19:11:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-02-15T19:11:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9682ec9692e5ac11c6caebd079324e727b19e7ce'/>
<id>urn:sha1:9682ec9692e5ac11c6caebd079324e727b19e7ce</id>
<content type='text'>
Pull driver core patches from Greg KH:
 "Really tiny set of patches for this kernel.  Nothing major, all
  described in the shortlog and have been in linux-next for a while"

* tag 'driver-core-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
  sysfs: fix warning when creating a sysfs group without attributes
  firmware_loader: handle timeout via wait_for_completion_interruptible_timeout()
  firmware_loader: abort request if wait_for_completion is interrupted
  firmware: Correct function name in comment
  device: Change dev_&lt;level&gt; logging functions to return void
  device: Fix dev_dbg_once macro
</content>
</entry>
<entry>
<title>PM / OPP / clk: Remove unnecessary OOM message</title>
<updated>2015-02-12T01:00:52Z</updated>
<author>
<name>Quentin Lambert</name>
<email>lambert.quentin@gmail.com</email>
</author>
<published>2015-02-09T09:45:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=59d84ca8c46a93ad62f9129458e897e7fe5075de'/>
<id>urn:sha1:59d84ca8c46a93ad62f9129458e897e7fe5075de</id>
<content type='text'>
This patch reduces the kernel size by removing error messages that duplicate
the normal OOM message.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr)

@@
identifier f,print,l;
expression e;
constant char[] c;
@@

e = \(kzalloc\|kmalloc\|devm_kzalloc\|devm_kmalloc\)(...);
if (e == NULL) {
  &lt;+...
-  print(...,c,...);
  ... when any
(
  goto l;
|
  return ...;
)
  ...+&gt; }

Signed-off-by: Quentin Lambert &lt;lambert.quentin@gmail.com&gt;
Acked-by: Nishanth Menon &lt;nm@ti.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>firmware_loader: handle timeout via wait_for_completion_interruptible_timeout()</title>
<updated>2015-02-03T23:33:10Z</updated>
<author>
<name>Ming Lei</name>
<email>ming.lei@canonical.com</email>
</author>
<published>2015-01-12T16:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=68ff2a00dbf590dc9483c20f85fd1f1faa054604'/>
<id>urn:sha1:68ff2a00dbf590dc9483c20f85fd1f1faa054604</id>
<content type='text'>
It is simpler to handle timeout by wait_for_completion_interruptible_timeout(),
so remove previous delay work for timeout.

Signed-off-by: Ming Lei &lt;ming.lei@canonical.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware_loader: abort request if wait_for_completion is interrupted</title>
<updated>2015-02-03T23:33:10Z</updated>
<author>
<name>Ming Lei</name>
<email>ming.lei@canonical.com</email>
</author>
<published>2015-01-12T16:01:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0cb64249ca50033ec22e63582837f94202c63d9f'/>
<id>urn:sha1:0cb64249ca50033ec22e63582837f94202c63d9f</id>
<content type='text'>
If current request is interrupted by signal, such as 'ctrl + c',
this request has to be aborted for the following reasons:

	- the buf need to be removed from pending list
	- same requests from other contexts need to be completed

Reported-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
Signed-off-by: Ming Lei &lt;ming.lei@canonical.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware: Correct function name in comment</title>
<updated>2015-02-03T23:32:18Z</updated>
<author>
<name>Borislav Petkov</name>
<email>bp@suse.de</email>
</author>
<published>2014-12-03T21:46:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3c1556b287b89686fc7b4a210b82174938bb8a02'/>
<id>urn:sha1:3c1556b287b89686fc7b4a210b82174938bb8a02</id>
<content type='text'>
Use the correct function name in the kernel-doc comment above it.

Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Ming Lei &lt;ming.lei@canonical.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware class: Deletion of an unnecessary check before the function call "vunmap"</title>
<updated>2014-11-27T03:41:15Z</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2014-11-19T10:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=daa3d67fa3b5a997761ba594c6bca41b3e78963f'/>
<id>urn:sha1:daa3d67fa3b5a997761ba594c6bca41b3e78963f</id>
<content type='text'>
The vunmap() function performes also input parameter validation. Thus the test
around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>firmware loader: fix hung task warning dump</title>
<updated>2014-11-27T03:41:15Z</updated>
<author>
<name>Kweh, Hock Leong</name>
<email>hock.leong.kweh@intel.com</email>
</author>
<published>2014-11-18T02:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=000deba73a85381d393d58ce0a2a5ccf6a096b5a'/>
<id>urn:sha1:000deba73a85381d393d58ce0a2a5ccf6a096b5a</id>
<content type='text'>
When using request_firmware_nowait() with FW_ACTION_NOHOTPLUG param to
expose user helper interface, if the user do not react immediately, after
120 seconds there will be a hung task warning message dumped as below:

[ 3000.784235] INFO: task kworker/0:0:8259 blocked for more than 120 seconds.
[ 3000.791281]       Tainted: G            E 3.16.0-rc1-yocto-standard #41
[ 3000.798082] "echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3000.806072] kworker/0:0     D cd0075c8     0  8259      2 0x00000000
[ 3000.812765] Workqueue: events request_firmware_work_func
[ 3000.818253]  cd375e18 00000046 0000000e cd0075c8 000000f0 cd40ea00 cd375fec 1b883e89
[ 3000.826374]  0000026b cd40ea00 80000000 00000001 cd0075c8 00000000 cd375de4 c119917f
[ 3000.834492]  cd563360 cd375df4 c119a0ab cd563360 00000000 cd375e24 c119a1d6 00000000
[ 3000.842616] Call Trace:
[ 3000.845252]  [&lt;c119917f&gt;] ? kernfs_next_descendant_post+0x3f/0x50
[ 3000.851543]  [&lt;c119a0ab&gt;] ? kernfs_activate+0x6b/0xc0
[ 3000.856790]  [&lt;c119a1d6&gt;] ? kernfs_add_one+0xd6/0x130
[ 3000.862047]  [&lt;c15fdb02&gt;] schedule+0x22/0x60
[ 3000.866548]  [&lt;c15fd195&gt;] schedule_timeout+0x175/0x1d0
[ 3000.871887]  [&lt;c119b391&gt;] ? __kernfs_create_file+0x71/0xa0
[ 3000.877574]  [&lt;c119bb9a&gt;] ? sysfs_add_file_mode_ns+0xaa/0x180
[ 3000.883533]  [&lt;c15fe84f&gt;] wait_for_completion+0x6f/0xb0
[ 3000.888961]  [&lt;c1065200&gt;] ? wake_up_process+0x40/0x40
[ 3000.894219]  [&lt;c13cb600&gt;] _request_firmware+0x750/0x9f0
[ 3000.899666]  [&lt;c1382a7f&gt;] ? n_tty_receive_buf2+0x1f/0x30
[ 3000.905200]  [&lt;c13cba02&gt;] request_firmware_work_func+0x22/0x50
[ 3000.911235]  [&lt;c10550d2&gt;] process_one_work+0x122/0x380
[ 3000.916571]  [&lt;c1055859&gt;] worker_thread+0xf9/0x470
[ 3000.921555]  [&lt;c1055760&gt;] ? create_and_start_worker+0x50/0x50
[ 3000.927497]  [&lt;c1055760&gt;] ? create_and_start_worker+0x50/0x50
[ 3000.933448]  [&lt;c105a5ff&gt;] kthread+0x9f/0xc0
[ 3000.937850]  [&lt;c15ffd40&gt;] ret_from_kernel_thread+0x20/0x30
[ 3000.943548]  [&lt;c105a560&gt;] ? kthread_worker_fn+0x100/0x100

This patch change the wait_for_completion() function call to
wait_for_completion_interruptible() function call for solving the issue.

Cc: Matt Fleming &lt;matt.fleming@intel.com&gt;
Signed-off-by: Kweh, Hock Leong &lt;hock.leong.kweh@intel.com&gt;
Acked-by: Ming Lei &lt;ming.lei@canonical.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
