Attempt kernel firmware load before going to udev.
authorNeil Gabriel <ngabriel@nvidia.com>
Tue, 21 Jan 2014 18:03:59 +0000 (12:03 -0600)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 12 Feb 2014 19:05:01 +0000 (11:05 -0800)
commitcb1f95b40dc6cd9cc5c72387bc71c1b3906b605e
treef6142daa950a4d4e57a4708b0b4cb2296aa80511
parent5d7c808ca2f289aa07672c893cb9f4719f20668b
Attempt kernel firmware load before going to udev.

request_firmware() should fall back to usermodehelper
routines to load firmware only after a failed attempt
to load it directly. Prior to this change, the code
will attempt to lock the usermodehelper state before
attempting to load the firmware directly. If the
usermodehelper is disabled, the lock attempts will
fail and request_firmware() will exit without even
attempting a direct load.

Bug 1403956

Change-Id: I26c502d30657eab3d382d139618f9daa366068cf
Signed-off-by: Neil Gabriel <ngabriel@nvidia.com>
Reviewed-on: http://git-master/r/358303
Reviewed-on: http://git-master/r/362065
(cherry picked from commit 50ba73a322afff1e63d1cc2880bef7c907db98d6)
Reviewed-on: http://git-master/r/366457
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Tested-by: Pankaj Dabade <pdabade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/base/firmware_class.c