qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Coco Li <lixiaoyan@google.com>
Cc: peter.maydell@linaro.org, clg@kaod.org, qemu-arm@nongnu.org,
	qemu-devel@nongnu.org, flwu@google.com,
	andrew@codeconstruct.com.au, Hao Wu <wuhaotsh@google.com>
Subject: Re: [PATCH v1 3/5] hw/arm/npcm8xx.c: Add all IRQ ENUMs
Date: Mon, 29 Sep 2025 11:46:41 +0200	[thread overview]
Message-ID: <1e08caeb-1cf9-4864-a3d0-6d9b3857f2a3@linaro.org> (raw)
In-Reply-To: <CADjXwji8M6RsmPtf6Duw+8WcesZD3qSZ9_cR-oiX+dzJ_w7Z9g@mail.gmail.com>

On 26/9/25 23:48, Coco Li wrote:
> Hi Phil,
> 
> Thanks for the review!
> It looks like IRQ mapping enums on other boards also generally do not 
> have line breaks, is it ok if I keep it like this for consistency sake?

This is just a suggestion, since you are modifying these lines. I
won't object if you keep the old style, and I don't mind if the
other boards as not changed (also, can be done as future cleanup).

(please avoid top-posting on technical mailing lists).

> 
> Best,
> Coco
> 
> On Wed, Sep 24, 2025 at 6:08 PM Philippe Mathieu-Daudé 
> <philmd@linaro.org <mailto:philmd@linaro.org>> wrote:
> 
>     Hi,
> 
>     On 25/9/25 02:58, Coco Li wrote:
>      > In the process of implementing serial gpio and adding the
>     corresponding
>      > ENUMs, also complete the list for npcm8xx.
>      >
>      > Signed-off-by: Coco Li <lixiaoyan@google.com
>     <mailto:lixiaoyan@google.com>>
>      > Reviewed-by: Hao Wu <wuhaotsh@google.com
>     <mailto:wuhaotsh@google.com>>
>      > ---
>      >   hw/arm/npcm8xx.c | 43 ++++++++++++++++++++++++++++++++++++++++++-
>      >   1 file changed, 42 insertions(+), 1 deletion(-)
>      >
>      > diff --git a/hw/arm/npcm8xx.c b/hw/arm/npcm8xx.c
>      > index a276fea698..10887d07fa 100644
>      > --- a/hw/arm/npcm8xx.c
>      > +++ b/hw/arm/npcm8xx.c
>      > @@ -92,8 +92,14 @@ enum NPCM8xxInterrupt {
>      >       NPCM8XX_GMAC2_IRQ,
>      >       NPCM8XX_GMAC3_IRQ,
>      >       NPCM8XX_GMAC4_IRQ,
>      > -    NPCM8XX_MMC_IRQ             = 26,
>      > +    NPCM8XX_ESPI_IRQ,
>      > +    NPCM8XX_SIOX0_IRQ,
>      > +    NPCM8XX_SIOX1_IRQ,
>      > +    NPCM8XX_MC_IRQ              = 25,
>      > +    NPCM8XX_MMC_IRQ,
>      >       NPCM8XX_PSPI_IRQ            = 28,
>      > +    NPCM8XX_VDMA_IRQ,
>      > +    NPCM8XX_MCTP_IRQ,
>      >       NPCM8XX_TIMER0_IRQ          = 32,   /* Timer Module 0 */
>      >       NPCM8XX_TIMER1_IRQ,
>      >       NPCM8XX_TIMER2_IRQ,
>      > @@ -116,6 +122,14 @@ enum NPCM8xxInterrupt {
>      >       NPCM8XX_OHCI1_IRQ,
>      >       NPCM8XX_EHCI2_IRQ,
>      >       NPCM8XX_OHCI2_IRQ,
>      > +    NPCM8XX_SPI1_IRQ            = 82,
>      > +    NPCM8XX_RNG_IRQ             = 84,
>      > +    NPCM8XX_SPI0_IRQ            = 85,
>      > +    NPCM8XX_SPI3_IRQ            = 87,
>      > +    NPCM8XX_GDMA0_IRQ           = 88,
>      > +    NPCM8XX_GDMA1_IRQ,
>      > +    NPCM8XX_GDMA2_IRQ,
>      > +    NPCM8XX_OTP_IRQ             = 92,
>      >       NPCM8XX_PWM0_IRQ            = 93,   /* PWM module 0 */
>      >       NPCM8XX_PWM1_IRQ,                   /* PWM module 1 */
>      >       NPCM8XX_MFT0_IRQ            = 96,   /* MFT module 0 */
>      > @@ -128,6 +142,11 @@ enum NPCM8xxInterrupt {
>      >       NPCM8XX_MFT7_IRQ,                   /* MFT module 7 */
>      >       NPCM8XX_PCI_MBOX1_IRQ       = 105,
>      >       NPCM8XX_PCI_MBOX2_IRQ,
>      > +    NPCM8XX_GPIO231_IRQ         = 108,
>      > +    NPCM8XX_GPIO233_IRQ,
>      > +    NPCM8XX_GPIO234_IRQ,
>      > +    NPCM8XX_GPIO93_IRQ,
>      > +    NPCM8XX_GPIO94_IRQ,
>      >       NPCM8XX_GPIO0_IRQ           = 116,
>      >       NPCM8XX_GPIO1_IRQ,
>      >       NPCM8XX_GPIO2_IRQ,
>      > @@ -163,6 +182,12 @@ enum NPCM8xxInterrupt {
>      >       NPCM8XX_SMBUS24_IRQ,
>      >       NPCM8XX_SMBUS25_IRQ,
>      >       NPCM8XX_SMBUS26_IRQ,
>      > +    NPCM8XX_FLM0_IRQ            = 160,
>      > +    NPCM8XX_FLM1_IRQ,
>      > +    NPCM8XX_FLM2_IRQ,
>      > +    NPCM8XX_FLM3_IRQ,
> 
>     Minor style comment, maybe worth adding a new line when the
>     following enum is not contiguous.
> 
>     Regards,
> 
>     Phil.


  reply	other threads:[~2025-09-29  9:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25  0:58 [PATCH v1 0/5] Add Aspeed GPIO test and Support Nuvoton Serial GPIO Expansion (SGPIO) device Coco Li
2025-09-25  0:58 ` [PATCH v1 1/5] hw/gpio: Add property for ASPEED GPIO in 32 bits basis Coco Li
2025-10-01 23:24   ` Andrew Jeffery
2025-10-03 17:44     ` Coco Li
2025-10-13  0:28       ` Andrew Jeffery
2025-09-25  0:58 ` [PATCH v1 2/5] tests/qtest: Add qtest for for ASPEED GPIO gpio-set property Coco Li
2025-09-25  0:58 ` [PATCH v1 3/5] hw/arm/npcm8xx.c: Add all IRQ ENUMs Coco Li
2025-09-25  1:08   ` Philippe Mathieu-Daudé
2025-09-26 21:48     ` Coco Li
2025-09-29  9:46       ` Philippe Mathieu-Daudé [this message]
2025-09-25  0:58 ` [PATCH v1 4/5] hw/gpio/npcm8xx: Implement SIOX (SPGIO) device for NPCM without input pin logic Coco Li
2025-09-25  0:58 ` [PATCH v1 5/5] hw/gpio/npcm8xx: Implement npcm sgpio device " Coco Li
2025-09-25  1:10   ` Philippe Mathieu-Daudé
2025-09-26 21:49     ` Coco Li

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=1e08caeb-1cf9-4864-a3d0-6d9b3857f2a3@linaro.org \
    --to=philmd@linaro.org \
    --cc=andrew@codeconstruct.com.au \
    --cc=clg@kaod.org \
    --cc=flwu@google.com \
    --cc=lixiaoyan@google.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=wuhaotsh@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).