public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: lenb@kernel.org, akpm@linux-foundation.org, linux-acpi@vger.kernel.org
Subject: Re: [patch 3/9] acpi: adjust register handling
Date: Tue, 22 Apr 2008 09:01:59 +0100	[thread overview]
Message-ID: <480DB797.76E4.0078.0@novell.com> (raw)
In-Reply-To: <1208862915.14474.31.camel@yakui_zhao.sh.intel.com>

>>> Zhao Yakui <yakui.zhao@intel.com> 22.04.08 13:15 >>>
>On Fri, 2008-04-18 at 13:27 -0700, akpm@linux-foundation.org wrote:
>> From: "Jan Beulich" <jbeulich@novell.com>
>> 
>> acpi_hw_low_level_{read,write}() have no need to accept a NULL reg argument
>> anymore (all callers use addresses of or derived from ACPI globals), and it
>> really should always have been considered an error to call these functions in
>> such a way.
>IMO this is inappropriate. On some laptops there are some optional
>register blocks . For example: PM1b_event_block, PM1B_control_block. 
>And the optional register block will be accessed in many functions. (For
>example: sleep flowchart, power_off flowchart).
>If the AE_BAD_PARAMETER is returned by acpi_hw_low_level_read when the
>reg doesn't exist, there will be many regressions.

No, that's not the case: as said in the description, the register structures
are static (hence the addresses of them are never NULL) - an optional,
not implemented register is identified by the address field inside the
register structure being zero (which is still being accounted for, as it
was before the change).

Jan


      reply	other threads:[~2008-04-22  8:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 20:27 [patch 3/9] acpi: adjust register handling akpm
2008-04-22 11:15 ` Zhao Yakui
2008-04-22  8:01   ` Jan Beulich [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=480DB797.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=akpm@linux-foundation.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=yakui.zhao@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