Re: [PATCH 1/5] ACPI: WMI: Add ACPI-WMI mapping driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
E-Mail: carlos@xxxxxxxxxxxxxxxxxxx
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux