]> git.baikalelectronics.ru Git - kernel.git/commit
firmware loader: let direct loading back on 'firmware_buf'
authorMing Lei <ming.lei@canonical.com>
Tue, 9 Oct 2012 04:01:03 +0000 (12:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 15:37:17 +0000 (08:37 -0700)
commit16c6d8fed6b03dbf57d413c243b414ecf27b6caf
treec372c4a60a4a5b00b408de1c09f27bba077f9fc0
parent87604fe0055df802d137e11fa6ca472debedc17f
firmware loader: let direct loading back on 'firmware_buf'

Firstly 'firmware_buf' is introduced to make all loading requests
to share one firmware kernel buffer, so firmware_buf should
be used in direct loading for saving memory and speedup firmware
loading.

Secondly, the commit below

d4fe0ea3a3fe16ad3d6e99c0ab5802de41211c9f(firmware:teach
the kernel to load firmware files directly from the filesystem)

introduces direct loading for fixing udev regression, but it
bypasses the firmware cache meachnism, so this patch enables
caching firmware for direct loading case since it is still needed
to solve drivers' dependency during system resume.

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c