Cleanup some leftover code after reverting:
- 7e7a5dee49732ed01a3a17c9a3edf027fb9457fe
- e0894ff038d86f30614ec16ec26dacb88c8d2bd4
This is part of some hacks that are no-longer required when users have
updated their MCU firmware to the latest version:
- Ally 1: v319
- Ally X: v313
Signed-off-by: Luke D. Jones <luke@ljones.dev>
---
drivers/platform/x86/asus-wmi.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 27b9fa2c29ae..2c4094004549 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -274,9 +274,6 @@ struct asus_wmi {
u32 tablet_switch_dev_id;
bool tablet_switch_inverted;
- /* The ROG Ally device requires the MCU USB device be disconnected before suspend */
- bool ally_mcu_usb_switch;
-
enum fan_type fan_type;
enum fan_type gpu_fan_type;
enum fan_type mid_fan_type;
@@ -4773,8 +4770,6 @@ static int asus_wmi_add(struct platform_device *pdev)
asus->egpu_enable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_EGPU);
asus->dgpu_disable_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_DGPU);
asus->kbd_rgb_state_available = asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_TUF_RGB_STATE);
- asus->ally_mcu_usb_switch = acpi_has_method(NULL, ASUS_USB0_PWR_EC0_CSEE)
- && dmi_check_system(asus_ally_mcu_quirk);
if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_MINI_LED_MODE))
asus->mini_led_dev_id = ASUS_WMI_DEVID_MINI_LED_MODE;
--
2.46.1
Hi Luke, kernel test robot noticed the following build warnings: [auto build test WARNING on amd-pstate/bleeding-edge] [also build test WARNING on linus/master v6.11 next-20240927] [cannot apply to amd-pstate/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Luke-D-Jones/Revert-platform-x86-asus-wmi-ROG-Ally-increase-wait-time-allow-MCU-powersave/20240926-175641 base: https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git bleeding-edge patch link: https://lore.kernel.org/r/20240926095344.1291013-4-luke%40ljones.dev patch subject: [PATCH 3/3] platfom/x86: asus-wmi: cleanup after Ally quirk reverts config: x86_64-rhel-8.3-func (https://download.01.org/0day-ci/archive/20240929/202409290438.IYVkP4i0-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240929/202409290438.IYVkP4i0-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202409290438.IYVkP4i0-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/platform/x86/asus-wmi.c:148:35: warning: 'asus_ally_mcu_quirk' defined but not used [-Wunused-const-variable=] 148 | static const struct dmi_system_id asus_ally_mcu_quirk[] = { | ^~~~~~~~~~~~~~~~~~~ vim +/asus_ally_mcu_quirk +148 drivers/platform/x86/asus-wmi.c 0f0ac158d28ff7 Luke D. Jones 2021-10-24 147 d2dfed310aae07 Luke D. Jones 2024-08-06 @148 static const struct dmi_system_id asus_ally_mcu_quirk[] = { d2dfed310aae07 Luke D. Jones 2024-08-06 149 { d2dfed310aae07 Luke D. Jones 2024-08-06 150 .matches = { d2dfed310aae07 Luke D. Jones 2024-08-06 151 DMI_MATCH(DMI_BOARD_NAME, "RC71L"), d2dfed310aae07 Luke D. Jones 2024-08-06 152 }, d2dfed310aae07 Luke D. Jones 2024-08-06 153 }, d2dfed310aae07 Luke D. Jones 2024-08-06 154 { d2dfed310aae07 Luke D. Jones 2024-08-06 155 .matches = { d2dfed310aae07 Luke D. Jones 2024-08-06 156 DMI_MATCH(DMI_BOARD_NAME, "RC72L"), d2dfed310aae07 Luke D. Jones 2024-08-06 157 }, d2dfed310aae07 Luke D. Jones 2024-08-06 158 }, d2dfed310aae07 Luke D. Jones 2024-08-06 159 { }, d2dfed310aae07 Luke D. Jones 2024-08-06 160 }; d2dfed310aae07 Luke D. Jones 2024-08-06 161 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
© 2016 - 2024 Red Hat, Inc.