From: Ming Lei Date: Sat, 4 Aug 2012 04:01:16 +0000 (+0800) Subject: firmware loader: simplify pages ownership transfer X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~76^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65710cb6ea315b3ef76a8a3da7be99afcf58d2bb;p=pandora-kernel.git firmware loader: simplify pages ownership transfer This patch doesn't transfer ownership of pages' buffer to the instance of firmware until the firmware loading is completed, which will simplify firmware_loading_store a lot, so help to introduce the following cache_firmware and uncache_firmware mechanism during system suspend-resume cycle. In fact, this patch fixes one bug: if writing data into firmware loader device is bypassed between writting 1 and 0 to 'loading', OOPS will be triggered without the patch. Also handle the vmap failure case, and add some comments to make code more readable. Signed-off-by: Ming Lei Cc: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed