firmware_class.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. /*
  2. * firmware_class.c - Multi purpose firmware loading support
  3. *
  4. * Copyright (c) 2003 Manuel Estrada Sainz
  5. *
  6. * Please see Documentation/firmware_class/ for more information.
  7. *
  8. */
  9. #include <linux/capability.h>
  10. #include <linux/device.h>
  11. #include <linux/module.h>
  12. #include <linux/init.h>
  13. #include <linux/timer.h>
  14. #include <linux/vmalloc.h>
  15. #include <linux/interrupt.h>
  16. #include <linux/bitops.h>
  17. #include <linux/mutex.h>
  18. #include <linux/kthread.h>
  19. #include <linux/highmem.h>
  20. #include <linux/firmware.h>
  21. #include "base.h"
  22. #define to_dev(obj) container_of(obj, struct device, kobj)
  23. MODULE_AUTHOR("Manuel Estrada Sainz");
  24. MODULE_DESCRIPTION("Multi purpose firmware loading support");
  25. MODULE_LICENSE("GPL");
  26. enum {
  27. FW_STATUS_LOADING,
  28. FW_STATUS_DONE,
  29. FW_STATUS_ABORT,
  30. };
  31. static int loading_timeout = 60; /* In seconds */
  32. /* fw_lock could be moved to 'struct firmware_priv' but since it is just
  33. * guarding for corner cases a global lock should be OK */
  34. static DEFINE_MUTEX(fw_lock);
  35. struct firmware_priv {
  36. char fw_id[FIRMWARE_NAME_MAX];
  37. struct completion completion;
  38. struct bin_attribute attr_data;
  39. struct firmware *fw;
  40. unsigned long status;
  41. struct page **pages;
  42. int nr_pages;
  43. int page_array_size;
  44. const char *vdata;
  45. struct timer_list timeout;
  46. };
  47. #ifdef CONFIG_FW_LOADER
  48. extern struct builtin_fw __start_builtin_fw[];
  49. extern struct builtin_fw __end_builtin_fw[];
  50. #else /* Module case. Avoid ifdefs later; it'll all optimise out */
  51. static struct builtin_fw *__start_builtin_fw;
  52. static struct builtin_fw *__end_builtin_fw;
  53. #endif
  54. static void
  55. fw_load_abort(struct firmware_priv *fw_priv)
  56. {
  57. set_bit(FW_STATUS_ABORT, &fw_priv->status);
  58. wmb();
  59. complete(&fw_priv->completion);
  60. }
  61. static ssize_t
  62. firmware_timeout_show(struct class *class, char *buf)
  63. {
  64. return sprintf(buf, "%d\n", loading_timeout);
  65. }
  66. /**
  67. * firmware_timeout_store - set number of seconds to wait for firmware
  68. * @class: device class pointer
  69. * @buf: buffer to scan for timeout value
  70. * @count: number of bytes in @buf
  71. *
  72. * Sets the number of seconds to wait for the firmware. Once
  73. * this expires an error will be returned to the driver and no
  74. * firmware will be provided.
  75. *
  76. * Note: zero means 'wait forever'.
  77. **/
  78. static ssize_t
  79. firmware_timeout_store(struct class *class, const char *buf, size_t count)
  80. {
  81. loading_timeout = simple_strtol(buf, NULL, 10);
  82. if (loading_timeout < 0)
  83. loading_timeout = 0;
  84. return count;
  85. }
  86. static CLASS_ATTR(timeout, 0644, firmware_timeout_show, firmware_timeout_store);
  87. static void fw_dev_release(struct device *dev);
  88. static int firmware_uevent(struct device *dev, struct kobj_uevent_env *env)
  89. {
  90. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  91. if (add_uevent_var(env, "FIRMWARE=%s", fw_priv->fw_id))
  92. return -ENOMEM;
  93. if (add_uevent_var(env, "TIMEOUT=%i", loading_timeout))
  94. return -ENOMEM;
  95. return 0;
  96. }
  97. static struct class firmware_class = {
  98. .name = "firmware",
  99. .dev_uevent = firmware_uevent,
  100. .dev_release = fw_dev_release,
  101. };
  102. static ssize_t firmware_loading_show(struct device *dev,
  103. struct device_attribute *attr, char *buf)
  104. {
  105. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  106. int loading = test_bit(FW_STATUS_LOADING, &fw_priv->status);
  107. return sprintf(buf, "%d\n", loading);
  108. }
  109. /* Some architectures don't have PAGE_KERNEL_RO */
  110. #ifndef PAGE_KERNEL_RO
  111. #define PAGE_KERNEL_RO PAGE_KERNEL
  112. #endif
  113. /**
  114. * firmware_loading_store - set value in the 'loading' control file
  115. * @dev: device pointer
  116. * @attr: device attribute pointer
  117. * @buf: buffer to scan for loading control value
  118. * @count: number of bytes in @buf
  119. *
  120. * The relevant values are:
  121. *
  122. * 1: Start a load, discarding any previous partial load.
  123. * 0: Conclude the load and hand the data to the driver code.
  124. * -1: Conclude the load with an error and discard any written data.
  125. **/
  126. static ssize_t firmware_loading_store(struct device *dev,
  127. struct device_attribute *attr,
  128. const char *buf, size_t count)
  129. {
  130. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  131. int loading = simple_strtol(buf, NULL, 10);
  132. int i;
  133. switch (loading) {
  134. case 1:
  135. mutex_lock(&fw_lock);
  136. if (!fw_priv->fw) {
  137. mutex_unlock(&fw_lock);
  138. break;
  139. }
  140. vfree(fw_priv->fw->data);
  141. fw_priv->fw->data = NULL;
  142. for (i = 0; i < fw_priv->nr_pages; i++)
  143. __free_page(fw_priv->pages[i]);
  144. kfree(fw_priv->pages);
  145. fw_priv->pages = NULL;
  146. fw_priv->page_array_size = 0;
  147. fw_priv->nr_pages = 0;
  148. fw_priv->fw->size = 0;
  149. set_bit(FW_STATUS_LOADING, &fw_priv->status);
  150. mutex_unlock(&fw_lock);
  151. break;
  152. case 0:
  153. if (test_bit(FW_STATUS_LOADING, &fw_priv->status)) {
  154. vfree(fw_priv->fw->data);
  155. fw_priv->fw->data = vmap(fw_priv->pages,
  156. fw_priv->nr_pages,
  157. 0, PAGE_KERNEL_RO);
  158. if (!fw_priv->fw->data) {
  159. dev_err(dev, "%s: vmap() failed\n", __func__);
  160. goto err;
  161. }
  162. /* Pages will be freed by vfree() */
  163. fw_priv->pages = NULL;
  164. fw_priv->page_array_size = 0;
  165. fw_priv->nr_pages = 0;
  166. complete(&fw_priv->completion);
  167. clear_bit(FW_STATUS_LOADING, &fw_priv->status);
  168. break;
  169. }
  170. /* fallthrough */
  171. default:
  172. dev_err(dev, "%s: unexpected value (%d)\n", __func__, loading);
  173. /* fallthrough */
  174. case -1:
  175. err:
  176. fw_load_abort(fw_priv);
  177. break;
  178. }
  179. return count;
  180. }
  181. static DEVICE_ATTR(loading, 0644, firmware_loading_show, firmware_loading_store);
  182. static ssize_t
  183. firmware_data_read(struct kobject *kobj, struct bin_attribute *bin_attr,
  184. char *buffer, loff_t offset, size_t count)
  185. {
  186. struct device *dev = to_dev(kobj);
  187. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  188. struct firmware *fw;
  189. ssize_t ret_count;
  190. mutex_lock(&fw_lock);
  191. fw = fw_priv->fw;
  192. if (!fw || test_bit(FW_STATUS_DONE, &fw_priv->status)) {
  193. ret_count = -ENODEV;
  194. goto out;
  195. }
  196. if (offset > fw->size)
  197. return 0;
  198. if (count > fw->size - offset)
  199. count = fw->size - offset;
  200. ret_count = count;
  201. while (count) {
  202. void *page_data;
  203. int page_nr = offset >> PAGE_SHIFT;
  204. int page_ofs = offset & (PAGE_SIZE-1);
  205. int page_cnt = min_t(size_t, PAGE_SIZE - page_ofs, count);
  206. page_data = kmap(fw_priv->pages[page_nr]);
  207. memcpy(buffer, page_data + page_ofs, page_cnt);
  208. kunmap(fw_priv->pages[page_nr]);
  209. buffer += page_cnt;
  210. offset += page_cnt;
  211. count -= page_cnt;
  212. }
  213. out:
  214. mutex_unlock(&fw_lock);
  215. return ret_count;
  216. }
  217. static int
  218. fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size)
  219. {
  220. int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT;
  221. /* If the array of pages is too small, grow it... */
  222. if (fw_priv->page_array_size < pages_needed) {
  223. int new_array_size = max(pages_needed,
  224. fw_priv->page_array_size * 2);
  225. struct page **new_pages;
  226. new_pages = kmalloc(new_array_size * sizeof(void *),
  227. GFP_KERNEL);
  228. if (!new_pages) {
  229. fw_load_abort(fw_priv);
  230. return -ENOMEM;
  231. }
  232. memcpy(new_pages, fw_priv->pages,
  233. fw_priv->page_array_size * sizeof(void *));
  234. memset(&new_pages[fw_priv->page_array_size], 0, sizeof(void *) *
  235. (new_array_size - fw_priv->page_array_size));
  236. kfree(fw_priv->pages);
  237. fw_priv->pages = new_pages;
  238. fw_priv->page_array_size = new_array_size;
  239. }
  240. while (fw_priv->nr_pages < pages_needed) {
  241. fw_priv->pages[fw_priv->nr_pages] =
  242. alloc_page(GFP_KERNEL | __GFP_HIGHMEM);
  243. if (!fw_priv->pages[fw_priv->nr_pages]) {
  244. fw_load_abort(fw_priv);
  245. return -ENOMEM;
  246. }
  247. fw_priv->nr_pages++;
  248. }
  249. return 0;
  250. }
  251. /**
  252. * firmware_data_write - write method for firmware
  253. * @kobj: kobject for the device
  254. * @bin_attr: bin_attr structure
  255. * @buffer: buffer being written
  256. * @offset: buffer offset for write in total data store area
  257. * @count: buffer size
  258. *
  259. * Data written to the 'data' attribute will be later handed to
  260. * the driver as a firmware image.
  261. **/
  262. static ssize_t
  263. firmware_data_write(struct kobject *kobj, struct bin_attribute *bin_attr,
  264. char *buffer, loff_t offset, size_t count)
  265. {
  266. struct device *dev = to_dev(kobj);
  267. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  268. struct firmware *fw;
  269. ssize_t retval;
  270. if (!capable(CAP_SYS_RAWIO))
  271. return -EPERM;
  272. mutex_lock(&fw_lock);
  273. fw = fw_priv->fw;
  274. if (!fw || test_bit(FW_STATUS_DONE, &fw_priv->status)) {
  275. retval = -ENODEV;
  276. goto out;
  277. }
  278. retval = fw_realloc_buffer(fw_priv, offset + count);
  279. if (retval)
  280. goto out;
  281. retval = count;
  282. while (count) {
  283. void *page_data;
  284. int page_nr = offset >> PAGE_SHIFT;
  285. int page_ofs = offset & (PAGE_SIZE - 1);
  286. int page_cnt = min_t(size_t, PAGE_SIZE - page_ofs, count);
  287. page_data = kmap(fw_priv->pages[page_nr]);
  288. memcpy(page_data + page_ofs, buffer, page_cnt);
  289. kunmap(fw_priv->pages[page_nr]);
  290. buffer += page_cnt;
  291. offset += page_cnt;
  292. count -= page_cnt;
  293. }
  294. fw->size = max_t(size_t, offset, fw->size);
  295. out:
  296. mutex_unlock(&fw_lock);
  297. return retval;
  298. }
  299. static struct bin_attribute firmware_attr_data_tmpl = {
  300. .attr = {.name = "data", .mode = 0644},
  301. .size = 0,
  302. .read = firmware_data_read,
  303. .write = firmware_data_write,
  304. };
  305. static void fw_dev_release(struct device *dev)
  306. {
  307. struct firmware_priv *fw_priv = dev_get_drvdata(dev);
  308. int i;
  309. for (i = 0; i < fw_priv->nr_pages; i++)
  310. __free_page(fw_priv->pages[i]);
  311. kfree(fw_priv->pages);
  312. kfree(fw_priv);
  313. put_device(dev);
  314. module_put(THIS_MODULE);
  315. }
  316. static void
  317. firmware_class_timeout(u_long data)
  318. {
  319. struct firmware_priv *fw_priv = (struct firmware_priv *) data;
  320. fw_load_abort(fw_priv);
  321. }
  322. static int fw_register_device(struct device **dev_p, const char *fw_name,
  323. struct device *device)
  324. {
  325. int retval;
  326. struct firmware_priv *fw_priv = kzalloc(sizeof(*fw_priv),
  327. GFP_KERNEL);
  328. struct device *f_dev = kzalloc(sizeof(*f_dev), GFP_KERNEL);
  329. *dev_p = NULL;
  330. if (!fw_priv || !f_dev) {
  331. dev_err(device, "%s: kmalloc failed\n", __func__);
  332. retval = -ENOMEM;
  333. goto error_kfree;
  334. }
  335. init_completion(&fw_priv->completion);
  336. fw_priv->attr_data = firmware_attr_data_tmpl;
  337. strlcpy(fw_priv->fw_id, fw_name, FIRMWARE_NAME_MAX);
  338. fw_priv->timeout.function = firmware_class_timeout;
  339. fw_priv->timeout.data = (u_long) fw_priv;
  340. init_timer(&fw_priv->timeout);
  341. dev_set_name(f_dev, dev_name(device));
  342. f_dev->parent = device;
  343. f_dev->class = &firmware_class;
  344. dev_set_drvdata(f_dev, fw_priv);
  345. dev_set_uevent_suppress(f_dev, 1);
  346. retval = device_register(f_dev);
  347. if (retval) {
  348. dev_err(device, "%s: device_register failed\n", __func__);
  349. put_device(f_dev);
  350. goto error_kfree1;
  351. }
  352. *dev_p = f_dev;
  353. return 0;
  354. error_kfree:
  355. kfree(f_dev);
  356. error_kfree1:
  357. kfree(fw_priv);
  358. return retval;
  359. }
  360. static int fw_setup_device(struct firmware *fw, struct device **dev_p,
  361. const char *fw_name, struct device *device,
  362. int uevent)
  363. {
  364. struct device *f_dev;
  365. struct firmware_priv *fw_priv;
  366. int retval;
  367. *dev_p = NULL;
  368. retval = fw_register_device(&f_dev, fw_name, device);
  369. if (retval)
  370. goto out;
  371. /* Need to pin this module until class device is destroyed */
  372. __module_get(THIS_MODULE);
  373. fw_priv = dev_get_drvdata(f_dev);
  374. fw_priv->fw = fw;
  375. retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data);
  376. if (retval) {
  377. dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__);
  378. goto error_unreg;
  379. }
  380. retval = device_create_file(f_dev, &dev_attr_loading);
  381. if (retval) {
  382. dev_err(device, "%s: device_create_file failed\n", __func__);
  383. goto error_unreg;
  384. }
  385. if (uevent)
  386. dev_set_uevent_suppress(f_dev, 0);
  387. *dev_p = f_dev;
  388. goto out;
  389. error_unreg:
  390. device_unregister(f_dev);
  391. out:
  392. return retval;
  393. }
  394. static int
  395. _request_firmware(const struct firmware **firmware_p, const char *name,
  396. struct device *device, int uevent)
  397. {
  398. struct device *f_dev;
  399. struct firmware_priv *fw_priv;
  400. struct firmware *firmware;
  401. struct builtin_fw *builtin;
  402. int retval;
  403. if (!firmware_p)
  404. return -EINVAL;
  405. *firmware_p = firmware = kzalloc(sizeof(*firmware), GFP_KERNEL);
  406. if (!firmware) {
  407. dev_err(device, "%s: kmalloc(struct firmware) failed\n",
  408. __func__);
  409. retval = -ENOMEM;
  410. goto out;
  411. }
  412. for (builtin = __start_builtin_fw; builtin != __end_builtin_fw;
  413. builtin++) {
  414. if (strcmp(name, builtin->name))
  415. continue;
  416. dev_info(device, "firmware: using built-in firmware %s\n",
  417. name);
  418. firmware->size = builtin->size;
  419. firmware->data = builtin->data;
  420. return 0;
  421. }
  422. if (uevent)
  423. dev_info(device, "firmware: requesting %s\n", name);
  424. retval = fw_setup_device(firmware, &f_dev, name, device, uevent);
  425. if (retval)
  426. goto error_kfree_fw;
  427. fw_priv = dev_get_drvdata(f_dev);
  428. if (uevent) {
  429. if (loading_timeout > 0) {
  430. fw_priv->timeout.expires = jiffies + loading_timeout * HZ;
  431. add_timer(&fw_priv->timeout);
  432. }
  433. kobject_uevent(&f_dev->kobj, KOBJ_ADD);
  434. wait_for_completion(&fw_priv->completion);
  435. set_bit(FW_STATUS_DONE, &fw_priv->status);
  436. del_timer_sync(&fw_priv->timeout);
  437. } else
  438. wait_for_completion(&fw_priv->completion);
  439. mutex_lock(&fw_lock);
  440. if (!fw_priv->fw->size || test_bit(FW_STATUS_ABORT, &fw_priv->status)) {
  441. retval = -ENOENT;
  442. release_firmware(fw_priv->fw);
  443. *firmware_p = NULL;
  444. }
  445. fw_priv->fw = NULL;
  446. mutex_unlock(&fw_lock);
  447. device_unregister(f_dev);
  448. goto out;
  449. error_kfree_fw:
  450. kfree(firmware);
  451. *firmware_p = NULL;
  452. out:
  453. return retval;
  454. }
  455. /**
  456. * request_firmware: - send firmware request and wait for it
  457. * @firmware_p: pointer to firmware image
  458. * @name: name of firmware file
  459. * @device: device for which firmware is being loaded
  460. *
  461. * @firmware_p will be used to return a firmware image by the name
  462. * of @name for device @device.
  463. *
  464. * Should be called from user context where sleeping is allowed.
  465. *
  466. * @name will be used as $FIRMWARE in the uevent environment and
  467. * should be distinctive enough not to be confused with any other
  468. * firmware image for this or any other device.
  469. **/
  470. int
  471. request_firmware(const struct firmware **firmware_p, const char *name,
  472. struct device *device)
  473. {
  474. int uevent = 1;
  475. return _request_firmware(firmware_p, name, device, uevent);
  476. }
  477. /**
  478. * release_firmware: - release the resource associated with a firmware image
  479. * @fw: firmware resource to release
  480. **/
  481. void
  482. release_firmware(const struct firmware *fw)
  483. {
  484. struct builtin_fw *builtin;
  485. if (fw) {
  486. for (builtin = __start_builtin_fw; builtin != __end_builtin_fw;
  487. builtin++) {
  488. if (fw->data == builtin->data)
  489. goto free_fw;
  490. }
  491. vfree(fw->data);
  492. free_fw:
  493. kfree(fw);
  494. }
  495. }
  496. /* Async support */
  497. struct firmware_work {
  498. struct work_struct work;
  499. struct module *module;
  500. const char *name;
  501. struct device *device;
  502. void *context;
  503. void (*cont)(const struct firmware *fw, void *context);
  504. int uevent;
  505. };
  506. static int
  507. request_firmware_work_func(void *arg)
  508. {
  509. struct firmware_work *fw_work = arg;
  510. const struct firmware *fw;
  511. int ret;
  512. if (!arg) {
  513. WARN_ON(1);
  514. return 0;
  515. }
  516. ret = _request_firmware(&fw, fw_work->name, fw_work->device,
  517. fw_work->uevent);
  518. if (ret < 0)
  519. fw_work->cont(NULL, fw_work->context);
  520. else {
  521. fw_work->cont(fw, fw_work->context);
  522. release_firmware(fw);
  523. }
  524. module_put(fw_work->module);
  525. kfree(fw_work);
  526. return ret;
  527. }
  528. /**
  529. * request_firmware_nowait: asynchronous version of request_firmware
  530. * @module: module requesting the firmware
  531. * @uevent: sends uevent to copy the firmware image if this flag
  532. * is non-zero else the firmware copy must be done manually.
  533. * @name: name of firmware file
  534. * @device: device for which firmware is being loaded
  535. * @context: will be passed over to @cont, and
  536. * @fw may be %NULL if firmware request fails.
  537. * @cont: function will be called asynchronously when the firmware
  538. * request is over.
  539. *
  540. * Asynchronous variant of request_firmware() for contexts where
  541. * it is not possible to sleep.
  542. **/
  543. int
  544. request_firmware_nowait(
  545. struct module *module, int uevent,
  546. const char *name, struct device *device, void *context,
  547. void (*cont)(const struct firmware *fw, void *context))
  548. {
  549. struct task_struct *task;
  550. struct firmware_work *fw_work = kmalloc(sizeof (struct firmware_work),
  551. GFP_ATOMIC);
  552. if (!fw_work)
  553. return -ENOMEM;
  554. if (!try_module_get(module)) {
  555. kfree(fw_work);
  556. return -EFAULT;
  557. }
  558. *fw_work = (struct firmware_work) {
  559. .module = module,
  560. .name = name,
  561. .device = device,
  562. .context = context,
  563. .cont = cont,
  564. .uevent = uevent,
  565. };
  566. task = kthread_run(request_firmware_work_func, fw_work,
  567. "firmware/%s", name);
  568. if (IS_ERR(task)) {
  569. fw_work->cont(NULL, fw_work->context);
  570. module_put(fw_work->module);
  571. kfree(fw_work);
  572. return PTR_ERR(task);
  573. }
  574. return 0;
  575. }
  576. static int __init
  577. firmware_class_init(void)
  578. {
  579. int error;
  580. error = class_register(&firmware_class);
  581. if (error) {
  582. printk(KERN_ERR "%s: class_register failed\n", __func__);
  583. return error;
  584. }
  585. error = class_create_file(&firmware_class, &class_attr_timeout);
  586. if (error) {
  587. printk(KERN_ERR "%s: class_create_file failed\n",
  588. __func__);
  589. class_unregister(&firmware_class);
  590. }
  591. return error;
  592. }
  593. static void __exit
  594. firmware_class_exit(void)
  595. {
  596. class_unregister(&firmware_class);
  597. }
  598. fs_initcall(firmware_class_init);
  599. module_exit(firmware_class_exit);
  600. EXPORT_SYMBOL(release_firmware);
  601. EXPORT_SYMBOL(request_firmware);
  602. EXPORT_SYMBOL(request_firmware_nowait);