From: tglx@linutronix.de (Thomas Gleixner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v9 1/1] PRUSS UIO driver support
Date: Tue, 8 Mar 2011 16:01:00 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1103081600450.2787@localhost6.localdomain6> (raw)
In-Reply-To: <201103081424.01476.arnd@arndb.de>
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
next prev parent reply other threads:[~2011-03-08 15:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 18:07 [PATCH v9 0/1] Add PRUSS UIO driver support Pratheesh Gangadhar
2011-03-03 18:07 ` [PATCH v9 1/1] " Pratheesh Gangadhar
2011-03-03 18:15 ` Arnd Bergmann
2011-03-04 3:25 ` TK, Pratheesh Gangadhar
2011-03-08 10:34 ` Thomas Gleixner
2011-03-08 13:24 ` Arnd Bergmann
2011-03-08 15:01 ` Thomas Gleixner [this message]
2011-03-04 4:40 ` TK, Pratheesh Gangadhar
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=alpine.LFD.2.00.1103081600450.2787@localhost6.localdomain6 \
--to=tglx@linutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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