RE: [PATCH v3 12/13] irqchip/renesas-rzv2h: Add RZ/G3E support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

Thanks for the feedback.

> -----Original Message-----
> From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Sent: 28 January 2025 16:30
> Subject: Re: [PATCH v3 12/13] irqchip/renesas-rzv2h: Add RZ/G3E support
> 
> Hi Biju,
> 
> On Tue, 28 Jan 2025 at 11:48, Biju Das <biju.das.jz@xxxxxxxxxxxxxx> wrote:
> > The ICU block on the RZ/G3E SoC is almost identical to the one found
> > on the RZ/V2H SoC, with the following differences:
> >  - The TINT register offset starts at 0x830 instead of 0x30.
> 
> 0x800

OK.

> 
> >  - The number of GPIO interrupts for TINT selection is 141 instead of 86.
> >  - The pin index and TINT selection index are not in the 1:1 map
> >  - The number of TSSR registers is 15 instead of 8
> 
> 16

Agreed.

> 
> >  - Each TSSR register can program 2 TINTs instead of 4 TINTs
> >
> > Add support for the RZ/G3E driver by filling the rzv2h_hw_info table
> > and adding LUT for mapping between pin index and TINT selection index.
> >
> > Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@xxxxxxxxxxx>
> > Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@xxxxxxxxxxxxxx>
> > Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> 
> Thanks for your patch!
> 
> > --- a/drivers/irqchip/irq-renesas-rzv2h.c
> > +++ b/drivers/irqchip/irq-renesas-rzv2h.c
> 
> > @@ -84,6 +87,7 @@
> >   * @tssr_k:            TSSR index k
> >   */
> >  struct rzv2h_hw_info {
> > +       const u8        *tssel_lut;
> >         u16             t_offs;
> >         u16             tien;
> >         u16             tssel_mask;
> > @@ -307,6 +311,9 @@ static int rzv2h_tint_set_type(struct irq_data *d, unsigned int type)
> >         if (tint > priv->info->max_tssel)
> >                 return -EINVAL;
> >
> > +       if (priv->info->tssel_lut)
> > +               tint = priv->info->tssel_lut[tint & 0xff];
> 
> No need to mask with 0xff, because of the check above.

OK will fix this in next version.

Cheers,
Biju





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux