• Home
  • Raw
  • Download

Lines Matching +full:dwc +full:- +full:ufshcd +full:- +full:1

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com)
10 #include <ufs/ufshcd.h>
11 #include "ufshcd-dwc.h"
12 #include "tc-dwc-g210.h"
25 MODULE_PARM_DESC(tc_type, "Test Chip Type (20 = 20-bit, 40 = 40-bit)");
28 * struct ufs_hba_dwc_vops - UFS DWC specific variant operations
31 .name = "tc-dwc-g210-pci",
36 * tc_dwc_g210_pci_remove - de-allocate PCI/SCSI host and host memory space
44 pm_runtime_forbid(&pdev->dev); in tc_dwc_g210_pci_remove()
45 pm_runtime_get_noresume(&pdev->dev); in tc_dwc_g210_pci_remove()
50 * tc_dwc_g210_pci_probe - probe routine of the driver
54 * Return: 0 on success, non-zero value on failure.
71 dev_err(&pdev->dev, "test chip version not specified\n"); in tc_dwc_g210_pci_probe()
72 return -EPERM; in tc_dwc_g210_pci_probe()
77 dev_err(&pdev->dev, "pcim_enable_device failed\n"); in tc_dwc_g210_pci_probe()
83 err = pcim_iomap_regions(pdev, 1 << 0, UFSHCD); in tc_dwc_g210_pci_probe()
85 dev_err(&pdev->dev, "request and iomap failed\n"); in tc_dwc_g210_pci_probe()
91 err = ufshcd_alloc_host(&pdev->dev, &hba); in tc_dwc_g210_pci_probe()
93 dev_err(&pdev->dev, "Allocation failed\n"); in tc_dwc_g210_pci_probe()
97 hba->vops = &tc_dwc_g210_pci_hba_vops; in tc_dwc_g210_pci_probe()
99 err = ufshcd_init(hba, mmio_base, pdev->irq); in tc_dwc_g210_pci_probe()
101 dev_err(&pdev->dev, "Initialization failed\n"); in tc_dwc_g210_pci_probe()
105 pm_runtime_put_noidle(&pdev->dev); in tc_dwc_g210_pci_probe()
106 pm_runtime_allow(&pdev->dev); in tc_dwc_g210_pci_probe()
127 .name = "tc-dwc-g210-pci",