All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: linux-acpi@vger.kernel.org, lenb@kernel.org
Subject: Re: a problem about the function of acpi_ec_read_data
Date: Sat, 16 Aug 2008 00:38:58 +0400	[thread overview]
Message-ID: <48A5E962.7030204@suse.de> (raw)
In-Reply-To: <1218699173.3998.60.camel@yakui_zhao.sh.intel.com>

Hi Zhao,
Good catch, it is probably debug patch gone bad. it is definitely needs to read "return x;"
Please submit patch, I ACK it.
Thanks,
Alex.


Zhao Yakui wrote:
> Hi, Alexey
>     There is a question about the function of acpi_ec_read_data.
>  
>     When the data is ready for OS, OS will check the OBF flag of EC status and then call the following
> function to read the data returned by EC controller.
> 
> static inline u8 acpi_ec_read_data(struct acpi_ec *ec)
> {
>         u8 x = inb(ec->data_addr);
>         pr_debug(PREFIX "---> data = 0x%2.2x\n", x);
>         return inb(ec->data_addr);
> }
> 
>     Why is the EC data I/O address accessed twice to get the data returned by EC controller?
>     Does there exist some specific reason about it?
>  
> Thanks for the comments.
> 
> Best regards.
>    Yakui
> 


  reply	other threads:[~2008-08-15 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14  7:32 a problem about the function of acpi_ec_read_data Zhao Yakui
2008-08-15 20:38 ` Alexey Starikovskiy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-08-18  2:37 Zhao Yakui

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=48A5E962.7030204@suse.de \
    --to=astarikovskiy@suse.de \
    --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 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.