]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
soc: ti: use request_firmware_direct() as acc firmware is optional
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 19 Oct 2015 18:09:34 +0000 (11:09 -0700)
committerSantosh Shilimkar <ssantosh@kernel.org>
Mon, 19 Oct 2015 18:09:34 +0000 (11:09 -0700)
When firmware image for PDSP firmware is absent in the file system
the kernel boot with ramfs/nfs is stuck for 60 seconds being the
the default timeout. request_firmware_direct() is to take care of
such optional firmware loading and hence replace the call in the
driver with this API.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
drivers/soc/ti/knav_qmss_queue.c

index f3a0b6a4b54ef8093f2dbbabbcdd7c07de1cddbe..89789e22e4236837497131df3450384eaf825af8 100644 (file)
@@ -1519,9 +1519,9 @@ static int knav_queue_load_pdsp(struct knav_device *kdev,
 
        for (i = 0; i < ARRAY_SIZE(knav_acc_firmwares); i++) {
                if (knav_acc_firmwares[i]) {
-                       ret = request_firmware(&fw,
-                                              knav_acc_firmwares[i],
-                                              kdev->dev);
+                       ret = request_firmware_direct(&fw,
+                                                     knav_acc_firmwares[i],
+                                                     kdev->dev);
                        if (!ret) {
                                found = true;
                                break;