On Thu, 2014-04-10 at 15:15 -0400, Prarit Bhargava wrote:
> 
> On 04/09/2014 01:09 PM, Matthew Garrett wrote:
> > Not really. These are an internal implementation detail, not an exported
> > interface. We try to write drivers for exported interfaces, even if
> > they're not documented.
> 
> Aren't the methods the exported interface?  I'm obviously missing something :)

No. The device doesn't have a _HID(), so they're internal methods.

> > Imagine an i2c chip with indexed register access. What stops:
> > 
> > CPU0 (i2c):         CPU1 (ACPI):
> > SBWB register address
> >                     SBWB register address
> > SBRB register value
> >                     SBRB register value
> > 
> > and CPU0 getting back the wrong value?
> 
> I thought that the "Serialized" keyword in the methods specifically indicate
> that this cannot happen.

It means you can't run the same method twice at the same time, but in
the above case you're not doing that. Nothing ensures that SBWB can't be
run again before SBRB is run.

-- 
Matthew Garrett <matthew.garr...@nebula.com>

Reply via email to