From: Stephen Neuendorffer <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: RE: [PATCH 4/8] of/base.c: export property access/modification functions
Date: Fri, 16 Jul 2010 15:03:18 -0700 [thread overview]
Message-ID: <e0211df5-5645-4bdd-8ff7-30deeff92377@SG2EHSMHS007.ehs.local> (raw)
In-Reply-To: <AANLkTinlTNa0TEnqk27Jv2Yy8sZ1Vx3V89YJvcs-jULM-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> -----Original Message-----
> From: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org [mailto:glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org] On Behalf Of Grant Likely
> Sent: Friday, July 16, 2010 2:44 PM
> To: Stephen Neuendorffer
> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> Subject: Re: [PATCH 4/8] of/base.c: export property access/modification functions
>
> On Fri, Jul 16, 2010 at 2:07 PM, Stephen Neuendorffer
> <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> >
> >
> >> -----Original Message-----
> >> From: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org [mailto:glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org] On Behalf Of Grant Likely
> >> Sent: Friday, July 16, 2010 11:57 AM
> >> To: Stephen Neuendorffer
> >> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> >> Subject: Re: [PATCH 4/8] of/base.c: export property access/modification functions
> >>
> >> On Fri, Jul 16, 2010 at 12:38 PM, Stephen Neuendorffer
> >> <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org [mailto:glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org] On Behalf Of
> >> > Grant Likely
> >> >> Sent: Friday, July 16, 2010 11:34 AM
> >> >> To: Stephen Neuendorffer
> >> >> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> >> >> Subject: Re: [PATCH 4/8] of/base.c: export property
> >> > access/modification functions
> >> >>
> >> >> On Fri, Jul 16, 2010 at 12:13 PM, Stephen Neuendorffer
> >> >> <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> >> >> > These functions can be usefully used by device drivers.
> >> >>
> >> >> I'd like a little more description of the intended use case. What are
> >> >> the circumstances where a driver needs to modify the data (this
> >> >> information should be part of the patch description)?
> >> >
> >> > The PCIPR driver code needs to stuff the ranges property using these
> >> > calls...
> >>
> >> I'd rather change the translation code to give you an intermediary
> >> value (an offset from a bar), and then use non-OF code to translate
> >> that into a physical address.
> >
> > I don't see how that will work, since there is no callback from the device-tree
> > code behind platform_get_resource/of_address_to_resource back into the pcipr driver to
> > do the last translation bit. I considered having a new 'bus_type' registered in the
> > address translation code that would take care of it, but it seemed to still require
> > the information from somewhere and it wasn't clear where to get it.
>
> You get the information from the PCI device instance. We can change
> the bus_type infrastructure to allow instance specific data if need
> be.
>
> Alternately, the translation could be done at device registration
> time. With the changes being made to the of code, of_devices are
> going away, and being replaced with normal platform_devices which have
> a resource structure. We could do the translation at device
> registration time so that drivers only need to look at the resource
> structure. This will require some changes to the current
> of_platform_drivers, but in the long run I think it is the right thing
> to do.
OK, perhaps I'm being a little dense, but I don't see how to proceed here.
Can you make this more concrete?
Steve
This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
next prev parent reply other threads:[~2010-07-16 22:03 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1279304021-22216-1-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-1-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 1/8] of/fdt.c: use architecture-independent ALIGN macro, defined in kernel.h Stephen Neuendorffer
[not found] ` <f2cebad3-5fb1-4984-800f-ef847e388e65-RaUQJvECHitZbvUCbuG1mrjjLBE8jN/0@public.gmane.org>
2010-07-16 18:29 ` Grant Likely
[not found] ` <AANLkTin8GUuMjAVI-r2KNXBoH7DjsQWfTjC1inQTlD6V-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 18:45 ` Stephen Neuendorffer
2010-07-19 18:34 ` Stephen Neuendorffer
[not found] ` <1279304021-22216-2-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-2-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 2/8] drivers/of: Make device tree code work on any arch Stephen Neuendorffer
[not found] ` <592c6c35-556d-4874-8b75-2ebf0acf00e9-+Ck8Kgl/v0+Da4789yZHSLjjLBE8jN/0@public.gmane.org>
2010-07-16 18:31 ` Grant Likely
[not found] ` <AANLkTimW3tsllx82F-cKtAEHGxVXwG4ESbtYWBzS17Wb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 18:34 ` Stephen Neuendorffer
[not found] ` <686f0008-74c9-4ee5-bfb3-b4920835b765-RaUQJvECHitEus+KprP3J7jjLBE8jN/0@public.gmane.org>
2010-07-16 18:55 ` Grant Likely
[not found] ` <1279304021-22216-3-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-3-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 3/8] of/fdt: Add unflatten_partial_device_tree Stephen Neuendorffer
[not found] ` <91a7e060-e748-47d5-aa7d-4fc45343d212-RaUQJvECHitEus+KprP3J7jjLBE8jN/0@public.gmane.org>
2010-07-16 19:25 ` Grant Likely
[not found] ` <AANLkTikbhjZshaetoTX6kXHwt_SobYUG69cuDZd0gArF-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-23 22:10 ` Stephen Neuendorffer
[not found] ` <58c8fb4d-50d9-45bb-9a09-9cd04033a912-RaUQJvECHiusiP+nND6G/7jjLBE8jN/0@public.gmane.org>
2010-08-10 17:53 ` Grant Likely
[not found] ` <AANLkTimE=YjDsr5em8ttAJkRzjZ6XMF_Hts0w0EpPzqx-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-17 0:44 ` Stephen Neuendorffer
[not found] ` <db162abd-e702-4d34-ac3a-ee6ce512f98d-+Ck8Kgl/v0/TR3wEnDZ30LjjLBE8jN/0@public.gmane.org>
2010-11-17 1:48 ` Grant Likely
[not found] ` <1279304021-22216-4-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-4-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 4/8] of/base.c: export property access/modification functions Stephen Neuendorffer
[not found] ` <01cb5edd-5330-40ba-b410-6732e44f0954-+Ck8Kgl/v0+Da4789yZHSLjjLBE8jN/0@public.gmane.org>
2010-07-16 18:33 ` Grant Likely
[not found] ` <AANLkTikwtfpH5qyG5cbsLYPHLSaAmBcHaSJT3zbt4s35-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 18:38 ` Stephen Neuendorffer
[not found] ` <e198df81-5939-4b82-9d27-952d9781ec05-+Ck8Kgl/v09CYczPSvLbDrjjLBE8jN/0@public.gmane.org>
2010-07-16 18:57 ` Grant Likely
[not found] ` <AANLkTilXmgTkJ2N0dTYsV99ElqssZAXwOgtKPBENZoX8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 20:07 ` Stephen Neuendorffer
[not found] ` <41b1b87c-a391-493d-8235-a9304562a6e4-RaUQJvECHis6W+Ha+8ZLibjjLBE8jN/0@public.gmane.org>
2010-07-16 21:43 ` Grant Likely
[not found] ` <AANLkTinlTNa0TEnqk27Jv2Yy8sZ1Vx3V89YJvcs-jULM-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 22:03 ` Stephen Neuendorffer [this message]
[not found] ` <1279304021-22216-5-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-5-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 5/8] arch/x86: Add support for device tree code Stephen Neuendorffer
[not found] ` <961e55b7-170c-45ac-a491-628797a0aa5e-+Ck8Kgl/v0/5op9OF0Koj7jjLBE8jN/0@public.gmane.org>
2010-07-16 18:39 ` Grant Likely
[not found] ` <AANLkTinPIY4N9Gv_J7Ief7Scd57c0KEY6WtHsvQTBrzb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 18:42 ` Stephen Neuendorffer
[not found] ` <a33ca228-cb2c-4044-bf63-c653642415a0-RaUQJvECHitEus+KprP3J7jjLBE8jN/0@public.gmane.org>
2010-07-16 18:59 ` Grant Likely
[not found] ` <AANLkTinVIf2A_OVAXlqjHY5J3jvaraPlJySnyEKbhlqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 20:11 ` Stephen Neuendorffer
[not found] ` <a52173ec-5c74-47ce-9121-f2e90958b05d-RaUQJvECHiuJ1bAq5m18RLjjLBE8jN/0@public.gmane.org>
2010-07-16 20:28 ` Grant Likely
[not found] ` <1279304021-22216-6-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-6-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 6/8] [Xilinx] xilinx_pcipr: Added Xilinx reconfigurable PCI endpoint driver Stephen Neuendorffer
[not found] ` <19f2f30b-1b43-4729-a079-da1df0b04609-RaUQJvECHitZbvUCbuG1mrjjLBE8jN/0@public.gmane.org>
2010-07-16 18:43 ` Grant Likely
[not found] ` <1279304021-22216-7-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-7-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 7/8] [Xilinx] xilinx_hwicap: Update driver to use generic io accessors Stephen Neuendorffer
[not found] ` <1279304021-22216-8-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1279304021-22216-8-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-07-16 18:13 ` [PATCH 8/8] [Xilinx] xilinx_hwicap: Enable whenever OF/device trees are available Stephen Neuendorffer
[not found] ` <a10f704f-cc4b-4ca2-bd06-a9c4fa2853d4-+Ck8Kgl/v086W+Ha+8ZLibjjLBE8jN/0@public.gmane.org>
2010-07-16 18:45 ` Grant Likely
[not found] ` <AANLkTilMVutoM9wH-67nqR2r3Lv-hq_aEKntjLk7_dgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-16 18:46 ` Stephen Neuendorffer
2010-07-16 18:47 ` Grant Likely
2010-07-22 16:05 ` Grant Likely
[not found] ` <AANLkTimm9hxxaj5ir2SynudRu1o4LKXnHy1AnJ1C_ii7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-22 18:25 ` Stephen Neuendorffer
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=e0211df5-5645-4bdd-8ff7-30deeff92377@SG2EHSMHS007.ehs.local \
--to=stephen.neuendorffer-gjffaj9ahvfqt0dzr+alfa@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.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