From: mike@compulab.co.il (Mike Rapoport)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] [ARM] Remove now unnecessary dma_needs_bounce()
Date: Tue, 22 Jun 2010 10:38:01 +0300 [thread overview]
Message-ID: <4C206859.6090604@compulab.co.il> (raw)
In-Reply-To: <AANLkTimugHXfVUcEmq_DwaSLwelvnS9QoDJcxJaphahJ@mail.gmail.com>
Eric,
Eric Miao wrote:
> 2010/6/21 Mike Rapoport <mike@compulab.co.il>:
>> Eric
>>
>> Eric Miao wrote:
>>> On Sat, Jun 5, 2010 at 3:55 PM, Eric Miao <eric.y.miao@gmail.com> wrote:
>>>> With a correct dev->dma_mask before calling dmabounce_register_dev(),
>>>> dma_needs_bounce() is not necessary.
>>>>
>>>> The above is true for it8152.c and ixp4xx/common-pci.c.
>>>>
>>>> The sa1111, though, is a bit complicated. Until it's fully understood
>>>> and fixed, dma_needs_bounce() for sa1111 is kept if CONFIG_SA1111 is
>>>> enabled with no side effect (with the condition of machine_is_*)
>>>>
>>> Sorry I forgot to CC you two. Any feedback is welcome, thanks.
>> Can I pull these changes from your git tree?
>
> Sorry, just pushed them to the branch below:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6.git
> defconfig_cleanup
Can you please enroll the below patch into your tree? Otherwise the kernel
build fails if CONFIG_SA1111 is not selected and I hardly believe anyone
would use pxa2xx_defconfig on CM-X270 :)
Except that, IT8152 works fine and IT8152 part can have
Acked-by: Mike Rapoport <mike@compulab.co.il>
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index c80d4d2..8bc64bd 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -301,7 +301,8 @@ extern void dmabounce_unregister_dev(struct device *);
#ifdef CONFIG_SA1111
extern int dma_needs_bounce(struct device*, dma_addr_t, size_t);
#else
-static inline int dma_needs_bounce(struct device*, dma_addr_t, size_t)
+static inline int dma_needs_bounce(struct device* dev, dma_addr_t dma_addr,
+ size_t size)
{
return 0;
}
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2010-06-22 7:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 7:55 [PATCH 0/4] [ARM] Reduce the defconfig numbers for PXA Eric Miao
2010-06-05 7:55 ` [PATCH 1/4] [ARM] Remove now unnecessary dma_needs_bounce() Eric Miao
2010-06-18 4:03 ` Eric Miao
2010-06-21 5:38 ` Mike Rapoport
2010-06-21 15:22 ` Eric Miao
2010-06-22 7:38 ` Mike Rapoport [this message]
2010-06-22 7:52 ` Eric Miao
2010-06-05 7:55 ` [PATCH 2/4] [ARM] pxa: merge all pxa2xx board configs into pxa2xx_defconfig Eric Miao
2010-06-05 8:03 ` Eric Miao
2010-06-05 8:04 ` Eric Miao
2010-06-05 7:55 ` [PATCH 3/4] [ARM] pxa: merge all pxa3xx board configs into pxa3xx_defconfig Eric Miao
2010-06-05 8:04 ` Eric Miao
2010-06-05 7:55 ` [PATCH 4/4] [ARM] pxa: merge {corgi, spitz}_defconfig into zaurus_defconfig Eric Miao
2010-06-05 8:05 ` [PATCH 4/4] [ARM] pxa: merge {corgi,spitz}_defconfig " Eric Miao
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=4C206859.6090604@compulab.co.il \
--to=mike@compulab.co.il \
--cc=linux-arm-kernel@lists.infradead.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.