1. 17 8月, 2012 2 次提交
    • M
      firmware loader: introduce cache_firmware and uncache_firmware · 2887b395
      Ming Lei 提交于
      This patches introduce two kernel APIs of cache_firmware and
      uncache_firmware, both of which take the firmware file name
      as the only parameter.
      
      So any drivers can call cache_firmware to cache the specified
      firmware file into kernel memory, and can use the cached firmware
      in situations which can't request firmware from user space.
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2887b395
    • M
      firmware loader: always let firmware_buf own the pages buffer · 1f2b7959
      Ming Lei 提交于
      This patch always let firmware_buf own the pages buffer allocated
      inside firmware_data_write, and add all instances of firmware_buf
      into the firmware cache global list. Also introduce one private field
      in 'struct firmware', so release_firmware will see the instance of
      firmware_buf associated with the current firmware instance, then just
      'free' the instance of firmware_buf.
      
      The firmware_buf instance represents one pages buffer for one
      firmware image, so lots of firmware loading requests can share
      the same firmware_buf instance if they request the same firmware
      image file.
      
      This patch will make implementation of the following cache_firmware/
      uncache_firmware very easy and simple.
      
      In fact, the patch improves request_formware/release_firmware:
      
              - only request userspace to write firmware image once if
      	several devices share one same firmware image and its drivers
      	call request_firmware concurrently.
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1f2b7959
  2. 01 11月, 2011 1 次提交
    • P
      include: replace linux/module.h with "struct module" wherever possible · de477254
      Paul Gortmaker 提交于
      The <linux/module.h> pretty much brings in the kitchen sink along
      with it, so it should be avoided wherever reasonably possible in
      terms of being included from other commonly used <linux/something.h>
      files, as it results in a measureable increase on compile times.
      
      The worst culprit was probably device.h since it is used everywhere.
      This file also had an implicit dependency/usage of mutex.h which was
      masked by module.h, and is also fixed here at the same time.
      
      There are over a dozen other headers that simply declare the
      struct instead of pulling in the whole file, so follow their lead
      and simply make it a few more.
      
      Most of the implicit dependencies on module.h being present by
      these headers pulling it in have been now weeded out, so we can
      finally make this change with hopefully minimal breakage.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      de477254
  3. 04 2月, 2011 1 次提交
  4. 22 5月, 2010 1 次提交
  5. 12 12月, 2009 1 次提交
    • J
      firmware_class: make request_firmware_nowait more useful · 9ebfbd45
      Johannes Berg 提交于
      Unfortunately, one cannot hold on to the struct firmware
      that request_firmware_nowait() hands off, which is needed
      in some cases. Allow this by requiring the callback to
      free it (via release_firmware).
      
      Additionally, give it a gfp_t parameter -- all the current
      users call it from a GFP_KERNEL context so the GFP_ATOMIC
      isn't necessary. This also marks an API break which is
      useful in a sense, although that is obviously not the
      primary purpose of this change.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Cc: Ming Lei <tom.leiming@gmail.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: David Woodhouse <David.Woodhouse@intel.com>
      Cc: Pavel Roskin <proski@gnu.org>
      Cc: Abhay Salunke <abhay_salunke@dell.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9ebfbd45
  6. 16 6月, 2009 1 次提交
  7. 10 7月, 2008 2 次提交
    • D
      firmware: allow firmware files to be built into kernel image · 5658c769
      David Woodhouse 提交于
      Some drivers have their own hacks to bypass the kernel's firmware loader
      and build their firmware into the kernel; this renders those unnecessary.
      
      Other drivers don't use the firmware loader at all, because they always
      want the firmware to be available. This allows them to start using the
      firmware loader.
      
      A third set of drivers already use the firmware loader, but can't be
      used without help from userspace, which sometimes requires an initrd.
      This allows them to work in a static kernel.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      5658c769
    • D
      firmware: make fw->data const · b7a39bd0
      David Woodhouse 提交于
      In preparation for supporting firmware files linked into the static
      kernel, make fw->data const to ensure that users aren't modifying it (so
      that we can pass a pointer to the original in-kernel copy, rather than
      having to copy it).
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      b7a39bd0
  8. 05 7月, 2008 1 次提交
  9. 11 3月, 2008 1 次提交
  10. 22 5月, 2006 1 次提交
  11. 05 1月, 2006 1 次提交
  12. 08 9月, 2005 1 次提交
  13. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4