public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: joeyli <jlee@suse.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>,
	Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, Lan Tianyu <tianyu.lan@intel.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Subject: Re: [PATCH] ACPI: Fix CMOS RTC Operation Region handler accesses to wrong address of value
Date: Fri, 5 Sep 2014 10:06:41 +0800	[thread overview]
Message-ID: <20140905020641.GE2225@linux-rxt1.site> (raw)
In-Reply-To: <38112801.VIxC3kPKfk@vostro.rjw.lan>

Hi, 

On Thu, Sep 04, 2014 at 09:46:30PM +0200, Rafael J. Wysocki wrote:
> On Thursday, September 04, 2014 03:13:39 PM Lee, Chun-Yi wrote:
> > The value64 parameter is an u64 point that used to transfer the value
> > for write to CMOS, or used to return the value that's read from CMOS.
> > 
> > The value64 is an u64 point, so don't need get address again. It causes
> > acpi_cmos_rtc_space_handler always return 0 to reader and didn't write
> > expected value to CMOS.
> 
> Do we need this fix to go to -stable?
> 

Yes, this handler was added since v3.11 kernel. So, need go to -stable.

> > Cc: Lan Tianyu <tianyu.lan@intel.com>
> > Cc: Len Brown <lenb@kernel.org>
> > Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> > Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
> > ---
> >  drivers/acpi/acpi_cmos_rtc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/acpi/acpi_cmos_rtc.c b/drivers/acpi/acpi_cmos_rtc.c
> > index 2da8660..81dc750 100644
> > --- a/drivers/acpi/acpi_cmos_rtc.c
> > +++ b/drivers/acpi/acpi_cmos_rtc.c
> > @@ -33,7 +33,7 @@ acpi_cmos_rtc_space_handler(u32 function, acpi_physical_address address,
> >  		      void *handler_context, void *region_context)
> >  {
> >  	int i;
> > -	u8 *value = (u8 *)&value64;
> > +	u8 *value = (u8 *)value64;
> >  
> >  	if (address > 0xff || !value64)
> >  		return AE_BAD_PARAMETER;
> > 
> 
> -- 
> I speak only for myself.
> Rafael J. Wysocki, Intel Open Source Technology Center.

Regards
Joey Lee

      reply	other threads:[~2014-09-05  2:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1409814819-30594-1-git-send-email-jlee@suse.com>
2014-09-04 19:46 ` [PATCH] ACPI: Fix CMOS RTC Operation Region handler accesses to wrong address of value Rafael J. Wysocki
2014-09-05  2:06   ` joeyli [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=20140905020641.GE2225@linux-rxt1.site \
    --to=jlee@suse.com \
    --cc=joeyli.kernel@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rjw@rjwysocki.net \
    --cc=tianyu.lan@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