init.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. /*
  2. * This file is provided under a dual BSD/GPLv2 license. When using or
  3. * redistributing this file, you may do so under either license.
  4. *
  5. * GPL LICENSE SUMMARY
  6. *
  7. * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of version 2 of the GNU General Public License as
  11. * published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  21. * The full GNU General Public License is included in this distribution
  22. * in the file called LICENSE.GPL.
  23. *
  24. * BSD LICENSE
  25. *
  26. * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
  27. * All rights reserved.
  28. *
  29. * Redistribution and use in source and binary forms, with or without
  30. * modification, are permitted provided that the following conditions
  31. * are met:
  32. *
  33. * * Redistributions of source code must retain the above copyright
  34. * notice, this list of conditions and the following disclaimer.
  35. * * Redistributions in binary form must reproduce the above copyright
  36. * notice, this list of conditions and the following disclaimer in
  37. * the documentation and/or other materials provided with the
  38. * distribution.
  39. * * Neither the name of Intel Corporation nor the names of its
  40. * contributors may be used to endorse or promote products derived
  41. * from this software without specific prior written permission.
  42. *
  43. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  44. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  45. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  46. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  47. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  48. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  49. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  50. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  51. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  52. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  53. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  54. */
  55. #include <linux/kernel.h>
  56. #include <linux/init.h>
  57. #include <linux/module.h>
  58. #include <linux/firmware.h>
  59. #include <linux/efi.h>
  60. #include <asm/string.h>
  61. #include <scsi/scsi_host.h>
  62. #include "isci.h"
  63. #include "task.h"
  64. #include "probe_roms.h"
  65. #define MAJ 1
  66. #define MIN 1
  67. #define BUILD 0
  68. #define DRV_VERSION __stringify(MAJ) "." __stringify(MIN) "." \
  69. __stringify(BUILD)
  70. MODULE_VERSION(DRV_VERSION);
  71. static struct scsi_transport_template *isci_transport_template;
  72. static DEFINE_PCI_DEVICE_TABLE(isci_id_table) = {
  73. { PCI_VDEVICE(INTEL, 0x1D61),},
  74. { PCI_VDEVICE(INTEL, 0x1D63),},
  75. { PCI_VDEVICE(INTEL, 0x1D65),},
  76. { PCI_VDEVICE(INTEL, 0x1D67),},
  77. { PCI_VDEVICE(INTEL, 0x1D69),},
  78. { PCI_VDEVICE(INTEL, 0x1D6B),},
  79. { PCI_VDEVICE(INTEL, 0x1D60),},
  80. { PCI_VDEVICE(INTEL, 0x1D62),},
  81. { PCI_VDEVICE(INTEL, 0x1D64),},
  82. { PCI_VDEVICE(INTEL, 0x1D66),},
  83. { PCI_VDEVICE(INTEL, 0x1D68),},
  84. { PCI_VDEVICE(INTEL, 0x1D6A),},
  85. {}
  86. };
  87. MODULE_DEVICE_TABLE(pci, isci_id_table);
  88. /* linux isci specific settings */
  89. unsigned char no_outbound_task_to = 2;
  90. module_param(no_outbound_task_to, byte, 0);
  91. MODULE_PARM_DESC(no_outbound_task_to, "No Outbound Task Timeout (1us incr)");
  92. u16 ssp_max_occ_to = 20;
  93. module_param(ssp_max_occ_to, ushort, 0);
  94. MODULE_PARM_DESC(ssp_max_occ_to, "SSP Max occupancy timeout (100us incr)");
  95. u16 stp_max_occ_to = 5;
  96. module_param(stp_max_occ_to, ushort, 0);
  97. MODULE_PARM_DESC(stp_max_occ_to, "STP Max occupancy timeout (100us incr)");
  98. u16 ssp_inactive_to = 5;
  99. module_param(ssp_inactive_to, ushort, 0);
  100. MODULE_PARM_DESC(ssp_inactive_to, "SSP inactivity timeout (100us incr)");
  101. u16 stp_inactive_to = 5;
  102. module_param(stp_inactive_to, ushort, 0);
  103. MODULE_PARM_DESC(stp_inactive_to, "STP inactivity timeout (100us incr)");
  104. unsigned char phy_gen = SCIC_SDS_PARM_GEN2_SPEED;
  105. module_param(phy_gen, byte, 0);
  106. MODULE_PARM_DESC(phy_gen, "PHY generation (1: 1.5Gbps 2: 3.0Gbps 3: 6.0Gbps)");
  107. unsigned char max_concurr_spinup;
  108. module_param(max_concurr_spinup, byte, 0);
  109. MODULE_PARM_DESC(max_concurr_spinup, "Max concurrent device spinup");
  110. uint cable_selection_override = CABLE_OVERRIDE_DISABLED;
  111. module_param(cable_selection_override, uint, 0);
  112. MODULE_PARM_DESC(cable_selection_override,
  113. "This field indicates length of the SAS/SATA cable between "
  114. "host and device. If any bits > 15 are set (default) "
  115. "indicates \"use platform defaults\"");
  116. static ssize_t isci_show_id(struct device *dev, struct device_attribute *attr, char *buf)
  117. {
  118. struct Scsi_Host *shost = container_of(dev, typeof(*shost), shost_dev);
  119. struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost);
  120. struct isci_host *ihost = container_of(sas_ha, typeof(*ihost), sas_ha);
  121. return snprintf(buf, PAGE_SIZE, "%d\n", ihost->id);
  122. }
  123. static DEVICE_ATTR(isci_id, S_IRUGO, isci_show_id, NULL);
  124. struct device_attribute *isci_host_attrs[] = {
  125. &dev_attr_isci_id,
  126. NULL
  127. };
  128. static struct scsi_host_template isci_sht = {
  129. .module = THIS_MODULE,
  130. .name = DRV_NAME,
  131. .proc_name = DRV_NAME,
  132. .queuecommand = sas_queuecommand,
  133. .target_alloc = sas_target_alloc,
  134. .slave_configure = sas_slave_configure,
  135. .scan_finished = isci_host_scan_finished,
  136. .scan_start = isci_host_scan_start,
  137. .change_queue_depth = sas_change_queue_depth,
  138. .change_queue_type = sas_change_queue_type,
  139. .bios_param = sas_bios_param,
  140. .can_queue = ISCI_CAN_QUEUE_VAL,
  141. .cmd_per_lun = 1,
  142. .this_id = -1,
  143. .sg_tablesize = SG_ALL,
  144. .max_sectors = SCSI_DEFAULT_MAX_SECTORS,
  145. .use_clustering = ENABLE_CLUSTERING,
  146. .eh_device_reset_handler = sas_eh_device_reset_handler,
  147. .eh_bus_reset_handler = isci_bus_reset_handler,
  148. .slave_alloc = sas_slave_alloc,
  149. .target_destroy = sas_target_destroy,
  150. .ioctl = sas_ioctl,
  151. .shost_attrs = isci_host_attrs,
  152. };
  153. static struct sas_domain_function_template isci_transport_ops = {
  154. /* The class calls these to notify the LLDD of an event. */
  155. .lldd_port_formed = isci_port_formed,
  156. .lldd_port_deformed = isci_port_deformed,
  157. /* The class calls these when a device is found or gone. */
  158. .lldd_dev_found = isci_remote_device_found,
  159. .lldd_dev_gone = isci_remote_device_gone,
  160. .lldd_execute_task = isci_task_execute_task,
  161. /* Task Management Functions. Must be called from process context. */
  162. .lldd_abort_task = isci_task_abort_task,
  163. .lldd_abort_task_set = isci_task_abort_task_set,
  164. .lldd_clear_aca = isci_task_clear_aca,
  165. .lldd_clear_task_set = isci_task_clear_task_set,
  166. .lldd_I_T_nexus_reset = isci_task_I_T_nexus_reset,
  167. .lldd_lu_reset = isci_task_lu_reset,
  168. .lldd_query_task = isci_task_query_task,
  169. /* ata recovery called from ata-eh */
  170. .lldd_ata_check_ready = isci_ata_check_ready,
  171. /* Port and Adapter management */
  172. .lldd_clear_nexus_port = isci_task_clear_nexus_port,
  173. .lldd_clear_nexus_ha = isci_task_clear_nexus_ha,
  174. /* Phy management */
  175. .lldd_control_phy = isci_phy_control,
  176. /* GPIO support */
  177. .lldd_write_gpio = isci_gpio_write,
  178. };
  179. /******************************************************************************
  180. * P R O T E C T E D M E T H O D S
  181. ******************************************************************************/
  182. /**
  183. * isci_register_sas_ha() - This method initializes various lldd
  184. * specific members of the sas_ha struct and calls the libsas
  185. * sas_register_ha() function.
  186. * @isci_host: This parameter specifies the lldd specific wrapper for the
  187. * libsas sas_ha struct.
  188. *
  189. * This method returns an error code indicating sucess or failure. The user
  190. * should check for possible memory allocation error return otherwise, a zero
  191. * indicates success.
  192. */
  193. static int isci_register_sas_ha(struct isci_host *isci_host)
  194. {
  195. int i;
  196. struct sas_ha_struct *sas_ha = &(isci_host->sas_ha);
  197. struct asd_sas_phy **sas_phys;
  198. struct asd_sas_port **sas_ports;
  199. sas_phys = devm_kzalloc(&isci_host->pdev->dev,
  200. SCI_MAX_PHYS * sizeof(void *),
  201. GFP_KERNEL);
  202. if (!sas_phys)
  203. return -ENOMEM;
  204. sas_ports = devm_kzalloc(&isci_host->pdev->dev,
  205. SCI_MAX_PORTS * sizeof(void *),
  206. GFP_KERNEL);
  207. if (!sas_ports)
  208. return -ENOMEM;
  209. sas_ha->sas_ha_name = DRV_NAME;
  210. sas_ha->lldd_module = THIS_MODULE;
  211. sas_ha->sas_addr = &isci_host->phys[0].sas_addr[0];
  212. for (i = 0; i < SCI_MAX_PHYS; i++) {
  213. sas_phys[i] = &isci_host->phys[i].sas_phy;
  214. sas_ports[i] = &isci_host->sas_ports[i];
  215. }
  216. sas_ha->sas_phy = sas_phys;
  217. sas_ha->sas_port = sas_ports;
  218. sas_ha->num_phys = SCI_MAX_PHYS;
  219. sas_ha->lldd_queue_size = ISCI_CAN_QUEUE_VAL;
  220. sas_ha->lldd_max_execute_num = 1;
  221. sas_ha->strict_wide_ports = 1;
  222. sas_register_ha(sas_ha);
  223. return 0;
  224. }
  225. static void isci_unregister(struct isci_host *isci_host)
  226. {
  227. struct Scsi_Host *shost;
  228. if (!isci_host)
  229. return;
  230. shost = isci_host->shost;
  231. sas_unregister_ha(&isci_host->sas_ha);
  232. sas_remove_host(isci_host->shost);
  233. scsi_remove_host(isci_host->shost);
  234. scsi_host_put(isci_host->shost);
  235. }
  236. static int __devinit isci_pci_init(struct pci_dev *pdev)
  237. {
  238. int err, bar_num, bar_mask = 0;
  239. void __iomem * const *iomap;
  240. err = pcim_enable_device(pdev);
  241. if (err) {
  242. dev_err(&pdev->dev,
  243. "failed enable PCI device %s!\n",
  244. pci_name(pdev));
  245. return err;
  246. }
  247. for (bar_num = 0; bar_num < SCI_PCI_BAR_COUNT; bar_num++)
  248. bar_mask |= 1 << (bar_num * 2);
  249. err = pcim_iomap_regions(pdev, bar_mask, DRV_NAME);
  250. if (err)
  251. return err;
  252. iomap = pcim_iomap_table(pdev);
  253. if (!iomap)
  254. return -ENOMEM;
  255. pci_set_master(pdev);
  256. err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
  257. if (err) {
  258. err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
  259. if (err)
  260. return err;
  261. }
  262. err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
  263. if (err) {
  264. err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
  265. if (err)
  266. return err;
  267. }
  268. return 0;
  269. }
  270. static int num_controllers(struct pci_dev *pdev)
  271. {
  272. /* bar size alone can tell us if we are running with a dual controller
  273. * part, no need to trust revision ids that might be under broken firmware
  274. * control
  275. */
  276. resource_size_t scu_bar_size = pci_resource_len(pdev, SCI_SCU_BAR*2);
  277. resource_size_t smu_bar_size = pci_resource_len(pdev, SCI_SMU_BAR*2);
  278. if (scu_bar_size >= SCI_SCU_BAR_SIZE*SCI_MAX_CONTROLLERS &&
  279. smu_bar_size >= SCI_SMU_BAR_SIZE*SCI_MAX_CONTROLLERS)
  280. return SCI_MAX_CONTROLLERS;
  281. else
  282. return 1;
  283. }
  284. static int isci_setup_interrupts(struct pci_dev *pdev)
  285. {
  286. int err, i, num_msix;
  287. struct isci_host *ihost;
  288. struct isci_pci_info *pci_info = to_pci_info(pdev);
  289. /*
  290. * Determine the number of vectors associated with this
  291. * PCI function.
  292. */
  293. num_msix = num_controllers(pdev) * SCI_NUM_MSI_X_INT;
  294. for (i = 0; i < num_msix; i++)
  295. pci_info->msix_entries[i].entry = i;
  296. err = pci_enable_msix(pdev, pci_info->msix_entries, num_msix);
  297. if (err)
  298. goto intx;
  299. for (i = 0; i < num_msix; i++) {
  300. int id = i / SCI_NUM_MSI_X_INT;
  301. struct msix_entry *msix = &pci_info->msix_entries[i];
  302. irq_handler_t isr;
  303. ihost = pci_info->hosts[id];
  304. /* odd numbered vectors are error interrupts */
  305. if (i & 1)
  306. isr = isci_error_isr;
  307. else
  308. isr = isci_msix_isr;
  309. err = devm_request_irq(&pdev->dev, msix->vector, isr, 0,
  310. DRV_NAME"-msix", ihost);
  311. if (!err)
  312. continue;
  313. dev_info(&pdev->dev, "msix setup failed falling back to intx\n");
  314. while (i--) {
  315. id = i / SCI_NUM_MSI_X_INT;
  316. ihost = pci_info->hosts[id];
  317. msix = &pci_info->msix_entries[i];
  318. devm_free_irq(&pdev->dev, msix->vector, ihost);
  319. }
  320. pci_disable_msix(pdev);
  321. goto intx;
  322. }
  323. return 0;
  324. intx:
  325. for_each_isci_host(i, ihost, pdev) {
  326. err = devm_request_irq(&pdev->dev, pdev->irq, isci_intx_isr,
  327. IRQF_SHARED, DRV_NAME"-intx", ihost);
  328. if (err)
  329. break;
  330. }
  331. return err;
  332. }
  333. static struct isci_host *isci_host_alloc(struct pci_dev *pdev, int id)
  334. {
  335. struct isci_host *isci_host;
  336. struct Scsi_Host *shost;
  337. int err;
  338. isci_host = devm_kzalloc(&pdev->dev, sizeof(*isci_host), GFP_KERNEL);
  339. if (!isci_host)
  340. return NULL;
  341. isci_host->pdev = pdev;
  342. isci_host->id = id;
  343. shost = scsi_host_alloc(&isci_sht, sizeof(void *));
  344. if (!shost)
  345. return NULL;
  346. isci_host->shost = shost;
  347. dev_info(&pdev->dev, "%sSCU controller %d: phy 3-0 cables: "
  348. "{%s, %s, %s, %s}\n",
  349. (is_cable_select_overridden() ? "* " : ""), isci_host->id,
  350. lookup_cable_names(decode_cable_selection(isci_host, 3)),
  351. lookup_cable_names(decode_cable_selection(isci_host, 2)),
  352. lookup_cable_names(decode_cable_selection(isci_host, 1)),
  353. lookup_cable_names(decode_cable_selection(isci_host, 0)));
  354. err = isci_host_init(isci_host);
  355. if (err)
  356. goto err_shost;
  357. SHOST_TO_SAS_HA(shost) = &isci_host->sas_ha;
  358. isci_host->sas_ha.core.shost = shost;
  359. shost->transportt = isci_transport_template;
  360. shost->max_id = ~0;
  361. shost->max_lun = ~0;
  362. shost->max_cmd_len = MAX_COMMAND_SIZE;
  363. err = scsi_add_host(shost, &pdev->dev);
  364. if (err)
  365. goto err_shost;
  366. err = isci_register_sas_ha(isci_host);
  367. if (err)
  368. goto err_shost_remove;
  369. return isci_host;
  370. err_shost_remove:
  371. scsi_remove_host(shost);
  372. err_shost:
  373. scsi_host_put(shost);
  374. return NULL;
  375. }
  376. static int __devinit isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
  377. {
  378. struct isci_pci_info *pci_info;
  379. int err, i;
  380. struct isci_host *isci_host;
  381. const struct firmware *fw = NULL;
  382. struct isci_orom *orom = NULL;
  383. char *source = "(platform)";
  384. dev_info(&pdev->dev, "driver configured for rev: %d silicon\n",
  385. pdev->revision);
  386. pci_info = devm_kzalloc(&pdev->dev, sizeof(*pci_info), GFP_KERNEL);
  387. if (!pci_info)
  388. return -ENOMEM;
  389. pci_set_drvdata(pdev, pci_info);
  390. if (efi_enabled)
  391. orom = isci_get_efi_var(pdev);
  392. if (!orom)
  393. orom = isci_request_oprom(pdev);
  394. for (i = 0; orom && i < ARRAY_SIZE(orom->ctrl); i++) {
  395. if (sci_oem_parameters_validate(&orom->ctrl[i],
  396. orom->hdr.version)) {
  397. dev_warn(&pdev->dev,
  398. "[%d]: invalid oem parameters detected, falling back to firmware\n", i);
  399. devm_kfree(&pdev->dev, orom);
  400. orom = NULL;
  401. break;
  402. }
  403. }
  404. if (!orom) {
  405. source = "(firmware)";
  406. orom = isci_request_firmware(pdev, fw);
  407. if (!orom) {
  408. /* TODO convert this to WARN_TAINT_ONCE once the
  409. * orom/efi parameter support is widely available
  410. */
  411. dev_warn(&pdev->dev,
  412. "Loading user firmware failed, using default "
  413. "values\n");
  414. dev_warn(&pdev->dev,
  415. "Default OEM configuration being used: 4 "
  416. "narrow ports, and default SAS Addresses\n");
  417. }
  418. }
  419. if (orom)
  420. dev_info(&pdev->dev,
  421. "OEM SAS parameters (version: %u.%u) loaded %s\n",
  422. (orom->hdr.version & 0xf0) >> 4,
  423. (orom->hdr.version & 0xf), source);
  424. pci_info->orom = orom;
  425. err = isci_pci_init(pdev);
  426. if (err)
  427. return err;
  428. for (i = 0; i < num_controllers(pdev); i++) {
  429. struct isci_host *h = isci_host_alloc(pdev, i);
  430. if (!h) {
  431. err = -ENOMEM;
  432. goto err_host_alloc;
  433. }
  434. pci_info->hosts[i] = h;
  435. /* turn on DIF support */
  436. scsi_host_set_prot(h->shost,
  437. SHOST_DIF_TYPE1_PROTECTION |
  438. SHOST_DIF_TYPE2_PROTECTION |
  439. SHOST_DIF_TYPE3_PROTECTION);
  440. scsi_host_set_guard(h->shost, SHOST_DIX_GUARD_CRC);
  441. }
  442. err = isci_setup_interrupts(pdev);
  443. if (err)
  444. goto err_host_alloc;
  445. for_each_isci_host(i, isci_host, pdev)
  446. scsi_scan_host(isci_host->shost);
  447. return 0;
  448. err_host_alloc:
  449. for_each_isci_host(i, isci_host, pdev)
  450. isci_unregister(isci_host);
  451. return err;
  452. }
  453. static void __devexit isci_pci_remove(struct pci_dev *pdev)
  454. {
  455. struct isci_host *ihost;
  456. int i;
  457. for_each_isci_host(i, ihost, pdev) {
  458. isci_unregister(ihost);
  459. isci_host_deinit(ihost);
  460. sci_controller_disable_interrupts(ihost);
  461. }
  462. }
  463. static struct pci_driver isci_pci_driver = {
  464. .name = DRV_NAME,
  465. .id_table = isci_id_table,
  466. .probe = isci_pci_probe,
  467. .remove = __devexit_p(isci_pci_remove),
  468. };
  469. static __init int isci_init(void)
  470. {
  471. int err;
  472. pr_info("%s: Intel(R) C600 SAS Controller Driver - version %s\n",
  473. DRV_NAME, DRV_VERSION);
  474. isci_transport_template = sas_domain_attach_transport(&isci_transport_ops);
  475. if (!isci_transport_template)
  476. return -ENOMEM;
  477. err = pci_register_driver(&isci_pci_driver);
  478. if (err)
  479. sas_release_transport(isci_transport_template);
  480. return err;
  481. }
  482. static __exit void isci_exit(void)
  483. {
  484. pci_unregister_driver(&isci_pci_driver);
  485. sas_release_transport(isci_transport_template);
  486. }
  487. MODULE_LICENSE("Dual BSD/GPL");
  488. MODULE_FIRMWARE(ISCI_FW_NAME);
  489. module_init(isci_init);
  490. module_exit(isci_exit);