hcd-pci.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright David Brownell 2000-2002
  4. */
  5. #include <linux/kernel.h>
  6. #include <linux/module.h>
  7. #include <linux/pci.h>
  8. #include <linux/usb.h>
  9. #include <linux/usb/hcd.h>
  10. #include <asm/io.h>
  11. #include <asm/irq.h>
  12. #ifdef CONFIG_PPC_PMAC
  13. #include <asm/machdep.h>
  14. #include <asm/pmac_feature.h>
  15. #include <asm/prom.h>
  16. #endif
  17. #include "usb.h"
  18. /* PCI-based HCs are common, but plenty of non-PCI HCs are used too */
  19. /*
  20. * Coordinate handoffs between EHCI and companion controllers
  21. * during EHCI probing and system resume.
  22. */
  23. static DECLARE_RWSEM(companions_rwsem);
  24. #define CL_UHCI PCI_CLASS_SERIAL_USB_UHCI
  25. #define CL_OHCI PCI_CLASS_SERIAL_USB_OHCI
  26. #define CL_EHCI PCI_CLASS_SERIAL_USB_EHCI
  27. static inline int is_ohci_or_uhci(struct pci_dev *pdev)
  28. {
  29. return pdev->class == CL_OHCI || pdev->class == CL_UHCI;
  30. }
  31. typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
  32. struct pci_dev *companion, struct usb_hcd *companion_hcd);
  33. /* Iterate over PCI devices in the same slot as pdev and call fn for each */
  34. static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd,
  35. companion_fn fn)
  36. {
  37. struct pci_dev *companion;
  38. struct usb_hcd *companion_hcd;
  39. unsigned int slot = PCI_SLOT(pdev->devfn);
  40. /*
  41. * Iterate through other PCI functions in the same slot.
  42. * If the function's drvdata isn't set then it isn't bound to
  43. * a USB host controller driver, so skip it.
  44. */
  45. companion = NULL;
  46. for_each_pci_dev(companion) {
  47. if (companion->bus != pdev->bus ||
  48. PCI_SLOT(companion->devfn) != slot)
  49. continue;
  50. /*
  51. * Companion device should be either UHCI,OHCI or EHCI host
  52. * controller, otherwise skip.
  53. */
  54. if (companion->class != CL_UHCI && companion->class != CL_OHCI &&
  55. companion->class != CL_EHCI)
  56. continue;
  57. companion_hcd = pci_get_drvdata(companion);
  58. if (!companion_hcd || !companion_hcd->self.root_hub)
  59. continue;
  60. fn(pdev, hcd, companion, companion_hcd);
  61. }
  62. }
  63. /*
  64. * We're about to add an EHCI controller, which will unceremoniously grab
  65. * all the port connections away from its companions. To prevent annoying
  66. * error messages, lock the companion's root hub and gracefully unconfigure
  67. * it beforehand. Leave it locked until the EHCI controller is all set.
  68. */
  69. static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd,
  70. struct pci_dev *companion, struct usb_hcd *companion_hcd)
  71. {
  72. struct usb_device *udev;
  73. if (is_ohci_or_uhci(companion)) {
  74. udev = companion_hcd->self.root_hub;
  75. usb_lock_device(udev);
  76. usb_set_configuration(udev, 0);
  77. }
  78. }
  79. /*
  80. * Adding the EHCI controller has either succeeded or failed. Set the
  81. * companion pointer accordingly, and in either case, reconfigure and
  82. * unlock the root hub.
  83. */
  84. static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd,
  85. struct pci_dev *companion, struct usb_hcd *companion_hcd)
  86. {
  87. struct usb_device *udev;
  88. if (is_ohci_or_uhci(companion)) {
  89. if (dev_get_drvdata(&pdev->dev)) { /* Succeeded */
  90. dev_dbg(&pdev->dev, "HS companion for %s\n",
  91. dev_name(&companion->dev));
  92. companion_hcd->self.hs_companion = &hcd->self;
  93. }
  94. udev = companion_hcd->self.root_hub;
  95. usb_set_configuration(udev, 1);
  96. usb_unlock_device(udev);
  97. }
  98. }
  99. /*
  100. * We just added a non-EHCI controller. Find the EHCI controller to
  101. * which it is a companion, and store a pointer to the bus structure.
  102. */
  103. static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd,
  104. struct pci_dev *companion, struct usb_hcd *companion_hcd)
  105. {
  106. if (is_ohci_or_uhci(pdev) && companion->class == CL_EHCI) {
  107. dev_dbg(&pdev->dev, "FS/LS companion for %s\n",
  108. dev_name(&companion->dev));
  109. hcd->self.hs_companion = &companion_hcd->self;
  110. }
  111. }
  112. /* We are removing an EHCI controller. Clear the companions' pointers. */
  113. static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd,
  114. struct pci_dev *companion, struct usb_hcd *companion_hcd)
  115. {
  116. if (is_ohci_or_uhci(companion))
  117. companion_hcd->self.hs_companion = NULL;
  118. }
  119. #ifdef CONFIG_PM
  120. /* An EHCI controller must wait for its companions before resuming. */
  121. static void ehci_wait_for_companions(struct pci_dev *pdev, struct usb_hcd *hcd,
  122. struct pci_dev *companion, struct usb_hcd *companion_hcd)
  123. {
  124. if (is_ohci_or_uhci(companion))
  125. device_pm_wait_for_dev(&pdev->dev, &companion->dev);
  126. }
  127. #endif /* CONFIG_PM */
  128. /*-------------------------------------------------------------------------*/
  129. /* configure so an HC device and id are always provided */
  130. /* always called with process context; sleeping is OK */
  131. /**
  132. * usb_hcd_pci_probe - initialize PCI-based HCDs
  133. * @dev: USB Host Controller being probed
  134. * @id: pci hotplug id connecting controller to HCD framework
  135. * Context: !in_interrupt()
  136. *
  137. * Allocates basic PCI resources for this USB host controller, and
  138. * then invokes the start() method for the HCD associated with it
  139. * through the hotplug entry's driver_data.
  140. *
  141. * Store this function in the HCD's struct pci_driver as probe().
  142. *
  143. * Return: 0 if successful.
  144. */
  145. int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
  146. {
  147. struct hc_driver *driver;
  148. struct usb_hcd *hcd;
  149. int retval;
  150. int hcd_irq = 0;
  151. if (usb_disabled())
  152. return -ENODEV;
  153. if (!id)
  154. return -EINVAL;
  155. driver = (struct hc_driver *)id->driver_data;
  156. if (!driver)
  157. return -EINVAL;
  158. if (pci_enable_device(dev) < 0)
  159. return -ENODEV;
  160. /*
  161. * The xHCI driver has its own irq management
  162. * make sure irq setup is not touched for xhci in generic hcd code
  163. */
  164. if ((driver->flags & HCD_MASK) < HCD_USB3) {
  165. if (!dev->irq) {
  166. dev_err(&dev->dev,
  167. "Found HC with no IRQ. Check BIOS/PCI %s setup!\n",
  168. pci_name(dev));
  169. retval = -ENODEV;
  170. goto disable_pci;
  171. }
  172. hcd_irq = dev->irq;
  173. }
  174. hcd = usb_create_hcd(driver, &dev->dev, pci_name(dev));
  175. if (!hcd) {
  176. retval = -ENOMEM;
  177. goto disable_pci;
  178. }
  179. hcd->amd_resume_bug = (usb_hcd_amd_remote_wakeup_quirk(dev) &&
  180. driver->flags & (HCD_USB11 | HCD_USB3)) ? 1 : 0;
  181. if (driver->flags & HCD_MEMORY) {
  182. /* EHCI, OHCI */
  183. hcd->rsrc_start = pci_resource_start(dev, 0);
  184. hcd->rsrc_len = pci_resource_len(dev, 0);
  185. if (!devm_request_mem_region(&dev->dev, hcd->rsrc_start,
  186. hcd->rsrc_len, driver->description)) {
  187. dev_dbg(&dev->dev, "controller already in use\n");
  188. retval = -EBUSY;
  189. goto put_hcd;
  190. }
  191. hcd->regs = devm_ioremap_nocache(&dev->dev, hcd->rsrc_start,
  192. hcd->rsrc_len);
  193. if (hcd->regs == NULL) {
  194. dev_dbg(&dev->dev, "error mapping memory\n");
  195. retval = -EFAULT;
  196. goto put_hcd;
  197. }
  198. } else {
  199. /* UHCI */
  200. int region;
  201. for (region = 0; region < PCI_ROM_RESOURCE; region++) {
  202. if (!(pci_resource_flags(dev, region) &
  203. IORESOURCE_IO))
  204. continue;
  205. hcd->rsrc_start = pci_resource_start(dev, region);
  206. hcd->rsrc_len = pci_resource_len(dev, region);
  207. if (devm_request_region(&dev->dev, hcd->rsrc_start,
  208. hcd->rsrc_len, driver->description))
  209. break;
  210. }
  211. if (region == PCI_ROM_RESOURCE) {
  212. dev_dbg(&dev->dev, "no i/o regions available\n");
  213. retval = -EBUSY;
  214. goto put_hcd;
  215. }
  216. }
  217. pci_set_master(dev);
  218. /* Note: dev_set_drvdata must be called while holding the rwsem */
  219. if (dev->class == CL_EHCI) {
  220. down_write(&companions_rwsem);
  221. dev_set_drvdata(&dev->dev, hcd);
  222. for_each_companion(dev, hcd, ehci_pre_add);
  223. retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED);
  224. if (retval != 0)
  225. dev_set_drvdata(&dev->dev, NULL);
  226. for_each_companion(dev, hcd, ehci_post_add);
  227. up_write(&companions_rwsem);
  228. } else {
  229. down_read(&companions_rwsem);
  230. dev_set_drvdata(&dev->dev, hcd);
  231. retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED);
  232. if (retval != 0)
  233. dev_set_drvdata(&dev->dev, NULL);
  234. else
  235. for_each_companion(dev, hcd, non_ehci_add);
  236. up_read(&companions_rwsem);
  237. }
  238. if (retval != 0)
  239. goto put_hcd;
  240. device_wakeup_enable(hcd->self.controller);
  241. if (pci_dev_run_wake(dev))
  242. pm_runtime_put_noidle(&dev->dev);
  243. return retval;
  244. put_hcd:
  245. usb_put_hcd(hcd);
  246. disable_pci:
  247. pci_disable_device(dev);
  248. dev_err(&dev->dev, "init %s fail, %d\n", pci_name(dev), retval);
  249. return retval;
  250. }
  251. EXPORT_SYMBOL_GPL(usb_hcd_pci_probe);
  252. /* may be called without controller electrically present */
  253. /* may be called with controller, bus, and devices active */
  254. /**
  255. * usb_hcd_pci_remove - shutdown processing for PCI-based HCDs
  256. * @dev: USB Host Controller being removed
  257. * Context: !in_interrupt()
  258. *
  259. * Reverses the effect of usb_hcd_pci_probe(), first invoking
  260. * the HCD's stop() method. It is always called from a thread
  261. * context, normally "rmmod", "apmd", or something similar.
  262. *
  263. * Store this function in the HCD's struct pci_driver as remove().
  264. */
  265. void usb_hcd_pci_remove(struct pci_dev *dev)
  266. {
  267. struct usb_hcd *hcd;
  268. hcd = pci_get_drvdata(dev);
  269. if (!hcd)
  270. return;
  271. if (pci_dev_run_wake(dev))
  272. pm_runtime_get_noresume(&dev->dev);
  273. /* Fake an interrupt request in order to give the driver a chance
  274. * to test whether the controller hardware has been removed (e.g.,
  275. * cardbus physical eject).
  276. */
  277. local_irq_disable();
  278. usb_hcd_irq(0, hcd);
  279. local_irq_enable();
  280. /* Note: dev_set_drvdata must be called while holding the rwsem */
  281. if (dev->class == CL_EHCI) {
  282. down_write(&companions_rwsem);
  283. for_each_companion(dev, hcd, ehci_remove);
  284. usb_remove_hcd(hcd);
  285. dev_set_drvdata(&dev->dev, NULL);
  286. up_write(&companions_rwsem);
  287. } else {
  288. /* Not EHCI; just clear the companion pointer */
  289. down_read(&companions_rwsem);
  290. hcd->self.hs_companion = NULL;
  291. usb_remove_hcd(hcd);
  292. dev_set_drvdata(&dev->dev, NULL);
  293. up_read(&companions_rwsem);
  294. }
  295. usb_put_hcd(hcd);
  296. pci_disable_device(dev);
  297. }
  298. EXPORT_SYMBOL_GPL(usb_hcd_pci_remove);
  299. /**
  300. * usb_hcd_pci_shutdown - shutdown host controller
  301. * @dev: USB Host Controller being shutdown
  302. */
  303. void usb_hcd_pci_shutdown(struct pci_dev *dev)
  304. {
  305. struct usb_hcd *hcd;
  306. hcd = pci_get_drvdata(dev);
  307. if (!hcd)
  308. return;
  309. if (test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags) &&
  310. hcd->driver->shutdown) {
  311. hcd->driver->shutdown(hcd);
  312. if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0)
  313. free_irq(hcd->irq, hcd);
  314. pci_disable_device(dev);
  315. }
  316. }
  317. EXPORT_SYMBOL_GPL(usb_hcd_pci_shutdown);
  318. #ifdef CONFIG_PM
  319. #ifdef CONFIG_PPC_PMAC
  320. static void powermac_set_asic(struct pci_dev *pci_dev, int enable)
  321. {
  322. /* Enanble or disable ASIC clocks for USB */
  323. if (machine_is(powermac)) {
  324. struct device_node *of_node;
  325. of_node = pci_device_to_OF_node(pci_dev);
  326. if (of_node)
  327. pmac_call_feature(PMAC_FTR_USB_ENABLE,
  328. of_node, 0, enable);
  329. }
  330. }
  331. #else
  332. static inline void powermac_set_asic(struct pci_dev *pci_dev, int enable)
  333. {}
  334. #endif /* CONFIG_PPC_PMAC */
  335. static int check_root_hub_suspended(struct device *dev)
  336. {
  337. struct pci_dev *pci_dev = to_pci_dev(dev);
  338. struct usb_hcd *hcd = pci_get_drvdata(pci_dev);
  339. if (HCD_RH_RUNNING(hcd)) {
  340. dev_warn(dev, "Root hub is not suspended\n");
  341. return -EBUSY;
  342. }
  343. if (hcd->shared_hcd) {
  344. hcd = hcd->shared_hcd;
  345. if (HCD_RH_RUNNING(hcd)) {
  346. dev_warn(dev, "Secondary root hub is not suspended\n");
  347. return -EBUSY;
  348. }
  349. }
  350. return 0;
  351. }
  352. static int suspend_common(struct device *dev, bool do_wakeup)
  353. {
  354. struct pci_dev *pci_dev = to_pci_dev(dev);
  355. struct usb_hcd *hcd = pci_get_drvdata(pci_dev);
  356. int retval;
  357. /* Root hub suspend should have stopped all downstream traffic,
  358. * and all bus master traffic. And done so for both the interface
  359. * and the stub usb_device (which we check here). But maybe it
  360. * didn't; writing sysfs power/state files ignores such rules...
  361. */
  362. retval = check_root_hub_suspended(dev);
  363. if (retval)
  364. return retval;
  365. if (hcd->driver->pci_suspend && !HCD_DEAD(hcd)) {
  366. /* Optimization: Don't suspend if a root-hub wakeup is
  367. * pending and it would cause the HCD to wake up anyway.
  368. */
  369. if (do_wakeup && HCD_WAKEUP_PENDING(hcd))
  370. return -EBUSY;
  371. if (do_wakeup && hcd->shared_hcd &&
  372. HCD_WAKEUP_PENDING(hcd->shared_hcd))
  373. return -EBUSY;
  374. retval = hcd->driver->pci_suspend(hcd, do_wakeup);
  375. suspend_report_result(hcd->driver->pci_suspend, retval);
  376. /* Check again in case wakeup raced with pci_suspend */
  377. if ((retval == 0 && do_wakeup && HCD_WAKEUP_PENDING(hcd)) ||
  378. (retval == 0 && do_wakeup && hcd->shared_hcd &&
  379. HCD_WAKEUP_PENDING(hcd->shared_hcd))) {
  380. if (hcd->driver->pci_resume)
  381. hcd->driver->pci_resume(hcd, false);
  382. retval = -EBUSY;
  383. }
  384. if (retval)
  385. return retval;
  386. }
  387. /* If MSI-X is enabled, the driver will have synchronized all vectors
  388. * in pci_suspend(). If MSI or legacy PCI is enabled, that will be
  389. * synchronized here.
  390. */
  391. if (!hcd->msix_enabled)
  392. synchronize_irq(pci_dev->irq);
  393. /* Downstream ports from this root hub should already be quiesced, so
  394. * there will be no DMA activity. Now we can shut down the upstream
  395. * link (except maybe for PME# resume signaling). We'll enter a
  396. * low power state during suspend_noirq, if the hardware allows.
  397. */
  398. pci_disable_device(pci_dev);
  399. return retval;
  400. }
  401. static int resume_common(struct device *dev, int event)
  402. {
  403. struct pci_dev *pci_dev = to_pci_dev(dev);
  404. struct usb_hcd *hcd = pci_get_drvdata(pci_dev);
  405. int retval;
  406. if (HCD_RH_RUNNING(hcd) ||
  407. (hcd->shared_hcd &&
  408. HCD_RH_RUNNING(hcd->shared_hcd))) {
  409. dev_dbg(dev, "can't resume, not suspended!\n");
  410. return 0;
  411. }
  412. retval = pci_enable_device(pci_dev);
  413. if (retval < 0) {
  414. dev_err(dev, "can't re-enable after resume, %d!\n", retval);
  415. return retval;
  416. }
  417. pci_set_master(pci_dev);
  418. if (hcd->driver->pci_resume && !HCD_DEAD(hcd)) {
  419. /*
  420. * Only EHCI controllers have to wait for their companions.
  421. * No locking is needed because PCI controller drivers do not
  422. * get unbound during system resume.
  423. */
  424. if (pci_dev->class == CL_EHCI && event != PM_EVENT_AUTO_RESUME)
  425. for_each_companion(pci_dev, hcd,
  426. ehci_wait_for_companions);
  427. retval = hcd->driver->pci_resume(hcd,
  428. event == PM_EVENT_RESTORE);
  429. if (retval) {
  430. dev_err(dev, "PCI post-resume error %d!\n", retval);
  431. usb_hc_died(hcd);
  432. }
  433. }
  434. return retval;
  435. }
  436. #ifdef CONFIG_PM_SLEEP
  437. static int hcd_pci_suspend(struct device *dev)
  438. {
  439. return suspend_common(dev, device_may_wakeup(dev));
  440. }
  441. static int hcd_pci_suspend_noirq(struct device *dev)
  442. {
  443. struct pci_dev *pci_dev = to_pci_dev(dev);
  444. struct usb_hcd *hcd = pci_get_drvdata(pci_dev);
  445. int retval;
  446. retval = check_root_hub_suspended(dev);
  447. if (retval)
  448. return retval;
  449. pci_save_state(pci_dev);
  450. /* If the root hub is dead rather than suspended, disallow remote
  451. * wakeup. usb_hc_died() should ensure that both hosts are marked as
  452. * dying, so we only need to check the primary roothub.
  453. */
  454. if (HCD_DEAD(hcd))
  455. device_set_wakeup_enable(dev, 0);
  456. dev_dbg(dev, "wakeup: %d\n", device_may_wakeup(dev));
  457. /* Possibly enable remote wakeup,
  458. * choose the appropriate low-power state, and go to that state.
  459. */
  460. retval = pci_prepare_to_sleep(pci_dev);
  461. if (retval == -EIO) { /* Low-power not supported */
  462. dev_dbg(dev, "--> PCI D0 legacy\n");
  463. retval = 0;
  464. } else if (retval == 0) {
  465. dev_dbg(dev, "--> PCI %s\n",
  466. pci_power_name(pci_dev->current_state));
  467. } else {
  468. suspend_report_result(pci_prepare_to_sleep, retval);
  469. return retval;
  470. }
  471. powermac_set_asic(pci_dev, 0);
  472. return retval;
  473. }
  474. static int hcd_pci_resume_noirq(struct device *dev)
  475. {
  476. powermac_set_asic(to_pci_dev(dev), 1);
  477. return 0;
  478. }
  479. static int hcd_pci_resume(struct device *dev)
  480. {
  481. return resume_common(dev, PM_EVENT_RESUME);
  482. }
  483. static int hcd_pci_restore(struct device *dev)
  484. {
  485. return resume_common(dev, PM_EVENT_RESTORE);
  486. }
  487. #else
  488. #define hcd_pci_suspend NULL
  489. #define hcd_pci_suspend_noirq NULL
  490. #define hcd_pci_resume_noirq NULL
  491. #define hcd_pci_resume NULL
  492. #define hcd_pci_restore NULL
  493. #endif /* CONFIG_PM_SLEEP */
  494. static int hcd_pci_runtime_suspend(struct device *dev)
  495. {
  496. int retval;
  497. retval = suspend_common(dev, true);
  498. if (retval == 0)
  499. powermac_set_asic(to_pci_dev(dev), 0);
  500. dev_dbg(dev, "hcd_pci_runtime_suspend: %d\n", retval);
  501. return retval;
  502. }
  503. static int hcd_pci_runtime_resume(struct device *dev)
  504. {
  505. int retval;
  506. powermac_set_asic(to_pci_dev(dev), 1);
  507. retval = resume_common(dev, PM_EVENT_AUTO_RESUME);
  508. dev_dbg(dev, "hcd_pci_runtime_resume: %d\n", retval);
  509. return retval;
  510. }
  511. const struct dev_pm_ops usb_hcd_pci_pm_ops = {
  512. .suspend = hcd_pci_suspend,
  513. .suspend_noirq = hcd_pci_suspend_noirq,
  514. .resume_noirq = hcd_pci_resume_noirq,
  515. .resume = hcd_pci_resume,
  516. .freeze = check_root_hub_suspended,
  517. .freeze_noirq = check_root_hub_suspended,
  518. .thaw_noirq = NULL,
  519. .thaw = NULL,
  520. .poweroff = hcd_pci_suspend,
  521. .poweroff_noirq = hcd_pci_suspend_noirq,
  522. .restore_noirq = hcd_pci_resume_noirq,
  523. .restore = hcd_pci_restore,
  524. .runtime_suspend = hcd_pci_runtime_suspend,
  525. .runtime_resume = hcd_pci_runtime_resume,
  526. };
  527. EXPORT_SYMBOL_GPL(usb_hcd_pci_pm_ops);
  528. #endif /* CONFIG_PM */