linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 2/2 v7] sudmac: add support for SUDMAC
Date: Tue, 23 Apr 2013 06:43:50 +0000	[thread overview]
Message-ID: <20130423063150.GA24632@intel.com> (raw)
In-Reply-To: <5174FDF3.8060809@renesas.com>

On Mon, Apr 22, 2013 at 10:08:45PM -0700, Kuninori Morimoto wrote:
> 
> Hi Shimoda-san
> 
> > it can choose the SH_DMAE_BASE only, but we will use
> > "SH_DMAE_BASE && SH_DMAE" or "SH_DMAE_BASE && SH_SUDMAC".
> > So, I intend to modify the Kconfig like the "config DMA_ENGINE":
> > 
> > --- Kconfig ---
> > config SH_DMAE
> > 	xxx
> > 	select SH_DMAE_BASE
> > 
> > config SUDMAC
> > 	xxx
> > 	select SH_DMAE_BASE
> > ---------------
> > 
> > What do you think about this?
> 
> 
> Thank you
> 
> Selecting SH_DMAE_BASE only is not so strange for me,
> and (as you mentioned F2F), some driver already depends on it.
> So this SH_DMAE_BASE should be y, and SH_DMAE/SUDMAC should depend
> on it.
What I would expect a decent config to do is have the driver symbol slect
whatever it needs

something like
config SH_BASE

config SH_DMAE

config SUDMAC
	select SH_DMAE
	select SH_BASE

etc, its nice to have simpler config and driver options. Driver selects all that
it needs :)

Btw the driver patch looks sane to me. So once you have sorted what you guys
want here, I think its good for merge. 

--
~Vinod
> 
> I guess this is naturally Kconfig for me
> 
> config SH_DMAE_BASE
> 	bool xxx
> 	default y if (SH_MOBLE && SH)
> 
> config SH_DMAE
>         xxxx
> 	depends on SH_DMAE_BASE
> 
> config SUDMAC
>         xxxx
> 	depends on SH_DMAE_BASE
> 
> BTW, "SH_DMAE" is mismatch naming, I guess "SHDMAC" is better ?
> 
> Best regards
> ---
> Kuninori Morimoto

  parent reply	other threads:[~2013-04-23  6:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22  9:08 [PATCH 2/2 v7] sudmac: add support for SUDMAC Shimoda, Yoshihiro
2013-04-23  0:41 ` Kuninori Morimoto
2013-04-23  4:18 ` Shimoda, Yoshihiro
2013-04-23  5:08 ` Kuninori Morimoto
2013-04-23  6:43 ` Vinod Koul [this message]
2013-04-23 10:50 ` 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=20130423063150.GA24632@intel.com \
    --to=vinod.koul@intel.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;
as well as URLs for NNTP newsgroup(s).