<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/acpi/scan.c, branch linux-2.6.33.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-02-01T02:43:32Z</updated>
<entry>
<title>ACPI: acpi_bus_{scan,bus,add}: return -ENODEV if no device was found</title>
<updated>2010-02-01T02:43:32Z</updated>
<author>
<name>Thomas Renninger</name>
</author>
<published>2010-01-29T16:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7779688fc3d1ceddad84846a7b0affbe8e78ec6e'/>
<id>urn:sha1:7779688fc3d1ceddad84846a7b0affbe8e78ec6e</id>
<content type='text'>
Callers (acpi_memhotplug.c, dock.c and others) check for the return
value of acpi_bus_add() and assume a valid device was returned in
case zero was returned.

Thus return -ENODEV if no device was found in acpi_bus_scan and
propagate this through acpi_bus_add and acpi_bus_start.

Also remove a confusing comment in acpiphp_glue.c, acpi_bus_scan
will and cannot invoke if acpi_bus_add returns no valid device.

Signed-off-by: Thomas Renninger &lt;trenn@suse.de&gt;
Acked-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: Add NULL pointer check in acpi_bus_start</title>
<updated>2010-02-01T02:43:04Z</updated>
<author>
<name>Thomas Renninger</name>
</author>
<published>2010-01-29T16:48:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d2f6650a950dadd20667a04a9dc785f240d43695'/>
<id>urn:sha1:d2f6650a950dadd20667a04a9dc785f240d43695</id>
<content type='text'>
If acpi_bus_add does not return a device and it's passed
to acpi_bus_start, bad things will happen:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
IP: [&lt;ffffffff8128402d&gt;] acpi_bus_start+0x14/0x24
...
[&lt;ffffffffa008977a&gt;] acpiphp_bus_add+0xba/0x130 [acpiphp]
[&lt;ffffffffa008aa72&gt;] enable_device+0x132/0x2ff [acpiphp]
[&lt;ffffffffa0089b68&gt;] acpiphp_enable_slot+0xb8/0x130 [acpiphp]
[&lt;ffffffffa0089df7&gt;] handle_hotplug_event_func+0x87/0x190 [acpiphp]

Next patch would make this NULL pointer check obsolete, but
better having one more than one missing...

Signed-off-by: Thomas Renninger &lt;trenn@suse.de&gt;
Acked-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
CC: stable@kernel.org
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPICA: Add post-order callback to acpi_walk_namespace</title>
<updated>2009-11-25T02:31:10Z</updated>
<author>
<name>Lin Ming</name>
</author>
<published>2009-11-13T02:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2263576cfc6e8f6ab038126c3254404b9fcb1c33'/>
<id>urn:sha1:2263576cfc6e8f6ab038126c3254404b9fcb1c33</id>
<content type='text'>
The existing interface only has a pre-order callback. This change
adds an additional parameter for a post-order callback which will
be more useful for bus scans. ACPICA BZ 779.

Also update the external calls to acpi_walk_namespace.

http://www.acpica.org/bugzilla/show_bug.cgi?id=779

Signed-off-by: Lin Ming &lt;ming.m.lin@intel.com&gt;
Signed-off-by: Bob Moore &lt;robert.moore@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: fix bus scanning memory leaks</title>
<updated>2009-10-02T15:03:12Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-10-02T15:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a83893ae903ba908b1139fd8455ac93c4e5a2dff'/>
<id>urn:sha1:a83893ae903ba908b1139fd8455ac93c4e5a2dff</id>
<content type='text'>
Free an acpi_get_object_info() buffer when we're finished.  Skip the
acpi_get_name() altogether -- it was only used for a printk that was
really just for debug anyway.

http://bugzilla.kernel.org/show_bug.cgi?id=14271

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Reported-and-tested-by: Zdenek Kabelac &lt;zdenek.kabelac@gmail.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: simplify building device HID/CID list</title>
<updated>2009-09-25T19:09:49Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57f3674f5e9c7b1102ae62fc2920d2fa09fce1ea'/>
<id>urn:sha1:57f3674f5e9c7b1102ae62fc2920d2fa09fce1ea</id>
<content type='text'>
Minor code cleanup, no functional change.  Instead of remembering
what HIDs &amp; CIDs to add later, just add them immediately.

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: remove acpi_device_uid() and related stuff</title>
<updated>2009-09-25T19:09:49Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6622d8cee73a26bce958484065c8f0e704911a62'/>
<id>urn:sha1:6622d8cee73a26bce958484065c8f0e704911a62</id>
<content type='text'>
Nobody uses acpi_device_uid(), so this patch removes it.

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: remove acpi_device.flags.hardware_id</title>
<updated>2009-09-25T19:09:48Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1131b938f0757350f569f8ad5bee737cd02b8e58'/>
<id>urn:sha1:1131b938f0757350f569f8ad5bee737cd02b8e58</id>
<content type='text'>
Every acpi_device has at least one ID (if there's no _HID or _CID, we
give it a synthetic or default ID).  So there's no longer a need to
check whether an ID exists; we can just use it.

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: remove acpi_device.flags.compatible_ids</title>
<updated>2009-09-25T19:09:47Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2972f87508a21db7584d11fdb5c97cb7101a788'/>
<id>urn:sha1:b2972f87508a21db7584d11fdb5c97cb7101a788</id>
<content type='text'>
We now keep a single list of IDs that includes both the _HID and any
_CIDs.  We no longer need to keep track of whether the device has a _CID.

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: maintain a single list of _HID and _CID IDs</title>
<updated>2009-09-25T19:09:31Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f47fa6c2ff15f5e59cdbb350f86faef6829294a'/>
<id>urn:sha1:7f47fa6c2ff15f5e59cdbb350f86faef6829294a</id>
<content type='text'>
There's no need to treat _HID and _CID differently.  Keeping them in
a single list makes code that uses the IDs a little simpler because it
can just traverse the list rather than checking "do we have a HID?",
"do we have any CIDs?"

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Reviewed-by: Alex Chiang &lt;achiang@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: make sure every acpi_device has an ID</title>
<updated>2009-09-25T18:26:02Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2009-09-21T19:35:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1fbfb2ae8f2f0e04219218da6f52f7313466899'/>
<id>urn:sha1:b1fbfb2ae8f2f0e04219218da6f52f7313466899</id>
<content type='text'>
This makes sure every acpi_device has at least one ID.  If we build an
acpi_device for a namespace node with no _HID or _CID, we sometimes
synthesize an ID like "LNXCPU" or "LNXVIDEO".  If we don't even have
that, give it a default "device" ID.

Note that this means things like:
    /sys/devices/LNXSYSTM:00/LNXSYBUS:00/HWP0001:00/HWP0002:04/device:00
(a PCI slot SxFy device) will have "hid" and "modprobe" entries, where
they didn't before.  These aren't very useful (a HID of "device" doesn't
tell you what *kind* of device it is, so it doesn't help find a driver),
but I don't think they're harmful.

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
</feed>
