Re: [PATCH 2/2] cxl/mbox: Wire up basic irq support

From: Jonathan Cameron
Date: Mon Oct 17 2022 - 06:09:10 EST


On Sun, 16 Oct 2022 15:06:23 -0700
Ira Weiny <ira.weiny@xxxxxxxxx> wrote:

> On Fri, Oct 14, 2022 at 12:49:30PM -0700, Davidlohr Bueso wrote:
> > This adds support for mailbox interrupts, which are needed, for
> > example, for background completion handling.
> >
> > Signed-off-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>
> > ---
...

> > + IRQF_SHARED, "mailbox", cxlds))
> > + dev_dbg(dev, "Mailbox irq (%d) supported", irq);
> > + }
> > +
> > return 0;
> > }
> >
> > @@ -441,7 +464,9 @@ struct cxl_irq_cap {
> > int (*get_max_msgnum)(struct cxl_dev_state *cxlds);
> > };
> >
> > -static const struct cxl_irq_cap cxl_irq_cap_table[] = { NULL };
> > +static const struct cxl_irq_cap cxl_irq_cap_table[] = {

Trivial patch mangling point but better to have the NULL on separate line
in previous patch to reduce the diff here.

> > + { "mailbox", cxl_pci_mbox_get_max_msgnum }

trailing comma needed as we definitely expect to add more entries!

> > +};
> >
> > static void cxl_pci_free_irq_vectors(void *data)
> > {
> > --
> > 2.37.3
> >