All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2] sh-sci: Get register size from platform data
Date: Sun, 17 May 2015 16:23:41 +0000	[thread overview]
Message-ID: <87k2w7npf6.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <1431788588-14974-2-git-send-email-ysato@users.sourceforge.jp>

On Sun, 17 May 2015 03:18:30 +0900,
Sergei Shtylyov wrote:
> 
> Hello.
> 
> On 05/16/2015 06:03 PM, Yoshinori Sato wrote:
> 
> > There is much implement of SCI,
> 
>    Many implementations, you mean?

There is much SCI of SoC having within,
and the register size is also different in everyone.

> > So the register size should be acquired from platform data.
> 
>    You're not acquiring them from the platform data, you're using
> platform device resources for that.

Yes.
platform device is correct.

> > Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> 
> [...]
> > @@ -2207,6 +2198,7 @@ static int sci_init_single(struct platform_device *dev,
> >   		return -ENOMEM;
> > 
> >   	port->mapbase = res->start;
> > +	sci_port->reg_size = res->end - res->start + 1;
> 
>    Use resource_size(res) instead, please.

OK.
I'll update.

Thanks.

> [...]
> 
> WBR, Sergei
> 

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

      parent reply	other threads:[~2015-05-17 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-16 15:03 [PATCH v2] sh-sci: Get register size from platform data Yoshinori Sato
2015-05-16 18:18 ` Sergei Shtylyov
2015-05-17 16:23 ` Yoshinori Sato [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=87k2w7npf6.wl-ysato@users.sourceforge.jp \
    --to=ysato@users.sourceforge.jp \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.