All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Dan Williams <dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
	"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	Vinod Koul <vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org"
	<pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	"dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org"
	<treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH V2] dma: tegra: register as an OF DMA controller
Date: Mon, 25 Nov 2013 16:14:51 -0700	[thread overview]
Message-ID: <5293D9EB.9070900@wwwdotorg.org> (raw)
In-Reply-To: <CAPcyv4jLh6cyaP2DmnOkc11xeKsB0QtbXQ9VV3BBmHVVt2iHXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 11/25/2013 04:09 PM, Dan Williams wrote:
> On Mon, Nov 25, 2013 at 2:30 PM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
>> On 11/25/2013 03:09 PM, Arnd Bergmann wrote:
>>> On Monday 25 November 2013 14:53:36 Stephen Warren wrote:
>>>> v2: Use of_dma_slave_xlate() rather than of_dma_simple_xlate(), as
>>>>     suggested by Arnd Bergmann.
>>>>
>>>> This patch is part of a series with strong internal depdendencies. I'm
>>>> looking for an ack so that I can take the entire series through the Tegra
>>>> and arm-soc trees. The series will be part of a stable branch that can be
>>>> merged into other subsystems if needed to avoid/resolve dependencies.
>>>
>>> Did I suggest of_dma_slave_xlate()? I don't think I've actually heard
>>> of that function, and I can't find anything in the kernel source or
>>> using google.
>>>
>>> Why not just use an open-coded xlate function?
>>
>> Well, you suggested not using of_dma_simple_xlate() since it wasn't
>> appropriate. I then started to implement an open-coded xlate function,
>> but found that it was 99% identical to the same thing in the mmp driver,
>> and hence created a common of_dma_slave_xlate() so as not to just
>> cut/paste it everywhere. Unfortunately, I only sent that patch to
>> dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org and the DMA maintainers, and there's no
>> archive of that list:-(
> 
> There is, however, an archive of the patches:
> 
> dma: add common of_dma_slave_xlate()
> https://patchwork.kernel.org/patch/3234751/
> 
> dma: mmp_pdma: use of_dma_slave_xlate()
> https://patchwork.kernel.org/patch/3234761/

Ah, that's useful.

> ..btw I think we should squash those two together.

Isn't it more typical to do core work in one patch, then port each
driver individually? That keeps the patches small and logically
distinct, which could help bisect in some cases. But I guess I can go
either way.

WARNING: multiple messages have this Message-ID (diff)
From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2] dma: tegra: register as an OF DMA controller
Date: Mon, 25 Nov 2013 16:14:51 -0700	[thread overview]
Message-ID: <5293D9EB.9070900@wwwdotorg.org> (raw)
In-Reply-To: <CAPcyv4jLh6cyaP2DmnOkc11xeKsB0QtbXQ9VV3BBmHVVt2iHXA@mail.gmail.com>

On 11/25/2013 04:09 PM, Dan Williams wrote:
> On Mon, Nov 25, 2013 at 2:30 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 11/25/2013 03:09 PM, Arnd Bergmann wrote:
>>> On Monday 25 November 2013 14:53:36 Stephen Warren wrote:
>>>> v2: Use of_dma_slave_xlate() rather than of_dma_simple_xlate(), as
>>>>     suggested by Arnd Bergmann.
>>>>
>>>> This patch is part of a series with strong internal depdendencies. I'm
>>>> looking for an ack so that I can take the entire series through the Tegra
>>>> and arm-soc trees. The series will be part of a stable branch that can be
>>>> merged into other subsystems if needed to avoid/resolve dependencies.
>>>
>>> Did I suggest of_dma_slave_xlate()? I don't think I've actually heard
>>> of that function, and I can't find anything in the kernel source or
>>> using google.
>>>
>>> Why not just use an open-coded xlate function?
>>
>> Well, you suggested not using of_dma_simple_xlate() since it wasn't
>> appropriate. I then started to implement an open-coded xlate function,
>> but found that it was 99% identical to the same thing in the mmp driver,
>> and hence created a common of_dma_slave_xlate() so as not to just
>> cut/paste it everywhere. Unfortunately, I only sent that patch to
>> dmaengine at vger.kernel.org and the DMA maintainers, and there's no
>> archive of that list:-(
> 
> There is, however, an archive of the patches:
> 
> dma: add common of_dma_slave_xlate()
> https://patchwork.kernel.org/patch/3234751/
> 
> dma: mmp_pdma: use of_dma_slave_xlate()
> https://patchwork.kernel.org/patch/3234761/

Ah, that's useful.

> ..btw I think we should squash those two together.

Isn't it more typical to do core work in one patch, then port each
driver individually? That keeps the patches small and logically
distinct, which could help bisect in some cases. But I guess I can go
either way.

  parent reply	other threads:[~2013-11-25 23:14 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 21:53 [PATCH V2] dma: tegra: register as an OF DMA controller Stephen Warren
2013-11-25 21:53 ` Stephen Warren
     [not found] ` <1385416416-3536-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-25 22:09   ` Arnd Bergmann
2013-11-25 22:09     ` Arnd Bergmann
2013-11-25 22:30     ` Stephen Warren
2013-11-25 22:30       ` Stephen Warren
     [not found]       ` <5293CF9F.6040305-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-25 23:09         ` Dan Williams
2013-11-25 23:09           ` Dan Williams
     [not found]           ` <CAPcyv4jLh6cyaP2DmnOkc11xeKsB0QtbXQ9VV3BBmHVVt2iHXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-25 23:14             ` Stephen Warren [this message]
2013-11-25 23:14               ` Stephen Warren
     [not found]               ` <5293D9EB.9070900-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-26  1:13                 ` Dan Williams
2013-11-26  1:13                   ` Dan Williams
2013-11-29 21:08         ` Arnd Bergmann
2013-11-29 21:08           ` Arnd Bergmann
     [not found]           ` <201311292208.26215.arnd-r2nGTMty4D4@public.gmane.org>
2013-12-03 17:52             ` Stephen Warren
2013-12-03 17:52               ` Stephen Warren
2013-12-04  1:22               ` Arnd Bergmann
2013-12-04  1:22                 ` Arnd Bergmann
     [not found]                 ` <201312040222.03604.arnd-r2nGTMty4D4@public.gmane.org>
2013-12-04 17:09                   ` Stephen Warren
2013-12-04 17:09                     ` Stephen Warren
     [not found]                     ` <529F61D3.3030104-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-12-04 17:18                       ` Lars-Peter Clausen
2013-12-04 17:18                         ` Lars-Peter Clausen
2013-12-06 21:16                   ` Dan Williams
2013-12-06 21:16                     ` Dan Williams
2013-12-06 22:19                     ` Arnd Bergmann
2013-12-06 22:19                       ` Arnd Bergmann
2013-11-29 14:17   ` Thierry Reding
2013-11-29 14:17     ` Thierry Reding
     [not found]     ` <20131129141725.GA22771-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2013-12-03 17:59       ` Stephen Warren
2013-12-03 17:59         ` Stephen Warren
     [not found]         ` <529E1C1A.5000709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-12-04  8:29           ` Thierry Reding
2013-12-04  8:29             ` Thierry Reding

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=5293D9EB.9070900@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=vinod.koul-ral2JQCrhuEAvxtiuMwx3w@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.