aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOrlando Chamberlain <[email protected]>2023-03-03 22:28:40 +1100
committerHans de Goede <[email protected]>2023-03-16 11:02:00 +0100
commit90caf1dfe9efb727874bcafd30fefb0807cb7670 (patch)
treec9aca0c95e77949fcab124a62d0d5c7320b1f79a /include/linux
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
platform/x86: apple-gmux: use first bit to check switch state
On T2 Macs with MMIO gmux, when GMUX_PORT_SWITCH_DISPLAY is read, it can have values of 2, 3, 4, and 5. Odd values correspond to the discrete gpu, and even values correspond to the integrated gpu. The current logic is that only 2 corresponds to IGD, but this doesn't work for T2 Macs. Instead, check the first bit to determine the connected gpu. As T2 Macs with gmux only can switch the internal display, it is untested if this change (or a similar change) would be applicable to GMUX_PORT_SWITCH_DDC and GMUX_PORT_SWITCH_EXTERNAL. Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Orlando Chamberlain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions