linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Kai Song <songkai01@inspur.com>
Cc: thor.thayer@linux.intel.com, zou_wei@huawei.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: altera-sysmgr: Fix a mistake caused by resource_size function
Date: Mon, 18 Oct 2021 15:02:34 +0100	[thread overview]
Message-ID: <YW1+eiaWZDRTet21@google.com> (raw)
In-Reply-To: <20211006141926.6120-1-songkai01@inspur.com>

On Wed, 06 Oct 2021, Kai Song wrote:

> Fixes: d12edf9661a4 ("mfd: altera-sysmgr: Use resource_size function on resource object")
> 
> The resource_size defines that:
> 	res->end - res->start + 1;
> The origin original code is:
> 	sysmgr_config.max_register = res->end - res->start - 3;
> 
> So, the correct fix is that:
> 	sysmgr_config.max_register = resource_size(res) - 4;
> 
> Signed-off-by: Kai Song <songkai01@inspur.com>
> ---
>  drivers/mfd/altera-sysmgr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

      reply	other threads:[~2021-10-18 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 14:19 [PATCH] mfd: altera-sysmgr: Fix a mistake caused by resource_size function Kai Song
2021-10-18 14:02 ` Lee Jones [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=YW1+eiaWZDRTet21@google.com \
    --to=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=songkai01@inspur.com \
    --cc=thor.thayer@linux.intel.com \
    --cc=zou_wei@huawei.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;
as well as URLs for NNTP newsgroup(s).