Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp6058830rwj; Wed, 21 Dec 2022 10:11:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuwpuur9MpmnrrEBNzGXtEJqMJ6PnroMJZk/7vqY3M5BTwV8MZZWafUmE6fwVRV+oatjlL8 X-Received: by 2002:aa7:db19:0:b0:479:400a:d943 with SMTP id t25-20020aa7db19000000b00479400ad943mr6092330eds.28.1671646277558; Wed, 21 Dec 2022 10:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671646277; cv=none; d=google.com; s=arc-20160816; b=X09JfPqofN8OKC+NZ63wfWkXBIcXaCCy8ofTZyEyE/71a5oyPmcILC4WSI14xKz8ZE i5F/Q6N2+JZkt4p+t0mMEbDW3mnbzRHVrr77vUJPNZwbjwGAGD/DIkGKR0CnxSKf6MJO a1OVQwfdN8wdfiNWPyqYgjbxmVIHF9d7cirtkPZsTAJWzncn8PKONEq8v1y+6TCcWiit c5tw78uhJM4ukIp9MPq2TEt9nkkRooJaoHhERDE49KH/PbdfY/yZLv9NRWjANWr2ntwz sVWf9StzMMhpXR1CGJ3wcFZsWeynJCaLRzI0/8rdPz09+bAehhHQhWSDR+8eOXgt3yzH oB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=alvgn9bHbveO6ux4LL3dt2IoldaL2h4BJ09bINXi5Ec=; b=IE0eWv6YjZNS/5AzJasilH3O6K5Kzuw1tQpuG5TTmG62tRO31gtkcVI7ZJgDeJSeyd kdrZVXl6gBH/haF96q/uuCc+qzFT7Ct5tguc/ObAvqkoxTMCOTCcS3YfuE9lm+RRyBby UFU6TQ1mwt2GHbzPNY0sXStMmCX32kaE2zjQRh3mJ96W2CuVqSICHjhhuadoIpagnp+p t1szGWSUhAxTs93YgdnZfYKya4Y3rNvgm4cINNMzC7cpGilLaQuOfZqzzEw0hZvWO/XO aosAeI4NK1kbGu4o5RE3OoBXYs+s5KBemD45uOCTaTSvtUpDZxY4myCWy/Gs/conW6aN OC7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=eF8CmCCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a05640205ce00b0047c0eb653e6si6227530edx.247.2022.12.21.10.11.01; Wed, 21 Dec 2022 10:11:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=eF8CmCCF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbiLUSAF (ORCPT + 68 others); Wed, 21 Dec 2022 13:00:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiLUSAB (ORCPT ); Wed, 21 Dec 2022 13:00:01 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C8E24BC2; Wed, 21 Dec 2022 10:00:00 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1671645598; bh=6GqkRUcKuJwMJo72qVD9f/Gx/0oC7Cwj+9937ZraC8U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=eF8CmCCFfRQRyq96H5YPy2zQhG11HnEGg9Zz+Kkq6PXoPld3lna9OQhzM5XkmDaFq vgg5So5htnyqdBd/0io2IM+6KLg8JZhFtFf+0OZj+wSc1Cf8/dYdplUm41IKXxX40D PXa4T6I+dcSseQCo6xgs+lKrR1OPCIgAgnHQOc5g= Date: Wed, 21 Dec 2022 17:59:49 +0000 Subject: [PATCH 1/3] platform/x86: asus-wmi: Add quirk wmi_ignore_fan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: <20221221-asus-fan-v1-1-e07f3949725b@weissschuh.net> References: <20221221-asus-fan-v1-0-e07f3949725b@weissschuh.net> In-Reply-To: <20221221-asus-fan-v1-0-e07f3949725b@weissschuh.net> To: Corentin Chary , Hans de Goede , Mark Gross , "Luke D. Jones" Cc: acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas =?utf-8?q?Wei=C3=9Fschuh?= X-Mailer: b4 0.11.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1671645591; l=1566; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=6GqkRUcKuJwMJo72qVD9f/Gx/0oC7Cwj+9937ZraC8U=; b=2tJc6DdqWrSkjnXYGSw8yaqYHBQu5/Z3B5QJ0VkOvuyF1+Qm8E8EBzmDmgCLGOBQQo/uNfLdaaJQ RaPrQD+8BZPt5OmCmoDeI3lPts7nCNe+oZN9MiwYEqlSIQdXPC5R X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some laptops have a fan device listed in their ACPI tables but do not actually contain a fan. Introduce a quirk that can be used to override the fan detection logic. This was observed with a ASUS VivoBook E410MA running firmware E410MAB.304. Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/asus-wmi.c | 4 +++- drivers/platform/x86/asus-wmi.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 6f81b2844dcb..4a289ca7e76c 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -2243,7 +2243,9 @@ static int asus_wmi_fan_init(struct asus_wmi *asus) asus->fan_type = FAN_TYPE_NONE; asus->agfn_pwm = -1; - if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_CPU_FAN_CTRL)) + if (asus->driver->quirks->wmi_ignore_fan) + asus->fan_type = FAN_TYPE_NONE; + else if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_CPU_FAN_CTRL)) asus->fan_type = FAN_TYPE_SPEC83; else if (asus_wmi_has_agfn_fan(asus)) asus->fan_type = FAN_TYPE_AGFN; diff --git a/drivers/platform/x86/asus-wmi.h b/drivers/platform/x86/asus-wmi.h index 65316998b898..a478ebfd34df 100644 --- a/drivers/platform/x86/asus-wmi.h +++ b/drivers/platform/x86/asus-wmi.h @@ -38,6 +38,7 @@ struct quirk_entry { bool store_backlight_power; bool wmi_backlight_set_devstate; bool wmi_force_als_set; + bool wmi_ignore_fan; enum asus_wmi_tablet_switch_mode tablet_switch_mode; int wapf; /* -- 2.39.0