[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMxfBF6UVBkM_oV=oO0H+2VXxRjwp9ggLLrxQvSyg+VVOzPwTQ@mail.gmail.com>
Date: Tue, 8 Dec 2020 15:03:32 +0100
From: Grzegorz Jaszczyk <grzegorz.jaszczyk@...aro.org>
To: Mathieu Poirier <mathieu.poirier@...aro.org>
Cc: Ohad Ben Cohen <ohad@...ery.com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
"Anna, Suman" <s-anna@...com>, linux-remoteproc@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>,
Lee Jones <lee.jones@...aro.org>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
"Bajjuri, Praneeth" <praneeth@...com>,
Roger Quadros <rogerq@...com>
Subject: Re: [PATCH v3 3/6] remoteproc: pru: Add support for PRU specific
interrupt configuration
Hi Mathieu
On Mon, 7 Dec 2020 at 18:37, Mathieu Poirier <mathieu.poirier@...aro.org> wrote:
[...]
> > +static int pru_handle_intrmap(struct rproc *rproc)
> > +{
> > + struct device *dev = rproc->dev.parent;
> > + struct pru_rproc *pru = rproc->priv;
> > + struct pru_irq_rsc *rsc = pru->pru_interrupt_map;
> > + struct irq_fwspec fwspec;
> > + struct device_node *irq_parent;
> > + int i, ret = 0;
> > +
> > + /* not having pru_interrupt_map is not an error */
> > + if (!rsc)
> > + return 0;
> > +
> > + /* currently supporting only type 0 */
> > + if (rsc->type != 0) {
> > + dev_err(dev, "unsupported rsc type: %d\n", rsc->type);
> > + return -EINVAL;
> > + }
> > +
> > + if (rsc->num_evts > MAX_PRU_SYS_EVENTS)
> > + return -EINVAL;
> > +
> > + if (sizeof(*rsc) + rsc->num_evts * sizeof(struct pruss_int_map) !=
> > + pru->pru_interrupt_map_sz)
> > + return -EINVAL;
> > +
> > + pru->evt_count = rsc->num_evts;
> > + pru->mapped_irq = kcalloc(pru->evt_count, sizeof(int), GFP_KERNEL);
>
> sizeof(unsigned int)
Sure, I will post v4 addressing this comment and sorry for missing that.
Thank you,
Grzegorz
Powered by blists - more mailing lists