diff options
| author | Adrian Hunter <adrian.hunter@intel.com> | 2025-11-28 08:40:29 +0200 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2025-11-29 00:06:39 +0100 |
| commit | 58a9ae637112a66d385cf93e7125a2cb7ea8f143 (patch) | |
| tree | a45fbf8ff3ac3fed3f5a22add962c8bc4ab66223 | |
| parent | f4fe6e7084952b919d3401745850a229cba0c8cf (diff) | |
i3c: mipi-i3c-hci-pci: Rename some Intel-related identifiers
Rename some Intel-related identifiers to ensure Intel-related identifiers
begin "intel_" or INTEL_, and for brevity removing purposeless "PRIV" in
preparation to add more register definitions.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251128064038.55158-4-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
| -rw-r--r-- | drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c index 3d854cee05df..d434e2962740 100644 --- a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c +++ b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c @@ -21,11 +21,11 @@ static DEFINE_IDA(mipi_i3c_hci_pci_ida); #define INTEL_PRIV_OFFSET 0x2b0 #define INTEL_PRIV_SIZE 0x28 -#define INTEL_PRIV_RESETS 0x04 -#define INTEL_PRIV_RESETS_RESET BIT(0) -#define INTEL_PRIV_RESETS_RESET_DONE BIT(1) +#define INTEL_RESETS 0x04 +#define INTEL_RESETS_RESET BIT(0) +#define INTEL_RESETS_RESET_DONE BIT(1) -static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci) +static int intel_i3c_init(struct pci_dev *pci) { unsigned long timeout; void __iomem *priv; @@ -39,21 +39,21 @@ static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci) dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(64)); /* Assert reset, wait for completion and release reset */ - writel(0, priv + INTEL_PRIV_RESETS); + writel(0, priv + INTEL_RESETS); timeout = jiffies + msecs_to_jiffies(10); - while (!(readl(priv + INTEL_PRIV_RESETS) & - INTEL_PRIV_RESETS_RESET_DONE)) { + while (!(readl(priv + INTEL_RESETS) & + INTEL_RESETS_RESET_DONE)) { if (time_after(jiffies, timeout)) break; cpu_relax(); } - writel(INTEL_PRIV_RESETS_RESET, priv + INTEL_PRIV_RESETS); + writel(INTEL_RESETS_RESET, priv + INTEL_RESETS); return 0; } static struct mipi_i3c_hci_pci_info intel_info = { - .init = mipi_i3c_hci_pci_intel_init, + .init = intel_i3c_init, }; static int mipi_i3c_hci_pci_probe(struct pci_dev *pci, |
