From: Ming Lei Date: Mon, 20 Aug 2012 11:04:16 +0000 (+0800) Subject: firmware loader: let caching firmware piggyback on loading firmware X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~76^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac39b3ea73aacde876d1d5ee1ca3e2719f771482;p=pandora-kernel.git firmware loader: let caching firmware piggyback on loading firmware After starting caching firmware, there is still some time left before devices are suspended, during the period, request_firmware or its nowait version may still be triggered by the below situations to load firmware images which can't be cached during suspend/resume cycle. - new devices added - driver bind - or device open kind of things This patch utilizes the piggyback trick to cache firmware for this kind of situation: just increase the firmware buf's reference count and add the fw name entry into cache entry list after starting caching firmware and before syscore_suspend() is called. Signed-off-by: Ming Lei Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed