All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Starikovskiy <aystarik@gmail.com>
To: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: linux-acpi@vger.kernel.org, Len Brown <lenb@kernel.org>,
	Matthew Garrett <mjg59@srcf.ucam.org>,
	Alexey Starikovskiy <ayastarik@gmail.com>
Subject: Re: [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver
Date: Mon, 17 Dec 2007 23:04:06 +0300	[thread overview]
Message-ID: <4766D636.9010405@gmail.com> (raw)
In-Reply-To: <200712171501.11885.carlos@strangeworlds.co.uk>

Carlos Corbacho wrote:
> On Monday 17 December 2007 09:40:19 Alexey Starikovskiy wrote:
>   
>>> +/*
>>> + * WMI can have EmbeddedControl access regions. In which case, we just
>>> want to + * hand these off to the EC driver.
>>> + */
>>> +static acpi_status
>>> +acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,
>>> +		      u32 bits, acpi_integer *value,
>>> +		      void *handler_context, void *region_context)
>>> +{
>>> +	int result = 0, i = 0;
>>> +	u8 temp = 0;
>>> +
>>> +	if ((address > 0xFF) || !value)
>>> +		return AE_BAD_PARAMETER;
>>> +
>>> +	if (function != ACPI_READ && function != ACPI_WRITE)
>>> +		return AE_BAD_PARAMETER;
>>> +
>>>       
>> You probably don't need to handle more than 1 byte here -- even in EC it
>> is legacy...
>>     
>
> So would putting back in something like:
>
> if (bits != 8)
> 	return AE_BAD_PARAMETER;
>
> Be the right solution? (acpi_strict test is removed compared to EC, since it's 
> no longer exported, and WMI can be built as a module)
>
> -Carlos
>   

Right

  reply	other threads:[~2007-12-17 20:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17  0:23 [PATCH 0/5] WMI Carlos Corbacho
2007-12-17  0:23 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2007-12-17  9:40   ` Alexey Starikovskiy
2007-12-17 15:01     ` Carlos Corbacho
2007-12-17 20:04       ` Alexey Starikovskiy [this message]
2007-12-17  0:23 ` [PATCH 2/5] acer-wmi: Add driver for newer Acer laptops Carlos Corbacho
2007-12-17  0:23 ` [PATCH 3/5] [RFC] tc1100-wmi: Add driver for HP Compaq TC1100 Tablets Carlos Corbacho
2007-12-17  0:23 ` [PATCH 4/5] [RFC] ACPI: WMI: Add sysfs userspace interface Carlos Corbacho
2007-12-17  0:23 ` [PATCH 5/5] [WIP] ACPI: WMI: Limit size of device string to 19 characters Carlos Corbacho
  -- strict thread matches above, loose matches on Subject: below --
2008-02-05  2:16 [PATCH 0/5] WMI patches for acpi-test (v2) Carlos Corbacho
2008-02-05  2:17 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2008-02-02 12:17 [PATCH 0/5] WMI patches for acpi-test Carlos Corbacho
2008-02-02 12:17 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2008-01-18 23:58 [PATCH 0/5] WMI Carlos Corbacho
2008-01-18 23:58 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2008-01-12  2:20 [PATCH 0/5] WMI Carlos Corbacho
2008-01-12  2:20 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2008-01-12 13:00   ` Carlos Corbacho
2007-12-27 15:38 [PATCH 0/5] WMI Carlos Corbacho
2007-12-27 15:38 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2007-12-12  2:01 [PATCH 0/5] WMI Carlos Corbacho
2007-12-12  2:07 ` [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho

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=4766D636.9010405@gmail.com \
    --to=aystarik@gmail.com \
    --cc=ayastarik@gmail.com \
    --cc=carlos@strangeworlds.co.uk \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.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.