Luke D. Jones 609b3670c2 platform/x86: asus-wmi: add safety checks to gpu switching
Add safety checking to dgpu_disable, egpu_enable, gpu_mux_mode.

These checks prevent users from doing such things as:
- disabling the dGPU while is muxed to drive the internal screen
- enabling the eGPU which also disables the dGPU, while muxed to
  the internal screen
- switching the MUX to dGPU while the dGPU is disabled

Signed-off-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230630053552.976579-7-luke@ljones.dev
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-07-12 17:01:54 +02:00
..
2023-06-30 14:50:00 -07:00
2023-07-10 14:41:29 +02:00
2023-06-30 14:50:00 -07:00
2023-04-25 18:32:43 -07:00
2022-12-12 13:38:17 -08:00
2023-03-27 16:10:20 +02:00
2023-03-27 16:10:20 +02:00
2022-12-12 13:38:17 -08:00