From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5C0BC4320A for ; Wed, 18 Aug 2021 19:08:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D31AC61103 for ; Wed, 18 Aug 2021 19:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbhHRTIh (ORCPT ); Wed, 18 Aug 2021 15:08:37 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39991 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233345AbhHRTIU (ORCPT ); Wed, 18 Aug 2021 15:08:20 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8B60C5C00A8; Wed, 18 Aug 2021 15:07:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 18 Aug 2021 15:07:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=eEgrABKc0YaPQCAPJ dueUZRUNAq3v/sTJPZXnT1m/8A=; b=rDrfqOtn2Spg4afPEjlWbPnTAadS+9wUI mAW1I/xMMUoMif7lG3kadvdKf5jabnjQf/m3ERijq0XCXJDk9pgAzZmr4ceoexvk EC5KthnIio1P1QutnDZC6oT+JOTmarJLyt+7qF02m9GJSjzELl8TCuQ/toFvZ4BV itHDuntJENPQLHl8Z6eWfwazHMetfzjEr95fP/zGEBwF8J1D+c4e6M6mg3POrDQS lMYjMwhKbge3D/dDZ9NHYXY7zIXkaLGSjj3VhzXs+R11BH0FOo65e+chvGwLVInj FXGjW5rccld+l4UHKH2CkcJZB7YKYQNRhM4WAe6Yzivm5iMESr7Zw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleehgddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhjohhn vghsrdguvghvqeenucggtffrrghtthgvrhhnpeelffelhfeltdfhtdevuefgveeuueekge etiefgiefhgfejvdetvdeuvedthfdvkeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Aug 2021 15:07:38 -0400 (EDT) From: "Luke D. Jones" To: linux-kernel@vger.kernel.org Cc: hdegoede@redhat.com, hadess@hadess.net, platform-driver-x86@vger.kernel.org, "Luke D. Jones" Subject: [PATCH v5 0/1] asus-wmi: add platform_profile support Date: Thu, 19 Aug 2021 07:07:30 +1200 Message-Id: <20210818190731.19170-1-luke@ljones.dev> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog: - V2 + Correctly unregister from platform_profile if throttle_thermal_policy fails + Do platform_profile_notify() in both throttle_thermal_policy_store() and in throttle_thermal_policy_switch_next() + Remove unnecessary prep for possible fan-boost modes as this doesn't match expected platform_profile behaviour - V3 + Add missing declaration for err in throttle_thermal_policy_switch_next - V4 + Update some return codes to use -ENODATA + Switch pr_info() to dev_info() + Restructure some if/else blocks + Add "select ACPI_PLATFORM_PROFILE" to ASUS_WMI kconfig - V5 + Remove unrequired include asm-generic/errno.h + Collapse if blocks with only one line (remove parens) + Remove unrequired throttle_thermal_policy checks + Remove leftover comment from previous versions Luke D. Jones (1): asus-wmi: Add support for platform_profile drivers/platform/x86/Kconfig | 1 + drivers/platform/x86/asus-wmi.c | 130 +++++++++++++++++++++++++++++++- 2 files changed, 127 insertions(+), 4 deletions(-) -- 2.31.1