Skip to content

Commit 58a9ae6

Browse files
ahunter6alexandrebelloni
authored andcommitted
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>
1 parent f4fe6e7 commit 58a9ae6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ static DEFINE_IDA(mipi_i3c_hci_pci_ida);
2121

2222
#define INTEL_PRIV_OFFSET 0x2b0
2323
#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)
2727

28-
static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci)
28+
static int intel_i3c_init(struct pci_dev *pci)
2929
{
3030
unsigned long timeout;
3131
void __iomem *priv;
@@ -39,21 +39,21 @@ static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci)
3939
dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(64));
4040

4141
/* Assert reset, wait for completion and release reset */
42-
writel(0, priv + INTEL_PRIV_RESETS);
42+
writel(0, priv + INTEL_RESETS);
4343
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)) {
4646
if (time_after(jiffies, timeout))
4747
break;
4848
cpu_relax();
4949
}
50-
writel(INTEL_PRIV_RESETS_RESET, priv + INTEL_PRIV_RESETS);
50+
writel(INTEL_RESETS_RESET, priv + INTEL_RESETS);
5151

5252
return 0;
5353
}
5454

5555
static struct mipi_i3c_hci_pci_info intel_info = {
56-
.init = mipi_i3c_hci_pci_intel_init,
56+
.init = intel_i3c_init,
5757
};
5858

5959
static int mipi_i3c_hci_pci_probe(struct pci_dev *pci,

0 commit comments

Comments
 (0)