]> git.baikalelectronics.ru Git - kernel.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)
commit4b836744f009631bafc4608ed2fd03f6d55c7d2b
tree6ffd57a7eba842cd14d18479f540fefabe9eb44f
parentc66a4572b4c6944468779c6b0c2341a504a5a1d4
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