From: Inaky Perez-Gonzalez Date: Mon, 14 Sep 2009 21:10:16 +0000 (-0700) Subject: wimax/i2400m: cache firmware on system suspend X-Git-Tag: v2.6.33-rc1~388^2~487^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b43ca708a767a5f68eeeb732c569c0f11a7d6f7;p=pandora-kernel.git wimax/i2400m: cache firmware on system suspend In preparation for a reset_resume implementation, have the firmware image be cached in memory when the system goes to suspend and released when out. This is needed in case the device resets during suspend; the driver can't load firmware until resume is completed or bad deadlocks happen. The modus operandi for this was copied from the Orinoco USB driver. The caching is done with a kobject to avoid race conditions when releasing it. The fw loader path is altered only to first check for a cached image before trying to load from disk. A Power Management event notifier is register to call i2400m_fw_cache() or i2400m_fw_uncache() which take care of the actual cache management. Signed-off-by: Inaky Perez-Gonzalez --- Reading git-diff-tree failed