]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
apple-gmux: Fix index read functions
authorBernhard Froemel <froemel@vmars.tuwien.ac.at>
Sat, 25 Aug 2012 08:30:48 +0000 (10:30 +0200)
committerMatthew Garrett <mjg@redhat.com>
Thu, 13 Sep 2012 20:46:29 +0000 (16:46 -0400)
commitc5a5052923c55990e32a3d64bdb4779b01162646
tree6ffd57a7eba842cd14d18479f540fefabe9eb44f
parent07f377da7e8a7d3c3a6626333516f9c808637c9e
apple-gmux: Fix index read functions

Study of Apple's binary driver revealed that the GMUX_READ_PORT should
be written between calls to gmux_index_wait_ready and
gmux_index_wait_complete (i.e., the new index protocol must be
followed). If this is not done correctly, the indexed
gmux device only partially accepts writes which lead to problems
concerning GPU switching. Special thanks to Seth Forshee who helped
greatly with identifying unnecessary changes.

Signed-off-by: Bernhard Froemel <froemel@vmars.tuwien.ac.at>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/apple-gmux.c