[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1103081600450.2787@localhost6.localdomain6>
Date: Tue, 8 Mar 2011 16:01:00 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Arnd Bergmann <arnd@...db.de>
cc: "TK, Pratheesh Gangadhar" <pratheesh@...com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"hjk@...sjkoch.de" <hjk@...sjkoch.de>,
"gregkh@...e.de" <gregkh@...e.de>,
"sshtylyov@...sta.com" <sshtylyov@...sta.com>,
"Chatterjee, Amit" <amit.chatterjee@...com>,
"davinci-linux-open-source@...ux.davincidsp.com"
<davinci-linux-open-source@...ux.davincidsp.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v9 1/1] PRUSS UIO driver support
On Tue, 8 Mar 2011, Arnd Bergmann wrote:
> On Tuesday 08 March 2011, Thomas Gleixner wrote:
> > >
> > > +static irqreturn_t pruss_handler(int irq, struct uio_info *info) {
> > > + struct pruss_priv *priv = info->priv;
> > > + struct uio_pruss_dev *gdev = priv->pupdev;
> > >
> > > Note that info is a pointer to array supporting 8 interrupts. This allows to
> > > redirect to driver structure via info->priv quickly.
> >
> > struct uio_pruss_dev *dev = container_of(info, struct uio_pruss_dev, info);
> >
> > Perhaps ?
>
> That would require having the same number of uio_info structs as uio_pruss_dev
> instances. Right now, one platform device has one uio_pruss_dev instance, which
> has 8 uio_info instances, so the container_of() trick doesn't work.
Duh. Yes :)
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists