From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v4] dma: sudmac: add support for SUDMAC
Date: Wed, 10 Apr 2013 12:08:28 +0000 [thread overview]
Message-ID: <5165563C.3000909@cogentembedded.com> (raw)
In-Reply-To: <5163E470.7010107@renesas.com>
Hello.
On 10-04-2013 5:12, Kuninori Morimoto wrote:
>> diff --git a/include/linux/sudmac.h b/include/linux/sudmac.h
> (snip)
>> +/* Definitions for the sudmac_channel.config */
>> +#define SUDMAC_SENDBUFM 0x1000 /* b12: Transmit Buffer Mode */
>> +#define SUDMAC_RCVENDM 0x0100 /* b8: Receive Data Transfer End Mode */
>> +#define SUDMAC_LBA_WAIT 0x0030 /* b5-4: Local Bus Access Wait */
>> +
>> +/* Definitions for the sudmac_channel.dint_end_bit */
>> +#define SUDMAC_CH1ENDE 0x0002 /* b1: Ch1 DMA Transfer End Int Enable */
>> +#define SUDMAC_CH0ENDE 0x0001 /* b0: Ch0 DMA Transfer End Int Enable */
> I think these are used as register value,
> and it comes from board/platform directly ?
> But it is not good approach for me,
> because it is easy to break driver.
> Can you use like this style ?
> --- xxxx.h ----
> #define SUDMAC_TX_BUFFER_MODE (1 << 0)
> #define SUDMAC_RV_END_MODE (1 << 1)
> ...
Better yet, use the BIT() macro (althought it won't help if you'll have to
define a bitfield.
WBR, Sergei
next prev parent reply other threads:[~2013-04-10 12:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 9:50 [PATCH v4] dma: sudmac: add support for SUDMAC Shimoda, Yoshihiro
2013-04-09 10:16 ` Paul Mundt
2013-04-09 11:31 ` Shimoda, Yoshihiro
2013-04-10 1:12 ` Kuninori Morimoto
2013-04-10 12:08 ` Sergei Shtylyov [this message]
2013-04-10 13:09 ` Shimoda, Yoshihiro
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=5165563C.3000909@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-sh@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox