From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Gary Thomas <gary@mlbassoc.com>
Cc: Linux PPC Development <linuxppc-dev@ozlabs.org>
Subject: Re: OF device mappings
Date: Sun, 01 Mar 2009 08:05:32 +1100 [thread overview]
Message-ID: <1235855132.7388.112.camel@pasglop> (raw)
In-Reply-To: <49A98DFF.9050503@mlbassoc.com>
On Sat, 2009-02-28 at 12:18 -0700, Gary Thomas wrote:
> Grant Likely wrote:
> > On Sat, Feb 28, 2009 at 11:21 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> >> Grant Likely wrote:
> >>> Once you have a handle to the node, you can iterate through the
> >>> of_platform bus devices and look for a node which has a matching node
> >>> pointer stored in archdata. That will give you a struct device which
> >>> is contained by a struct of_device (note well: this will give you an
> >>> of_device, not a platform_device.)
> >> I have code which does this already, but I could not figure out
> >> how to get from the of_device node to the actual platform_device.
.../...
You may want to look how I do something similar in
drivers/net/ibm_newemac
Not necessarily the nicest approach but works for now, until we have
something better.
Cheers,
Ben.
prev parent reply other threads:[~2009-02-28 21:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 17:46 OF device mappings Gary Thomas
2009-02-28 18:04 ` Grant Likely
2009-02-28 18:21 ` Gary Thomas
2009-02-28 18:44 ` Grant Likely
2009-02-28 19:18 ` Gary Thomas
2009-02-28 20:19 ` Grant Likely
2009-02-28 20:25 ` Gary Thomas
2009-02-28 21:05 ` Benjamin Herrenschmidt [this message]
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=1235855132.7388.112.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=gary@mlbassoc.com \
--cc=linuxppc-dev@ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.