jr.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * CAAM/SEC 4.x transport/backend driver
  4. * JobR backend functionality
  5. *
  6. * Copyright 2008-2012 Freescale Semiconductor, Inc.
  7. * Copyright 2019 NXP
  8. */
  9. #include <linux/of_irq.h>
  10. #include <linux/of_address.h>
  11. #include "compat.h"
  12. #include "ctrl.h"
  13. #include "regs.h"
  14. #include "jr.h"
  15. #include "desc.h"
  16. #include "intern.h"
  17. struct jr_driver_data {
  18. /* List of Physical JobR's with the Driver */
  19. struct list_head jr_list;
  20. spinlock_t jr_alloc_lock; /* jr_list lock */
  21. } ____cacheline_aligned;
  22. static struct jr_driver_data driver_data;
  23. static DEFINE_MUTEX(algs_lock);
  24. static unsigned int active_devs;
  25. static void register_algs(struct caam_drv_private_jr *jrpriv,
  26. struct device *dev)
  27. {
  28. mutex_lock(&algs_lock);
  29. if (++active_devs != 1)
  30. goto algs_unlock;
  31. caam_algapi_init(dev);
  32. caam_algapi_hash_init(dev);
  33. caam_pkc_init(dev);
  34. jrpriv->hwrng = !caam_rng_init(dev);
  35. caam_prng_register(dev);
  36. caam_qi_algapi_init(dev);
  37. algs_unlock:
  38. mutex_unlock(&algs_lock);
  39. }
  40. static void unregister_algs(void)
  41. {
  42. mutex_lock(&algs_lock);
  43. if (--active_devs != 0)
  44. goto algs_unlock;
  45. caam_qi_algapi_exit();
  46. caam_prng_unregister(NULL);
  47. caam_pkc_exit();
  48. caam_algapi_hash_exit();
  49. caam_algapi_exit();
  50. algs_unlock:
  51. mutex_unlock(&algs_lock);
  52. }
  53. static void caam_jr_crypto_engine_exit(void *data)
  54. {
  55. struct device *jrdev = data;
  56. struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev);
  57. /* Free the resources of crypto-engine */
  58. crypto_engine_exit(jrpriv->engine);
  59. }
  60. static int caam_reset_hw_jr(struct device *dev)
  61. {
  62. struct caam_drv_private_jr *jrp = dev_get_drvdata(dev);
  63. unsigned int timeout = 100000;
  64. /*
  65. * mask interrupts since we are going to poll
  66. * for reset completion status
  67. */
  68. clrsetbits_32(&jrp->rregs->rconfig_lo, 0, JRCFG_IMSK);
  69. /* initiate flush (required prior to reset) */
  70. wr_reg32(&jrp->rregs->jrcommand, JRCR_RESET);
  71. while (((rd_reg32(&jrp->rregs->jrintstatus) & JRINT_ERR_HALT_MASK) ==
  72. JRINT_ERR_HALT_INPROGRESS) && --timeout)
  73. cpu_relax();
  74. if ((rd_reg32(&jrp->rregs->jrintstatus) & JRINT_ERR_HALT_MASK) !=
  75. JRINT_ERR_HALT_COMPLETE || timeout == 0) {
  76. dev_err(dev, "failed to flush job ring %d\n", jrp->ridx);
  77. return -EIO;
  78. }
  79. /* initiate reset */
  80. timeout = 100000;
  81. wr_reg32(&jrp->rregs->jrcommand, JRCR_RESET);
  82. while ((rd_reg32(&jrp->rregs->jrcommand) & JRCR_RESET) && --timeout)
  83. cpu_relax();
  84. if (timeout == 0) {
  85. dev_err(dev, "failed to reset job ring %d\n", jrp->ridx);
  86. return -EIO;
  87. }
  88. /* unmask interrupts */
  89. clrsetbits_32(&jrp->rregs->rconfig_lo, JRCFG_IMSK, 0);
  90. return 0;
  91. }
  92. /*
  93. * Shutdown JobR independent of platform property code
  94. */
  95. static int caam_jr_shutdown(struct device *dev)
  96. {
  97. struct caam_drv_private_jr *jrp = dev_get_drvdata(dev);
  98. int ret;
  99. ret = caam_reset_hw_jr(dev);
  100. tasklet_kill(&jrp->irqtask);
  101. return ret;
  102. }
  103. static int caam_jr_remove(struct platform_device *pdev)
  104. {
  105. int ret;
  106. struct device *jrdev;
  107. struct caam_drv_private_jr *jrpriv;
  108. jrdev = &pdev->dev;
  109. jrpriv = dev_get_drvdata(jrdev);
  110. if (jrpriv->hwrng)
  111. caam_rng_exit(jrdev->parent);
  112. /*
  113. * Return EBUSY if job ring already allocated.
  114. */
  115. if (atomic_read(&jrpriv->tfm_count)) {
  116. dev_err(jrdev, "Device is busy\n");
  117. return -EBUSY;
  118. }
  119. /* Unregister JR-based RNG & crypto algorithms */
  120. unregister_algs();
  121. /* Remove the node from Physical JobR list maintained by driver */
  122. spin_lock(&driver_data.jr_alloc_lock);
  123. list_del(&jrpriv->list_node);
  124. spin_unlock(&driver_data.jr_alloc_lock);
  125. /* Release ring */
  126. ret = caam_jr_shutdown(jrdev);
  127. if (ret)
  128. dev_err(jrdev, "Failed to shut down job ring\n");
  129. return ret;
  130. }
  131. /* Main per-ring interrupt handler */
  132. static irqreturn_t caam_jr_interrupt(int irq, void *st_dev)
  133. {
  134. struct device *dev = st_dev;
  135. struct caam_drv_private_jr *jrp = dev_get_drvdata(dev);
  136. u32 irqstate;
  137. /*
  138. * Check the output ring for ready responses, kick
  139. * tasklet if jobs done.
  140. */
  141. irqstate = rd_reg32(&jrp->rregs->jrintstatus);
  142. if (!irqstate)
  143. return IRQ_NONE;
  144. /*
  145. * If JobR error, we got more development work to do
  146. * Flag a bug now, but we really need to shut down and
  147. * restart the queue (and fix code).
  148. */
  149. if (irqstate & JRINT_JR_ERROR) {
  150. dev_err(dev, "job ring error: irqstate: %08x\n", irqstate);
  151. BUG();
  152. }
  153. /* mask valid interrupts */
  154. clrsetbits_32(&jrp->rregs->rconfig_lo, 0, JRCFG_IMSK);
  155. /* Have valid interrupt at this point, just ACK and trigger */
  156. wr_reg32(&jrp->rregs->jrintstatus, irqstate);
  157. preempt_disable();
  158. tasklet_schedule(&jrp->irqtask);
  159. preempt_enable();
  160. return IRQ_HANDLED;
  161. }
  162. /* Deferred service handler, run as interrupt-fired tasklet */
  163. static void caam_jr_dequeue(unsigned long devarg)
  164. {
  165. int hw_idx, sw_idx, i, head, tail;
  166. struct device *dev = (struct device *)devarg;
  167. struct caam_drv_private_jr *jrp = dev_get_drvdata(dev);
  168. void (*usercall)(struct device *dev, u32 *desc, u32 status, void *arg);
  169. u32 *userdesc, userstatus;
  170. void *userarg;
  171. u32 outring_used = 0;
  172. while (outring_used ||
  173. (outring_used = rd_reg32(&jrp->rregs->outring_used))) {
  174. head = READ_ONCE(jrp->head);
  175. sw_idx = tail = jrp->tail;
  176. hw_idx = jrp->out_ring_read_index;
  177. for (i = 0; CIRC_CNT(head, tail + i, JOBR_DEPTH) >= 1; i++) {
  178. sw_idx = (tail + i) & (JOBR_DEPTH - 1);
  179. if (jr_outentry_desc(jrp->outring, hw_idx) ==
  180. caam_dma_to_cpu(jrp->entinfo[sw_idx].desc_addr_dma))
  181. break; /* found */
  182. }
  183. /* we should never fail to find a matching descriptor */
  184. BUG_ON(CIRC_CNT(head, tail + i, JOBR_DEPTH) <= 0);
  185. /* Unmap just-run descriptor so we can post-process */
  186. dma_unmap_single(dev,
  187. caam_dma_to_cpu(jr_outentry_desc(jrp->outring,
  188. hw_idx)),
  189. jrp->entinfo[sw_idx].desc_size,
  190. DMA_TO_DEVICE);
  191. /* mark completed, avoid matching on a recycled desc addr */
  192. jrp->entinfo[sw_idx].desc_addr_dma = 0;
  193. /* Stash callback params */
  194. usercall = jrp->entinfo[sw_idx].callbk;
  195. userarg = jrp->entinfo[sw_idx].cbkarg;
  196. userdesc = jrp->entinfo[sw_idx].desc_addr_virt;
  197. userstatus = caam32_to_cpu(jr_outentry_jrstatus(jrp->outring,
  198. hw_idx));
  199. /*
  200. * Make sure all information from the job has been obtained
  201. * before telling CAAM that the job has been removed from the
  202. * output ring.
  203. */
  204. mb();
  205. /* set done */
  206. wr_reg32(&jrp->rregs->outring_rmvd, 1);
  207. jrp->out_ring_read_index = (jrp->out_ring_read_index + 1) &
  208. (JOBR_DEPTH - 1);
  209. /*
  210. * if this job completed out-of-order, do not increment
  211. * the tail. Otherwise, increment tail by 1 plus the
  212. * number of subsequent jobs already completed out-of-order
  213. */
  214. if (sw_idx == tail) {
  215. do {
  216. tail = (tail + 1) & (JOBR_DEPTH - 1);
  217. } while (CIRC_CNT(head, tail, JOBR_DEPTH) >= 1 &&
  218. jrp->entinfo[tail].desc_addr_dma == 0);
  219. jrp->tail = tail;
  220. }
  221. /* Finally, execute user's callback */
  222. usercall(dev, userdesc, userstatus, userarg);
  223. outring_used--;
  224. }
  225. /* reenable / unmask IRQs */
  226. clrsetbits_32(&jrp->rregs->rconfig_lo, JRCFG_IMSK, 0);
  227. }
  228. /**
  229. * caam_jr_alloc() - Alloc a job ring for someone to use as needed.
  230. *
  231. * returns : pointer to the newly allocated physical
  232. * JobR dev can be written to if successful.
  233. **/
  234. struct device *caam_jr_alloc(void)
  235. {
  236. struct caam_drv_private_jr *jrpriv, *min_jrpriv = NULL;
  237. struct device *dev = ERR_PTR(-ENODEV);
  238. int min_tfm_cnt = INT_MAX;
  239. int tfm_cnt;
  240. spin_lock(&driver_data.jr_alloc_lock);
  241. if (list_empty(&driver_data.jr_list)) {
  242. spin_unlock(&driver_data.jr_alloc_lock);
  243. return ERR_PTR(-ENODEV);
  244. }
  245. list_for_each_entry(jrpriv, &driver_data.jr_list, list_node) {
  246. tfm_cnt = atomic_read(&jrpriv->tfm_count);
  247. if (tfm_cnt < min_tfm_cnt) {
  248. min_tfm_cnt = tfm_cnt;
  249. min_jrpriv = jrpriv;
  250. }
  251. if (!min_tfm_cnt)
  252. break;
  253. }
  254. if (min_jrpriv) {
  255. atomic_inc(&min_jrpriv->tfm_count);
  256. dev = min_jrpriv->dev;
  257. }
  258. spin_unlock(&driver_data.jr_alloc_lock);
  259. return dev;
  260. }
  261. EXPORT_SYMBOL(caam_jr_alloc);
  262. /**
  263. * caam_jr_free() - Free the Job Ring
  264. * @rdev: points to the dev that identifies the Job ring to
  265. * be released.
  266. **/
  267. void caam_jr_free(struct device *rdev)
  268. {
  269. struct caam_drv_private_jr *jrpriv = dev_get_drvdata(rdev);
  270. atomic_dec(&jrpriv->tfm_count);
  271. }
  272. EXPORT_SYMBOL(caam_jr_free);
  273. /**
  274. * caam_jr_enqueue() - Enqueue a job descriptor head. Returns -EINPROGRESS
  275. * if OK, -ENOSPC if the queue is full, -EIO if it cannot map the caller's
  276. * descriptor.
  277. * @dev: struct device of the job ring to be used
  278. * @desc: points to a job descriptor that execute our request. All
  279. * descriptors (and all referenced data) must be in a DMAable
  280. * region, and all data references must be physical addresses
  281. * accessible to CAAM (i.e. within a PAMU window granted
  282. * to it).
  283. * @cbk: pointer to a callback function to be invoked upon completion
  284. * of this request. This has the form:
  285. * callback(struct device *dev, u32 *desc, u32 stat, void *arg)
  286. * where:
  287. * dev: contains the job ring device that processed this
  288. * response.
  289. * desc: descriptor that initiated the request, same as
  290. * "desc" being argued to caam_jr_enqueue().
  291. * status: untranslated status received from CAAM. See the
  292. * reference manual for a detailed description of
  293. * error meaning, or see the JRSTA definitions in the
  294. * register header file
  295. * areq: optional pointer to an argument passed with the
  296. * original request
  297. * @areq: optional pointer to a user argument for use at callback
  298. * time.
  299. **/
  300. int caam_jr_enqueue(struct device *dev, u32 *desc,
  301. void (*cbk)(struct device *dev, u32 *desc,
  302. u32 status, void *areq),
  303. void *areq)
  304. {
  305. struct caam_drv_private_jr *jrp = dev_get_drvdata(dev);
  306. struct caam_jrentry_info *head_entry;
  307. int head, tail, desc_size;
  308. dma_addr_t desc_dma;
  309. desc_size = (caam32_to_cpu(*desc) & HDR_JD_LENGTH_MASK) * sizeof(u32);
  310. desc_dma = dma_map_single(dev, desc, desc_size, DMA_TO_DEVICE);
  311. if (dma_mapping_error(dev, desc_dma)) {
  312. dev_err(dev, "caam_jr_enqueue(): can't map jobdesc\n");
  313. return -EIO;
  314. }
  315. spin_lock_bh(&jrp->inplock);
  316. head = jrp->head;
  317. tail = READ_ONCE(jrp->tail);
  318. if (!jrp->inpring_avail ||
  319. CIRC_SPACE(head, tail, JOBR_DEPTH) <= 0) {
  320. spin_unlock_bh(&jrp->inplock);
  321. dma_unmap_single(dev, desc_dma, desc_size, DMA_TO_DEVICE);
  322. return -ENOSPC;
  323. }
  324. head_entry = &jrp->entinfo[head];
  325. head_entry->desc_addr_virt = desc;
  326. head_entry->desc_size = desc_size;
  327. head_entry->callbk = (void *)cbk;
  328. head_entry->cbkarg = areq;
  329. head_entry->desc_addr_dma = desc_dma;
  330. jr_inpentry_set(jrp->inpring, head, cpu_to_caam_dma(desc_dma));
  331. /*
  332. * Guarantee that the descriptor's DMA address has been written to
  333. * the next slot in the ring before the write index is updated, since
  334. * other cores may update this index independently.
  335. */
  336. smp_wmb();
  337. jrp->head = (head + 1) & (JOBR_DEPTH - 1);
  338. /*
  339. * Ensure that all job information has been written before
  340. * notifying CAAM that a new job was added to the input ring
  341. * using a memory barrier. The wr_reg32() uses api iowrite32()
  342. * to do the register write. iowrite32() issues a memory barrier
  343. * before the write operation.
  344. */
  345. wr_reg32(&jrp->rregs->inpring_jobadd, 1);
  346. jrp->inpring_avail--;
  347. if (!jrp->inpring_avail)
  348. jrp->inpring_avail = rd_reg32(&jrp->rregs->inpring_avail);
  349. spin_unlock_bh(&jrp->inplock);
  350. return -EINPROGRESS;
  351. }
  352. EXPORT_SYMBOL(caam_jr_enqueue);
  353. /*
  354. * Init JobR independent of platform property detection
  355. */
  356. static int caam_jr_init(struct device *dev)
  357. {
  358. struct caam_drv_private_jr *jrp;
  359. dma_addr_t inpbusaddr, outbusaddr;
  360. int i, error;
  361. jrp = dev_get_drvdata(dev);
  362. error = caam_reset_hw_jr(dev);
  363. if (error)
  364. return error;
  365. jrp->inpring = dmam_alloc_coherent(dev, SIZEOF_JR_INPENTRY *
  366. JOBR_DEPTH, &inpbusaddr,
  367. GFP_KERNEL);
  368. if (!jrp->inpring)
  369. return -ENOMEM;
  370. jrp->outring = dmam_alloc_coherent(dev, SIZEOF_JR_OUTENTRY *
  371. JOBR_DEPTH, &outbusaddr,
  372. GFP_KERNEL);
  373. if (!jrp->outring)
  374. return -ENOMEM;
  375. jrp->entinfo = devm_kcalloc(dev, JOBR_DEPTH, sizeof(*jrp->entinfo),
  376. GFP_KERNEL);
  377. if (!jrp->entinfo)
  378. return -ENOMEM;
  379. for (i = 0; i < JOBR_DEPTH; i++)
  380. jrp->entinfo[i].desc_addr_dma = !0;
  381. /* Setup rings */
  382. jrp->out_ring_read_index = 0;
  383. jrp->head = 0;
  384. jrp->tail = 0;
  385. wr_reg64(&jrp->rregs->inpring_base, inpbusaddr);
  386. wr_reg64(&jrp->rregs->outring_base, outbusaddr);
  387. wr_reg32(&jrp->rregs->inpring_size, JOBR_DEPTH);
  388. wr_reg32(&jrp->rregs->outring_size, JOBR_DEPTH);
  389. jrp->inpring_avail = JOBR_DEPTH;
  390. spin_lock_init(&jrp->inplock);
  391. /* Select interrupt coalescing parameters */
  392. clrsetbits_32(&jrp->rregs->rconfig_lo, 0, JOBR_INTC |
  393. (JOBR_INTC_COUNT_THLD << JRCFG_ICDCT_SHIFT) |
  394. (JOBR_INTC_TIME_THLD << JRCFG_ICTT_SHIFT));
  395. tasklet_init(&jrp->irqtask, caam_jr_dequeue, (unsigned long)dev);
  396. /* Connect job ring interrupt handler. */
  397. error = devm_request_irq(dev, jrp->irq, caam_jr_interrupt, IRQF_SHARED,
  398. dev_name(dev), dev);
  399. if (error) {
  400. dev_err(dev, "can't connect JobR %d interrupt (%d)\n",
  401. jrp->ridx, jrp->irq);
  402. tasklet_kill(&jrp->irqtask);
  403. }
  404. return error;
  405. }
  406. static void caam_jr_irq_dispose_mapping(void *data)
  407. {
  408. irq_dispose_mapping((unsigned long)data);
  409. }
  410. /*
  411. * Probe routine for each detected JobR subsystem.
  412. */
  413. static int caam_jr_probe(struct platform_device *pdev)
  414. {
  415. struct device *jrdev;
  416. struct device_node *nprop;
  417. struct caam_job_ring __iomem *ctrl;
  418. struct caam_drv_private_jr *jrpriv;
  419. static int total_jobrs;
  420. struct resource *r;
  421. int error;
  422. jrdev = &pdev->dev;
  423. jrpriv = devm_kzalloc(jrdev, sizeof(*jrpriv), GFP_KERNEL);
  424. if (!jrpriv)
  425. return -ENOMEM;
  426. dev_set_drvdata(jrdev, jrpriv);
  427. /* save ring identity relative to detection */
  428. jrpriv->ridx = total_jobrs++;
  429. nprop = pdev->dev.of_node;
  430. /* Get configuration properties from device tree */
  431. /* First, get register page */
  432. r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  433. if (!r) {
  434. dev_err(jrdev, "platform_get_resource() failed\n");
  435. return -ENOMEM;
  436. }
  437. ctrl = devm_ioremap(jrdev, r->start, resource_size(r));
  438. if (!ctrl) {
  439. dev_err(jrdev, "devm_ioremap() failed\n");
  440. return -ENOMEM;
  441. }
  442. jrpriv->rregs = (struct caam_job_ring __iomem __force *)ctrl;
  443. error = dma_set_mask_and_coherent(jrdev, caam_get_dma_mask(jrdev));
  444. if (error) {
  445. dev_err(jrdev, "dma_set_mask_and_coherent failed (%d)\n",
  446. error);
  447. return error;
  448. }
  449. /* Initialize crypto engine */
  450. jrpriv->engine = crypto_engine_alloc_init_and_set(jrdev, true, NULL,
  451. false,
  452. CRYPTO_ENGINE_MAX_QLEN);
  453. if (!jrpriv->engine) {
  454. dev_err(jrdev, "Could not init crypto-engine\n");
  455. return -ENOMEM;
  456. }
  457. error = devm_add_action_or_reset(jrdev, caam_jr_crypto_engine_exit,
  458. jrdev);
  459. if (error)
  460. return error;
  461. /* Start crypto engine */
  462. error = crypto_engine_start(jrpriv->engine);
  463. if (error) {
  464. dev_err(jrdev, "Could not start crypto-engine\n");
  465. return error;
  466. }
  467. /* Identify the interrupt */
  468. jrpriv->irq = irq_of_parse_and_map(nprop, 0);
  469. if (!jrpriv->irq) {
  470. dev_err(jrdev, "irq_of_parse_and_map failed\n");
  471. return -EINVAL;
  472. }
  473. error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
  474. (void *)(unsigned long)jrpriv->irq);
  475. if (error)
  476. return error;
  477. /* Now do the platform independent part */
  478. error = caam_jr_init(jrdev); /* now turn on hardware */
  479. if (error)
  480. return error;
  481. jrpriv->dev = jrdev;
  482. spin_lock(&driver_data.jr_alloc_lock);
  483. list_add_tail(&jrpriv->list_node, &driver_data.jr_list);
  484. spin_unlock(&driver_data.jr_alloc_lock);
  485. atomic_set(&jrpriv->tfm_count, 0);
  486. register_algs(jrpriv, jrdev->parent);
  487. return 0;
  488. }
  489. static const struct of_device_id caam_jr_match[] = {
  490. {
  491. .compatible = "fsl,sec-v4.0-job-ring",
  492. },
  493. {
  494. .compatible = "fsl,sec4.0-job-ring",
  495. },
  496. {},
  497. };
  498. MODULE_DEVICE_TABLE(of, caam_jr_match);
  499. static struct platform_driver caam_jr_driver = {
  500. .driver = {
  501. .name = "caam_jr",
  502. .of_match_table = caam_jr_match,
  503. },
  504. .probe = caam_jr_probe,
  505. .remove = caam_jr_remove,
  506. };
  507. static int __init jr_driver_init(void)
  508. {
  509. spin_lock_init(&driver_data.jr_alloc_lock);
  510. INIT_LIST_HEAD(&driver_data.jr_list);
  511. return platform_driver_register(&caam_jr_driver);
  512. }
  513. static void __exit jr_driver_exit(void)
  514. {
  515. platform_driver_unregister(&caam_jr_driver);
  516. }
  517. module_init(jr_driver_init);
  518. module_exit(jr_driver_exit);
  519. MODULE_LICENSE("GPL");
  520. MODULE_DESCRIPTION("FSL CAAM JR request backend");
  521. MODULE_AUTHOR("Freescale Semiconductor - NMG/STC");