Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Adrian Hunter and committed by
Alexandre Belloni
58a9ae63 f4fe6e70

+9 -9
+9 -9
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
··· 21 21 22 22 #define INTEL_PRIV_OFFSET 0x2b0 23 23 #define INTEL_PRIV_SIZE 0x28 24 - #define INTEL_PRIV_RESETS 0x04 25 - #define INTEL_PRIV_RESETS_RESET BIT(0) 26 - #define INTEL_PRIV_RESETS_RESET_DONE BIT(1) 24 + #define INTEL_RESETS 0x04 25 + #define INTEL_RESETS_RESET BIT(0) 26 + #define INTEL_RESETS_RESET_DONE BIT(1) 27 27 28 - static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci) 28 + static int intel_i3c_init(struct pci_dev *pci) 29 29 { 30 30 unsigned long timeout; 31 31 void __iomem *priv; ··· 39 39 dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(64)); 40 40 41 41 /* Assert reset, wait for completion and release reset */ 42 - writel(0, priv + INTEL_PRIV_RESETS); 42 + writel(0, priv + INTEL_RESETS); 43 43 timeout = jiffies + msecs_to_jiffies(10); 44 - while (!(readl(priv + INTEL_PRIV_RESETS) & 45 - INTEL_PRIV_RESETS_RESET_DONE)) { 44 + while (!(readl(priv + INTEL_RESETS) & 45 + INTEL_RESETS_RESET_DONE)) { 46 46 if (time_after(jiffies, timeout)) 47 47 break; 48 48 cpu_relax(); 49 49 } 50 - writel(INTEL_PRIV_RESETS_RESET, priv + INTEL_PRIV_RESETS); 50 + writel(INTEL_RESETS_RESET, priv + INTEL_RESETS); 51 51 52 52 return 0; 53 53 } 54 54 55 55 static struct mipi_i3c_hci_pci_info intel_info = { 56 - .init = mipi_i3c_hci_pci_intel_init, 56 + .init = intel_i3c_init, 57 57 }; 58 58 59 59 static int mipi_i3c_hci_pci_probe(struct pci_dev *pci,