From: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Kristoffer Glembo <kristoffer-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: [PATCH 7/7] OF: set dma_mask for ARM
Date: Wed, 20 Apr 2011 07:06:52 -0500 [thread overview]
Message-ID: <4DAECC5C.6040203@gmail.com> (raw)
In-Reply-To: <4DAE9540.8040006-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org>
On 04/20/2011 03:11 AM, Kristoffer Glembo wrote:
> Hi,
>
> Have you gotten any feedback on this? I am facing the same decision
> on SPARC32. I need to add dma_mask to get USB working on non-PCI
> buses and I'm currently thinking about doing it either the PowerPC
> way or going with the dma_mask =&coherent_dma_mask route. It would be
> nice if we could get some community agreement on which is the proper
> way of doing this.
>
No, only Grant's original comment. I did switch to using a bus notifier
callback to set the dma_mask pointer so I don't need to modify the DT or
arch code.
Rob
> Best regards, Kristoffer Glembo
>
>
> On 11/16/2010 11:24 PM, Grant Likely wrote:
>>> On Tue, Nov 16, 2010 at 02:33:55PM -0600, Rob Herring wrote:
>>>> From: Rob Herring<rob.herring at calxeda.com>
>>>>
>>>> Various drivers require dma_mask to be valid, so it needs to be
>>>> setup when doing OF probing on ARM.
>>>>
>>>> Signed-off-by: Rob Herring<rob.herring at calxeda.com>
>>>
>>> I'll let patches 6& 7 lay fallow for the moment. I'm not
>>> hugely fond of the powerpc approach (which microblaze copies),
>>> but I haven't had a chance to look for a better solution.
>>>
>>
>> Looking at this some more, there's a couple of options I see.
>>
>> Other buses (ISA, PCI, EISA) have a dma_mask in their struct. So
>> perhaps platform_device should just have a dma_mask field.
>>
>> There are several examples of setting dma_mask =&coherent_dma_mask.
>> I'm not sure if this is considered correct. At least on ARM, I
>> don't think these would need to be different.
>>
>> Another option would be using bus notifiers to set the dma_mask
>> like platform_data. But that doesn't seem like a good long term
>> solution.
>>
>> Rob
next prev parent reply other threads:[~2011-04-20 12:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 8:11 [PATCH 7/7] OF: set dma_mask for ARM Kristoffer Glembo
[not found] ` <4DAE9540.8040006-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org>
2011-04-20 12:06 ` Rob Herring [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-11-16 20:33 [PATCH 0/7] Various OF fixes for little-endian and ARM Rob Herring
[not found] ` <1289939635-30742-1-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-16 20:33 ` [PATCH 7/7] OF: set dma_mask for ARM Rob Herring
[not found] ` <1289939635-30742-8-git-send-email-robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-11-17 5:24 ` Grant Likely
[not found] ` <20101117052448.GC12813-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-08 3:24 ` Rob Herring
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=4DAECC5C.6040203@gmail.com \
--to=robherring2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=kristoffer-FkzTOoA/JUlBDgjK7y7TUQ@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 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.