<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/acpi/dock.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-16T08:54:28Z</updated>
<entry>
<title>ACPI: dock: properly initialize local struct dock_station in dock_add()</title>
<updated>2010-02-16T08:54:28Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2010-02-01T17:35:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49c6fb2e41d41c4c0c5c753b6960bc81fe658d20'/>
<id>urn:sha1:49c6fb2e41d41c4c0c5c753b6960bc81fe658d20</id>
<content type='text'>
Commit fe06fba2 (ACPI: dock: add struct dock_station * directly
to platform device data) changed dock_add() to use the
platform_device_register_data() API.

We passed that interface a stack variable, which is kmemdup'ed
and assigned to the device's platform_data pointer.

Unfortunately, whatever random garbage is in the stack variable
gets coped during the kmemdup, and that leads to broken behavior.

Explicitly zero out the structure before passing it to the API.

This fixes the T41 docking button issue:
http://bugzilla.kernel.org/show_bug.cgi?id=15000

Cc: stable@kernel.org
Reported-by: Chris Mason &lt;chris.mason@oracle.com&gt;
Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dock' into release</title>
<updated>2009-12-16T08:33:28Z</updated>
<author>
<name>Len Brown</name>
</author>
<published>2009-12-16T08:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f02f465b1cdcdf7485f89ec019e6cceaf80cadd5'/>
<id>urn:sha1:f02f465b1cdcdf7485f89ec019e6cceaf80cadd5</id>
<content type='text'>
Conflicts:
	drivers/acpi/dock.c

Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: minor whitespace and style cleanups</title>
<updated>2009-12-16T08:03:12Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=747479a3fb42849fe73b9b1f7545d751bde7d632'/>
<id>urn:sha1:747479a3fb42849fe73b9b1f7545d751bde7d632</id>
<content type='text'>
Removed some stray whitespaces
Added whitespace when needed for legibility
Removed unneeded curly braces
Removed useless void casts
Removed unnecessary local variable initialization
Renamed variables to help out with 80-column fixes

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: add struct dock_station * directly to platform device data</title>
<updated>2009-12-16T08:03:11Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe06fba292af5ed5c1c6ad9af3a9ef68da7a5088'/>
<id>urn:sha1:fe06fba292af5ed5c1c6ad9af3a9ef68da7a5088</id>
<content type='text'>
Instead of adding a (struct dock_station **) to our dock device's
platform data, we can add the (struct dock_station *) directly.

This change saves us some ugly casting and improves readability.

The cost of making this change is an extra 290 bytes of stack usage,
but this is an infrequently called code-path and unlikely to cause
the kernel to blow up.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: dock_add - hoist up platform_device_register_simple()</title>
<updated>2009-12-16T08:03:11Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9751cb721ef650729e981c7b39abb7676cd646e1'/>
<id>urn:sha1:9751cb721ef650729e981c7b39abb7676cd646e1</id>
<content type='text'>
Move the call to platform_device_register_simple so that we do it
before allocating and initializing our struct dock_station.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: remove global 'dock_device_name'</title>
<updated>2009-12-16T08:03:10Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6f1905ea91bf56a921c6eb574488869c8c3eeff'/>
<id>urn:sha1:c6f1905ea91bf56a921c6eb574488869c8c3eeff</id>
<content type='text'>
We only use it in one spot, so it probably gets optimized out, but there's
still no need to use a global variable for this.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: combine add|alloc_dock_dependent_device (v2)</title>
<updated>2009-12-16T08:02:10Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f69cfdd24ac40ab7bbd00d6ad85e003da755e3a0'/>
<id>urn:sha1:f69cfdd24ac40ab7bbd00d6ad85e003da755e3a0</id>
<content type='text'>
There's no real need to have a separate allocation step when adding
a dock dependent device.

Combining the two functions is both logical and helps with legibility.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
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: dock: convert sysfs attributes to an attribute_group</title>
<updated>2009-11-03T20:57:13Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-19T21:14:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f46c2f25cfbb5faca7550738ac42c4d1491ddc8'/>
<id>urn:sha1:5f46c2f25cfbb5faca7550738ac42c4d1491ddc8</id>
<content type='text'>
As suggested by Dmitry Torokhov, convert the individual sysfs
attributes into an attribute group.

This change eliminates quite a bit of copy/paste code in the
error handling paths.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Reviewed-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
Acked-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: dock: fix "sibiling" typo</title>
<updated>2009-10-03T05:08:28Z</updated>
<author>
<name>Alex Chiang</name>
</author>
<published>2009-10-01T17:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50d716e477a456f6ef8ef05f06a34f3d96b66e80'/>
<id>urn:sha1:50d716e477a456f6ef8ef05f06a34f3d96b66e80</id>
<content type='text'>
Crossword clues as haikus:

	Snakes from the same brood
	fighting Jackson on a plane?
	sibilant siblings

I guess Will Shortz's job is still secure.

Signed-off-by: Alex Chiang &lt;achiang@hp.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
</feed>
