public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: zhouqiao@marvell•com (Qiao Zhou)
To: linux-arm-kernel@lists•infradead.org
Subject: Build warning in drivers/dma/mmp_tdma.c
Date: Wed, 4 Dec 2013 09:08:23 +0800	[thread overview]
Message-ID: <529E8087.2080106@marvell.com> (raw)
In-Reply-To: <CAA9_cmc0+onxBJ4_xRAPSfH2Hx6ky87EZk9_8kJvbED03_Ca1g@mail.gmail.com>

On 12/04/2013 05:02 AM, Dan Williams wrote:
> On Tue, Dec 3, 2013 at 2:43 AM, Qiao Zhou <zhouqiao@marvell•com> wrote:
>> On 12/03/2013 10:31 AM, Haojian Zhuang wrote:
>>>
>>> I prefer to add CONFIG_MMP_SRAM instead, since sram isn't available in
>>> pxa168.
>>
>> Hi Dan,
>>
>> I have two patches. Could you help check whether it can fix the issue?
>>
>> BTW, actually the 2nd alone is enough. The 1st patch is just in case that
>> you still want to use the old sram driver, and you need to enable MMP_SRAM.
>>
>> All, please help review the patches.
>>
>>  From 94601015d525db6d2baf47f4d517f38ae2e5e802 Mon Sep 17 00:00:00 2001
>> From: Qiao Zhou <zhouqiao@marvell•com>
>> Date: Tue, 3 Dec 2013 11:06:29 +0800
>> Subject: [PATCH 1/2] arm: mmp: build sram driver alone
>>
>> sram driver can be used by many chips besides CPU_MMP2, and so build
>> it alone.
>>
>> Signed-off-by: Qiao Zhou <zhouqiao@marvell•com>
>> ---
>>   arch/arm/mach-mmp/Makefile |    3 ++-
>>
>>   1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/mach-mmp/Makefile b/arch/arm/mach-mmp/Makefile
>> index 9b702a1..98f0f63 100644
>> --- a/arch/arm/mach-mmp/Makefile
>> +++ b/arch/arm/mach-mmp/Makefile
>> @@ -7,7 +7,8 @@ obj-y                           += common.o devices.o time.o
>>   # SoC support
>>   obj-$(CONFIG_CPU_PXA168)       += pxa168.o
>>   obj-$(CONFIG_CPU_PXA910)       += pxa910.o
>>
>> -obj-$(CONFIG_CPU_MMP2)         += mmp2.o sram.o
>> +obj-$(CONFIG_CPU_MMP2)         += mmp2.o
>> +obj-$(CONFIG_MMP_SRAM)         += sram.o
>
> Missing the Kconfig change to add "config MMP_SRAM"?
The sram driver is unnecessary if we use generic pool. Zhangfei 
mentioned to remove this sram driver. It's just for your test.
>
>>
>>   ifeq ($(CONFIG_COMMON_CLK), )
>>   obj-y                          += clock.o
>> --
>> 1.7.0.4
>>
>>
>>  From 5396b1bffd574dbe778387979ecc24c51ee0c7a4 Mon Sep 17 00:00:00 2001
>> From: Qiao Zhou <zhouqiao@marvell•com>
>> Date: Tue, 3 Dec 2013 18:17:02 +0800
>> Subject: [PATCH 2/2] dma: mmp-tdma: use gen_pool to get asram
>>
>> use generic pool to get audio sram, instead of sram driver
>>
>> Signed-off-by: nhcao <nhcao@marvell•com>
>> Signed-off-by: Qiao Zhou <zhouqiao@marvell•com>
>> ---
>>   drivers/dma/Kconfig    |    1 +
>>   drivers/dma/mmp_tdma.c |   22 +++++++++++++++++-----
>>   2 files changed, 18 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
>> index dd2874e..eeffe3c 100644
>> --- a/drivers/dma/Kconfig
>> +++ b/drivers/dma/Kconfig
>> @@ -288,6 +288,7 @@ config MMP_TDMA
>>
>>          bool "MMP Two-Channel DMA support"
>>          depends on ARCH_MMP
>>          select DMA_ENGINE
>> +       select GENERIC_ALLOCATOR
>
> You still need a depends on MMP_SRAM right?  Otherwise this just turns
> the compile error into a much more subtle runtime failure.
>
No dependence on MMP_SRAM(sram). You can refer to lib/genalloc.c

-- 

Best Regards
Qiao

  reply	other threads:[~2013-12-04  1:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 22:58 Build warning in drivers/dma/mmp_tdma.c Dan Williams
2013-11-29  5:31 ` Vinod Koul
2013-12-02  6:42 ` Zhangfei Gao
2013-12-02  7:34   ` Qiao Zhou
2013-12-02  7:42     ` Zhangfei Gao
     [not found]     ` <CAPcyv4jfk+JBv7WY_njuYtx8hERZHhoCAij=FOfqxAhLJAHnFA@mail.gmail.com>
2013-12-03  2:13       ` Zhangfei Gao
2013-12-03  2:31         ` Haojian Zhuang
2013-12-03 10:43           ` Qiao Zhou
2013-12-03 11:05             ` Zhangfei Gao
2013-12-04  1:09               ` Qiao Zhou
2013-12-03 21:02             ` Dan Williams
2013-12-04  1:08               ` Qiao Zhou [this message]
2013-12-04  1:32                 ` Dan Williams
2013-12-04  1:58                   ` Qiao Zhou
2013-12-04  2:15                     ` Dan Williams
2013-12-04  2:28                       ` Qiao Zhou
2013-12-04  2:34                         ` Zhangfei Gao
2013-12-04  2:44                           ` Qiao Zhou

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=529E8087.2080106@marvell.com \
    --to=zhouqiao@marvell$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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