From: Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Vinod Koul <vinod.koul@intel.com>,
Morimoto <kuninori.morimoto.gx@renesas.com>,
Linux-SH <linux-sh@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] shdma: add R-Car Audio DMAC peri peri driver
Date: Fri, 24 Jan 2014 00:18:38 -0800 (PST) [thread overview]
Message-ID: <871tzxg5d1.wl%kuninori.morimoto.gx@gmail.com> (raw)
In-Reply-To: <CAMuHMdX14rktzRtV9bqHFHZV6bsmQ_k=vAZFaPeNjcJsWeX42w@mail.gmail.com>
Hi Geert
Thank you for your review
> > --- a/drivers/dma/sh/Kconfig
> > +++ b/drivers/dma/sh/Kconfig
> > @@ -29,6 +29,12 @@ config RCAR_HPB_DMAE
> > help
> > Enable support for the Renesas R-Car series DMA controllers.
> >
> > +config RCAR_AUDMAC_PP
> > + tristate "Renesas R-Car Audio DMAC Peripheral Peripheral support"
>
> double "Peripheral"
Unfortunately (?) "Audio DMAC Peripheral Peripheral"
(= double Peripheral) is the formal name
> > + for(i = 0; i < 1024; i++) {
>
> Missing space between "for" and "(" (have you run checkpatch.pl?)
>
> What's a typical value of i when leaving the loop?
Oops, this is my fault.
I will fix in v2
> > +static struct audmapp_slave_config *
> > +audmapp_find_slave(struct audmapp_chan *auchan, int slave_id)
> > +{
> > + struct audmapp_device *audev = to_dev(auchan);
> > + struct audmapp_pdata *pdata = audev->pdata;
> > + struct audmapp_slave_config *cfg;
> > + int i;
>
> unsigned int
>
> > +
> > + if (slave_id >= AUDMAPP_SLAVE_NUMBER)
>
> So slave_id should be unsigned int, too, and AUDMAPP_SLAVE_NUMBER
> too ("29U").
Hmm...
This driver is called from shdma-base.c.
And shdmac.c/sudmac.c/rcar-hpbdmac.c are same style.
1) this "slave_id" came from shdma_ops::set_slave
and, it is using "int"
2) above drivers have same xxx_find_slave(),
they are using "int".
(this driver is based on that)
What should I do ?
> > + if (*len > (size_t)AUDMAPP_LEN_MAX)
>
> I think you can get rid of the cast by adding a "U" suffix to one of
> the constants in the definition of AUDMAPP_LEN_MAX.
>
> > + *len = (size_t)AUDMAPP_LEN_MAX;
>
> The cast is not needed (I think even without the change above).
I will fixup these in v2
Thank you
Best regards
---
Kuninori Morimoto
next prev parent reply other threads:[~2014-01-24 8:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 2:32 Kuninori Morimoto
2014-01-24 7:34 ` Geert Uytterhoeven
2014-01-24 8:18 ` Kuninori Morimoto [this message]
2014-01-24 8:33 ` Geert Uytterhoeven
2014-01-24 8:58 ` Kuninori Morimoto
2014-01-24 9:06 ` [PATCH v2] dma: " Kuninori Morimoto
2014-02-12 5:29 ` Kuninori Morimoto
2014-02-25 5:13 ` Kuninori Morimoto
2014-03-10 1:34 ` [PATCH v2][RESENT] " Kuninori Morimoto
2014-03-10 1:47 ` Joe Perches
2014-03-10 2:19 ` Kuninori Morimoto
2014-03-10 9:13 ` Shevchenko, Andriy
2014-03-10 2:25 ` [PATCH v3] shdma: " Kuninori Morimoto
2014-03-10 9:15 ` Shevchenko, Andriy
2014-03-11 1:11 ` Kuninori Morimoto
2014-03-25 1:08 ` Kuninori Morimoto
2014-03-29 14:08 ` Vinod Koul
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=871tzxg5d1.wl%kuninori.morimoto.gx@gmail.com \
--to=kuninori.morimoto.gx@gmail.com \
--cc=geert@linux-m68k.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=vinod.koul@intel.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
all inboxes | Powered by JetHome®