dwc3-pci.c (cecdd52a3dd312564f81a39df08378b7b39a2654) | dwc3-pci.c (917dc99b659114a4aad2ee8b20bcdc05c80e5f09) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * dwc3-pci.c - PCI Specific glue layer 4 * 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Authors: Felipe Balbi <balbi@ti.com>, 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- 373 unchanged lines hidden (view full) --- 382#endif 383 device_init_wakeup(&pci->dev, false); 384 pm_runtime_get(&pci->dev); 385 device_remove_software_node(&dwc->dwc3->dev); 386 platform_device_unregister(dwc->dwc3); 387} 388 389static const struct pci_device_id dwc3_pci_id_table[] = { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * dwc3-pci.c - PCI Specific glue layer 4 * 5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Authors: Felipe Balbi <balbi@ti.com>, 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- 373 unchanged lines hidden (view full) --- 382#endif 383 device_init_wakeup(&pci->dev, false); 384 pm_runtime_get(&pci->dev); 385 device_remove_software_node(&dwc->dwc3->dev); 386 platform_device_unregister(dwc->dwc3); 387} 388 389static const struct pci_device_id dwc3_pci_id_table[] = { |
390 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BSW), 391 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, | 390 { PCI_DEVICE_DATA(INTEL, BSW, &dwc3_pci_intel_swnode) }, 391 { PCI_DEVICE_DATA(INTEL, BYT, &dwc3_pci_intel_byt_swnode) }, 392 { PCI_DEVICE_DATA(INTEL, MRFLD, &dwc3_pci_intel_mrfld_swnode) }, 393 { PCI_DEVICE_DATA(INTEL, CMLLP, &dwc3_pci_intel_swnode) }, 394 { PCI_DEVICE_DATA(INTEL, CMLH, &dwc3_pci_intel_swnode) }, 395 { PCI_DEVICE_DATA(INTEL, SPTLP, &dwc3_pci_intel_swnode) }, 396 { PCI_DEVICE_DATA(INTEL, SPTH, &dwc3_pci_intel_swnode) }, 397 { PCI_DEVICE_DATA(INTEL, BXT, &dwc3_pci_intel_swnode) }, 398 { PCI_DEVICE_DATA(INTEL, BXT_M, &dwc3_pci_intel_swnode) }, 399 { PCI_DEVICE_DATA(INTEL, APL, &dwc3_pci_intel_swnode) }, 400 { PCI_DEVICE_DATA(INTEL, KBP, &dwc3_pci_intel_swnode) }, 401 { PCI_DEVICE_DATA(INTEL, GLK, &dwc3_pci_intel_swnode) }, 402 { PCI_DEVICE_DATA(INTEL, CNPLP, &dwc3_pci_intel_swnode) }, 403 { PCI_DEVICE_DATA(INTEL, CNPH, &dwc3_pci_intel_swnode) }, 404 { PCI_DEVICE_DATA(INTEL, CNPV, &dwc3_pci_intel_swnode) }, 405 { PCI_DEVICE_DATA(INTEL, ICLLP, &dwc3_pci_intel_swnode) }, 406 { PCI_DEVICE_DATA(INTEL, EHL, &dwc3_pci_intel_swnode) }, 407 { PCI_DEVICE_DATA(INTEL, TGPLP, &dwc3_pci_intel_swnode) }, 408 { PCI_DEVICE_DATA(INTEL, TGPH, &dwc3_pci_intel_swnode) }, 409 { PCI_DEVICE_DATA(INTEL, JSP, &dwc3_pci_intel_swnode) }, 410 { PCI_DEVICE_DATA(INTEL, ADL, &dwc3_pci_intel_swnode) }, 411 { PCI_DEVICE_DATA(INTEL, ADL_PCH, &dwc3_pci_intel_swnode) }, 412 { PCI_DEVICE_DATA(INTEL, ADLN, &dwc3_pci_intel_swnode) }, 413 { PCI_DEVICE_DATA(INTEL, ADLN_PCH, &dwc3_pci_intel_swnode) }, 414 { PCI_DEVICE_DATA(INTEL, ADLS, &dwc3_pci_intel_swnode) }, 415 { PCI_DEVICE_DATA(INTEL, RPL, &dwc3_pci_intel_swnode) }, 416 { PCI_DEVICE_DATA(INTEL, RPLS, &dwc3_pci_intel_swnode) }, 417 { PCI_DEVICE_DATA(INTEL, MTLM, &dwc3_pci_intel_swnode) }, 418 { PCI_DEVICE_DATA(INTEL, MTLP, &dwc3_pci_intel_swnode) }, 419 { PCI_DEVICE_DATA(INTEL, MTL, &dwc3_pci_intel_swnode) }, 420 { PCI_DEVICE_DATA(INTEL, TGL, &dwc3_pci_intel_swnode) }, |
392 | 421 |
393 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BYT), 394 (kernel_ulong_t) &dwc3_pci_intel_byt_swnode, }, | 422 { PCI_DEVICE_DATA(AMD, NL_USB, &dwc3_pci_amd_swnode) }, 423 { PCI_DEVICE_DATA(AMD, MR, &dwc3_pci_amd_mr_swnode) }, |
395 | 424 |
396 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MRFLD), 397 (kernel_ulong_t) &dwc3_pci_intel_mrfld_swnode, }, 398 399 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CMLLP), 400 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 401 402 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CMLH), 403 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 404 405 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SPTLP), 406 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 407 408 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SPTH), 409 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 410 411 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BXT), 412 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 413 414 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_BXT_M), 415 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 416 417 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_APL), 418 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 419 420 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_KBP), 421 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 422 423 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_GLK), 424 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 425 426 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPLP), 427 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 428 429 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPH), 430 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 431 432 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_CNPV), 433 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 434 435 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ICLLP), 436 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 437 438 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_EHL), 439 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 440 441 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGPLP), 442 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 443 444 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGPH), 445 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 446 447 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_JSP), 448 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 449 450 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADL), 451 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 452 453 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADL_PCH), 454 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 455 456 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLN), 457 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 458 459 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLN_PCH), 460 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 461 462 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ADLS), 463 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 464 465 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_RPL), 466 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 467 468 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_RPLS), 469 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 470 471 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLM), 472 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 473 474 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLP), 475 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 476 477 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTL), 478 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 479 480 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_TGL), 481 (kernel_ulong_t) &dwc3_pci_intel_swnode, }, 482 483 { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_NL_USB), 484 (kernel_ulong_t) &dwc3_pci_amd_swnode, }, 485 486 { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_MR), 487 (kernel_ulong_t)&dwc3_pci_amd_mr_swnode, }, 488 | |
489 { } /* Terminating Entry */ 490}; 491MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 492 493#if defined(CONFIG_PM) || defined(CONFIG_PM_SLEEP) 494static int dwc3_pci_dsm(struct dwc3_pci *dwc, int param) 495{ 496 union acpi_object *obj; --- 85 unchanged lines hidden --- | 425 { } /* Terminating Entry */ 426}; 427MODULE_DEVICE_TABLE(pci, dwc3_pci_id_table); 428 429#if defined(CONFIG_PM) || defined(CONFIG_PM_SLEEP) 430static int dwc3_pci_dsm(struct dwc3_pci *dwc, int param) 431{ 432 union acpi_object *obj; --- 85 unchanged lines hidden --- |