public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Qiao Zhou <zhouqiao@marvell.com>
To: zhangfei gao <zhangfei.gao@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>,
	Dan Williams <dan.j.williams@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Chao Xie <cxie4@marvell.com>
Subject: Re: [PATCH] dma: mmp_tdma: add multiple burst size support for 910-squ
Date: Fri, 11 Oct 2013 09:08:25 +0800	[thread overview]
Message-ID: <52574F89.6010308@marvell.com> (raw)
In-Reply-To: <CAMj5BkgVw+uSCKzvY5tJY68NHUo_Ty-nvyhDQ+PGQo-kL7suWA@mail.gmail.com>

On 10/10/2013 09:54 PM, zhangfei gao wrote:
> On Wed, Oct 9, 2013 at 1:40 PM, Qiao Zhou <zhouqiao@marvell.com> wrote:
>> add multiple burst size support for 910-squ.
>>
>> Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
>> ---
>>   drivers/dma/mmp_tdma.c |   25 ++++++++++++++++++++++++-
>>   1 files changed, 24 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
>> index 38cb517..d84354b 100644
>> --- a/drivers/dma/mmp_tdma.c
>> +++ b/drivers/dma/mmp_tdma.c
>> @@ -228,8 +228,31 @@ static int mmp_tdma_config_chan(struct mmp_tdma_chan *tdmac)
>>                          return -EINVAL;
>>                  }
>>          } else if (tdmac->type == PXA910_SQU) {
>> -               tdcr |= TDCR_BURSTSZ_SQU_32B;
>>                  tdcr |= TDCR_SSPMOD;
>> +
>> +               switch (tdmac->burst_sz) {
>> +               case 1:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_1B;
>> +                       break;
>> +               case 2:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_2B;
>> +                       break;
>> +               case 4:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_4B;
>> +                       break;
>> +               case 8:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_8B;
>> +                       break;
>> +               case 16:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_16B;
>> +                       break;
>> +               case 32:
>> +                       tdcr |= TDCR_BURSTSZ_SQU_32B;
>> +                       break;
>> +               default:
>> +                       dev_err(tdmac->dev, "mmp_tdma: unknown burst size.\n");
>> +                       return -EINVAL;
>> +               }
>
> Sorry, do I make mistake,
> Not find definition TDCR_BURSTSZ_SQU_16B ~
> Only find
> #define TDCR_BURSTSZ_SQU_32B    (0x7 << 6)
uploaded the wrong version. sorry. I have already submitted the v2 
patch. thanks.
>
> Thanks
>


-- 

Best Regards
Qiao

      reply	other threads:[~2013-10-11  1:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09  5:40 [PATCH v1] dma: mmp-tdma: add multiple burst size support for 910-squ Qiao Zhou
2013-10-09  5:40 ` [PATCH] dma: mmp_tdma: " Qiao Zhou
2013-10-10 13:54   ` zhangfei gao
2013-10-11  1:08     ` Qiao Zhou [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=52574F89.6010308@marvell.com \
    --to=zhouqiao@marvell.com \
    --cc=cxie4@marvell.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    --cc=zhangfei.gao@gmail.com \
    /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