From: Hiroshi Doyu <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: "arnd-r2nGTMty4D4@public.gmane.org"
<arnd-r2nGTMty4D4@public.gmane.org>,
"devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
"thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org"
<thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>,
"linaro-mm-sig-cunTk1MwBs8s++Sfvej+rw@public.gmane.org"
<linaro-mm-sig-cunTk1MwBs8s++Sfvej+rw@public.gmane.org>,
"iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH 1/1] dt: Add general DMA window parser
Date: Thu, 19 Apr 2012 15:19:20 +0300 [thread overview]
Message-ID: <20120419151920.68ab735a5b9eb8fb938b4d11@nvidia.com> (raw)
In-Reply-To: <4F8EF99E.3050709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
On Wed, 18 Apr 2012 19:27:58 +0200
Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
> On 04/18/2012 04:19 AM, Hiroshi Doyu wrote:
>
> > Subject: [PATCH 1/1] dt: Add general DMA window parser
> >
> > This code was stolen from:
> > "arch/microblaze/kernel/prom_parse.c"
> > "arch/powerpc/kernel/prom_parse.c"
> >
> > Once "ibm," prefix is removed from dts file. This generic one could
> > replace the originals.
It seems that the "ibm," prefix is not used in .dts files, but it
comes from the PAPR compliant firmware and cannot be changed.
The easiest solution would be to make the function understand both
variants.
> > +extern void of_parse_dma_window(struct device_node *dn,
> > + const void *dma_window_prop, unsigned long *busno,
> > + unsigned long *phys, unsigned long *size);
>
> At least some other of_*() parsing functions take the property name
> rather than the property pointer, and also take an index into the
> property in order to support multiple entries in it. See for example
> of_parse_phandle and of_get_named_gpio_flags. Should this new API be
> similar? E.g.:
>
> extern void of_parse_dma_window(struct device_node *np,
> const char *propname, int index,
> unsigned long *busno,
> unsigned long *phys, unsigned long *size);
At least, I can add the code checking the return value of this
function, which won't change the existing code.
Does anyone know the format of "ibm,dma-window"?
next prev parent reply other threads:[~2012-04-19 12:19 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 10:22 [PATCH 1/1] arm/dts: Tegra30: Add device tree support for SMMU Hiroshi Doyu
[not found] ` <20120413.132205.1766846402066131036.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-13 11:03 ` Thierry Reding
[not found] ` <20120413110331.GA11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-13 11:31 ` Hiroshi Doyu
[not found] ` <20120413.143104.1310879848248152784.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-13 12:15 ` Thierry Reding
[not found] ` <20120413121510.GD11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-13 19:25 ` Stephen Warren
[not found] ` <4F887DA0.8030103-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-16 11:12 ` Hiroshi Doyu
[not found] ` <20120416.141238.381304581863200083.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-16 15:34 ` Arnd Bergmann
[not found] ` <201204161534.20089.arnd-r2nGTMty4D4@public.gmane.org>
2012-04-18 5:17 ` Hiroshi Doyu
[not found] ` <20120418081746.995724e27bdc726049cd4965-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 5:41 ` Thierry Reding
[not found] ` <20120418054140.GA17506-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2012-04-18 6:44 ` Hiroshi Doyu
[not found] ` <20120418.094448.2234414220947028341.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 7:31 ` Arnd Bergmann
[not found] ` <201204180731.54064.arnd-r2nGTMty4D4@public.gmane.org>
2012-04-18 9:18 ` Hiroshi Doyu
[not found] ` <20120418.121824.1894043789811063795.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 9:26 ` Thierry Reding
[not found] ` <20120418092613.GA8632-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-18 10:19 ` [PATCH 1/1] dt: Add general DMA window parser Hiroshi Doyu
[not found] ` <20120418.131907.2172387798112620167.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 10:26 ` Thierry Reding
[not found] ` <20120418102629.GA14533-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-18 10:36 ` Hiroshi Doyu
[not found] ` <20120418.133629.1664781135413277375.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 10:54 ` Thierry Reding
[not found] ` <20120418105423.GA5667-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-18 11:13 ` Hiroshi Doyu
2012-04-18 17:27 ` Stephen Warren
[not found] ` <4F8EF99E.3050709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-18 19:39 ` Thierry Reding
[not found] ` <20120418193945.GA17960-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-19 12:32 ` Hiroshi Doyu
2012-04-19 12:19 ` Hiroshi Doyu [this message]
[not found] ` <20120419151920.68ab735a5b9eb8fb938b4d11-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-23 11:53 ` [PATCH v2 " Hiroshi Doyu
[not found] ` <20120423.145352.1868450546332033138.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-23 18:16 ` Stephen Warren
2012-04-13 19:33 ` [PATCH 1/1] arm/dts: Tegra30: Add device tree support for SMMU Stephen Warren
[not found] ` <4F887F9B.700-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-16 10:10 ` Hiroshi Doyu
[not found] ` <20120416.131059.331282986467061278.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-16 16:07 ` Stephen Warren
[not found] ` <4F8C43AA.7090107-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-18 5:10 ` Hiroshi Doyu
[not found] ` <20120418081017.d3c630c6f7d09cd4ed039854-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-18 17:31 ` Stephen Warren
-- strict thread matches above, loose matches on Subject: below --
2012-04-24 12:20 [PATCH v3 1/1] dt: Add general DMA window parser Hiroshi DOYU
[not found] ` <1335270004-15652-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-30 12:44 ` [PATCH " Hiroshi Doyu
2012-05-11 5:07 Hiroshi DOYU
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=20120419151920.68ab735a5b9eb8fb938b4d11@nvidia.com \
--to=hdoyu-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linaro-mm-sig-cunTk1MwBs8s++Sfvej+rw@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
--cc=thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@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;
as well as URLs for NNTP newsgroup(s).