public inbox for linux-i3c@lists.infradead.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@nxp.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: alexandre.belloni@bootlin.com, linux-i3c@lists.infradead.org
Subject: Re: [PATCH 03/13] i3c: mipi-i3c-hci-pci: Rename some Intel-related identifiers
Date: Thu, 13 Nov 2025 11:19:00 -0500	[thread overview]
Message-ID: <aRYE9Lkn5PDLXTXr@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <ce8fb9c4-53f0-40ec-a296-d8cabef5dfe7@intel.com>

On Thu, Nov 13, 2025 at 03:01:02PM +0200, Adrian Hunter wrote:
> On 12/11/2025 17:57, Frank Li wrote:
> > On Wed, Nov 12, 2025 at 12:03:29PM +0200, Adrian Hunter wrote:
> >> Rename some Intel-related identifiers to ensure Intel-related identifiers
> >> begin "intel_" or INTEL_, and for brevity.
> >>
> >> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
> >> ---
> >>  .../i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 18 +++++++++---------
> >>  1 file 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 617826628dc4..c74cc511a344 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)
> >
> > These are already begin with INTEL.
>
> For brevity.  They are long and "PRIV" adds nothing.

Generally, needn't this type rename unless you need add more registers
defination later and want to keep consistent.

Frank

>
> >
> >>
> >> -static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci)
> >> +static int intel_init(struct pci_dev *pci)
> >
> > intel_i3c_init() ?
> >
> > Frank
> >
> >>  {
> >>  	unsigned long timeout;
> >>  	void __iomem *priv;
> >> @@ -42,21 +42,21 @@ static int mipi_i3c_hci_pci_intel_init(struct pci_dev *pci)
> >>  		return ret;
> >>
> >>  	/* 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_init,
> >>  };
> >>
> >>  static int mipi_i3c_hci_pci_probe(struct pci_dev *pci,
> >> --
> >> 2.51.0
> >>
> >>
> >> --
> >> linux-i3c mailing list
> >> linux-i3c@lists.infradead.org
> >> http://lists.infradead.org/mailman/listinfo/linux-i3c
>
>
> --
> linux-i3c mailing list
> linux-i3c@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-i3c

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

  reply	other threads:[~2025-11-13 16:19 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12 10:03 [PATCH 00/13] i3c: mipi-i3c-hci-pci: Add LTR support for Intel controllers Adrian Hunter
2025-11-12 10:03 ` [PATCH 01/13] i3c: mipi-i3c-hci-pci: Set 64-bit DMA mask " Adrian Hunter
2025-11-12 15:51   ` Frank Li
2025-11-12 10:03 ` [PATCH 02/13] i3c: mipi-i3c-hci-pci: Move all Intel-related definitions together Adrian Hunter
2025-11-12 15:53   ` Frank Li
2025-11-13 12:58     ` Adrian Hunter
2025-11-12 10:03 ` [PATCH 03/13] i3c: mipi-i3c-hci-pci: Rename some Intel-related identifiers Adrian Hunter
2025-11-12 15:57   ` Frank Li
2025-11-13 13:01     ` Adrian Hunter
2025-11-13 16:19       ` Frank Li [this message]
2025-11-13 16:57         ` Adrian Hunter
2025-11-13 17:17           ` Frank Li
2025-11-12 10:03 ` [PATCH 04/13] i3c: mipi-i3c-hci-pci: Use readl_poll_timeout() Adrian Hunter
2025-11-12 15:59   ` Frank Li
2025-11-14 16:02     ` Alexandre Belloni
2025-11-14 16:43       ` Frank Li
2025-11-14 17:20         ` Alexandre Belloni
2025-11-12 10:03 ` [PATCH 05/13] i3c: mipi-i3c-hci-pci: Constify driver data Adrian Hunter
2025-11-12 16:01   ` Frank Li
2025-11-12 10:03 ` [PATCH 06/13] i3c: mipi-i3c-hci-pci: Factor out private registers ioremapping Adrian Hunter
2025-11-12 16:09   ` Frank Li
2025-11-13 13:02     ` Adrian Hunter
2025-11-12 10:03 ` [PATCH 07/13] i3c: mipi-i3c-hci-pci: Factor out intel_reset() Adrian Hunter
2025-11-12 16:13   ` Frank Li
2025-11-12 10:03 ` [PATCH 08/13] i3c: mipi-i3c-hci-pci: Allocate a structure for mipi_i3c_hci_pci device information Adrian Hunter
2025-11-12 16:41   ` Frank Li
2025-11-12 19:25     ` Adrian Hunter
2025-11-12 20:17       ` Frank Li
2025-11-13 13:15         ` Adrian Hunter
2025-11-13 16:25           ` Frank Li
2025-11-12 10:03 ` [PATCH 09/13] i3c: mipi-i3c-hci-pci: Change callback parameter Adrian Hunter
2025-11-12 10:03 ` [PATCH 10/13] i3c: mipi-i3c-hci-pci: Add exit callback Adrian Hunter
2025-11-12 10:03 ` [PATCH 11/13] i3c: mipi-i3c-hci-pci: Allocate a structure for Intel controller information Adrian Hunter
2025-11-12 10:03 ` [PATCH 12/13] i3c: mipi-i3c-hci-pci: Add LTR support for Intel controllers Adrian Hunter
2025-11-12 10:03 ` [PATCH 13/13] i3c: mipi-i3c-hci-pci: Set d3cold_delay to 0 " Adrian Hunter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aRYE9Lkn5PDLXTXr@lizhi-Precision-Tower-5810 \
    --to=frank.li@nxp.com \
    --cc=adrian.hunter@intel.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-i3c@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox