linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org
Subject: Re: [PATCH 1/3] Add set_dma_ops() to match get_dma_ops().
Date: Tue, 05 Feb 2008 11:23:04 +1100	[thread overview]
Message-ID: <1202170984.7079.35.camel@pasglop> (raw)
In-Reply-To: <edf2d9650b044e2bc21e9b74ad1044f4e5b6615c.1201257905.git.michael@ellerman.id.au>


On Fri, 2008-01-25 at 21:45 +1100, Michael Ellerman wrote:
> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> ---
>  include/asm-powerpc/dma-mapping.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h
> index 5eea6db..bbefb69 100644
> --- a/include/asm-powerpc/dma-mapping.h
> +++ b/include/asm-powerpc/dma-mapping.h
> @@ -76,6 +76,11 @@ static inline struct dma_mapping_ops *get_dma_ops(struct device *dev)
>  	return dev->archdata.dma_ops;
>  }
>  
> +static inline void set_dma_ops(struct device *dev, struct dma_mapping_ops *ops)
> +{
> +	dev->archdata.dma_ops = ops;
> +}
> +
>  static inline int dma_supported(struct device *dev, u64 mask)
>  {
>  	struct dma_mapping_ops *dma_ops = get_dma_ops(dev);

      parent reply	other threads:[~2008-02-05  0:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-25 10:45 [PATCH 1/3] Add set_dma_ops() to match get_dma_ops() Michael Ellerman
2008-01-25 10:45 ` [PATCH 2/3] Allocate the hash table under 1G on cell Michael Ellerman
2008-02-05  0:23   ` Benjamin Herrenschmidt
2008-01-25 10:45 ` [PATCH 3/3] Cell IOMMU static mapping support Michael Ellerman
2008-01-25 13:12   ` [Cbe-oss-dev] " Geert Uytterhoeven
2008-01-26  2:51   ` Olof Johansson
2008-01-28 11:41     ` [Cbe-oss-dev] " Arnd Bergmann
2008-01-28 16:23       ` Olof Johansson
2008-01-28 21:16         ` Benjamin Herrenschmidt
2008-01-28 21:48           ` Olof Johansson
2008-01-28 21:37             ` Benjamin Herrenschmidt
2008-01-28 21:18         ` Benjamin Herrenschmidt
2008-02-05  0:23 ` 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=1202170984.7079.35.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=cbe-oss-dev@ozlabs.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=michael@ellerman.id.au \
    /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).