Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3048462lqz; Wed, 3 Apr 2024 17:17:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUn2n1UWb34SW/98yFg1G8B2wqxA8dNQXsuKaYZ6ke/ZphsTAh+UItMR/mrxngLmoaYz9v1vc2FzbPINcBEbmenqAxvO0UEJ8clzs9nCg== X-Google-Smtp-Source: AGHT+IG713Nt/W7pviBrjHPDxau0TsMwbMnVVIOj31cQQaEo2lBow6YY1EArGH9UOHHi2ssKway9 X-Received: by 2002:a05:6870:2198:b0:22e:a78c:85ec with SMTP id l24-20020a056870219800b0022ea78c85ecmr1024707oae.38.1712189835683; Wed, 03 Apr 2024 17:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712189835; cv=pass; d=google.com; s=arc-20160816; b=vHjBIAo5l1AON7x3vTnW1v8b/qVNAJt7I4IRJAKrq8pwvp6y7Nuh/qSjgdetRXm1Su ZKNyLTY9AuKDfELRFaBqKD1rpMUlIykTxQb9Gn5v11BG6uvjNI4VRJsI3i7EHDj/M44n ouvwtTA8DVAtLgszWSimuE1xGc3875CmE7duQ6gPbKjoQtmJ18F95JUQ1mTdRgmWgNMv Z2vb7LrtrgpvI5EABmBVVCAx9rFzL8l+wDX/zty51tXLUdcpR9+I2OPAh334OeTyxfR0 dYycp2bJdTXk4RXylhI2yCAKIJtR5X1FXCIJhpORysxfQsjUgL2XjdeQrUqCADCm9YZj DvnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:feedback-id:dkim-signature:dkim-signature; bh=9pePwZQdFiMLHLTOsr0Ukt/rDRUDL+dja2g60K6h1GI=; fh=wDrqx0f+299Z9E/ydfQE0sLKgm4EkrYz7I1GVgXm5co=; b=B1s7metV8WtbvXlFLdOV2z/FCg1RkSZVHUnBd1plXuUOp3m9Z7a9oEWLbhlnPOwUBh gOKrg3h490jjoyDq6UzVp5WBrgwiqPgqguBzhLMcL899aogBoz+USiBG7uveu1niylQa lCE8rXzuO2I469vRGmzPqt3vFOTbet0fVyXWpiI+JJkFcLPk/du9fg/yt55FgCzbGubM 3R9D4Lben3RDu2Tv43ebtKNV/Zm4dJTAraBsJ1WUkzF3etWfWHRHWnJRpk79DxOproNE 17h9r7OlEp0clia/pvW4UHlmMPGHgqAgHnmFBjMInucAwHdPdXWXWHLOhpllFZHlH2YX BeOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=qeAnu6Cc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Qf48OQxL; arc=pass (i=1 dkim=pass dkdomain=ljones.dev dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-130764-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130764-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e8-20020a654788000000b005dccfa9a75asi14033314pgs.845.2024.04.03.17.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 17:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130764-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=qeAnu6Cc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Qf48OQxL; arc=pass (i=1 dkim=pass dkdomain=ljones.dev dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-130764-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130764-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 290D128C13C for ; Thu, 4 Apr 2024 00:17:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0586803; Thu, 4 Apr 2024 00:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ljones.dev header.i=@ljones.dev header.b="qeAnu6Cc"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Qf48OQxL" Received: from wfout8-smtp.messagingengine.com (wfout8-smtp.messagingengine.com [64.147.123.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7A661C36; Thu, 4 Apr 2024 00:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712189827; cv=none; b=qMmhmkdxfWd75UdYx7akr+vLoWVNeRDovx37vA/M+ZdM2CxiS3nyyLL7Hkz2BLdJUQwb4E8kPYUTjx/lZDTAVKZAy9S3AG3+hEKSxGbcHRukVFXJDdF2piuXpNnL/gNuDiophXORqebL1MlUdSfAXZ9gykrc5a9yyBc2Snpqoa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712189827; c=relaxed/simple; bh=1NV3k0jBNoLNvWDnYUr5wMabBSYCJhk5lMMYMr/hPts=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QFtKN29Qy+/hF5hzmn3lm1HaxQ0vrClv0aCE5K+fi6DepN0Q9FRJb38xJVk1XEaD3Yq6S2oYxvQLDsDsgPYzMeiOhEI0LvEc21jqVG9hJc1sg9T7El+K0BCbtOCfgb4YqLao5w5DW9LQFInwsv7+oAyo09mrpV4fmQygd3baCc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ljones.dev; spf=none smtp.mailfrom=ljones.dev; dkim=pass (2048-bit key) header.d=ljones.dev header.i=@ljones.dev header.b=qeAnu6Cc; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Qf48OQxL; arc=none smtp.client-ip=64.147.123.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ljones.dev Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ljones.dev Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 581FC1C00101; Wed, 3 Apr 2024 20:17:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 03 Apr 2024 20:17:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1712189822; x=1712276222; bh=9p ePwZQdFiMLHLTOsr0Ukt/rDRUDL+dja2g60K6h1GI=; b=qeAnu6CcG8gNDDoQ5s ble7ZmU1bOvCUUYCtE0nrWxw6crXpR0SQdVYKsy1jsr9cKa0meik+W/LEUl6u1O/ Fu4o08xm4bacXGx2agnKNdT6GCA+hYR+797NOp5osUEvrE+tuFaFSrcubU1+STir fWtLMN9zEY+zKbd6MVDjAN0QPQZ89E2K0RwjavotiVpQmIRqD4+a2dNgMScBKgRO /eGulP+d8c0itODimqA54+hSUJpaLJF5ag0NU9qA1SG5NDIcdkSOk1aN2bMFTDIG r25V+nxjT3lQoFgnFOmQFtCRht34/wMcSRdaRO7VBax6qXNPcIfOwbsG3wWkO2uk S7bA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1712189822; x=1712276222; bh=9pePwZQdFiMLH LTOsr0Ukt/rDRUDL+dja2g60K6h1GI=; b=Qf48OQxLA1wFqYjbSZISF8wsO1Jd3 oURcaAvJvvjNJePiHZePju6+EbeA4YVjMl52QncF3TiiKU29IkyYCPAT673BRcZT OaPWg8Ak6kdc2w1D8UD/u/sCFN0yg4wy40KW6dgHXIlaYIV1PcDUeGmjLCqHy+mh F6dilQTUXLPKnHWlaP0tyMgjT/54QCTam2cm81snAiEGGHrT/nqa2Pcnm+2nH5JY eMJm7w/q78ItLS+IGSV0BdvH14uzIW+Qm0GBLbHjFhHMKHx9h6T6knRCJy9ul1hi c74TGRPMDCKgMN42fLuhHrWboxZ9SvYL5gOJjU0Mw6XrHfeIQ3T/QF9ZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefjedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpeejtdfhheffkefhteekleduteegud fgleekheejuedvueefvdeltdehuefgveekkeenucffohhmrghinhepkhgvrhhnvghlrdho rhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplh hukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Apr 2024 20:16:59 -0400 (EDT) From: "Luke D. Jones" To: hdegoede@redhat.com Cc: corentin.chary@gmail.com, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, "Luke D. Jones" Subject: [PATCH v4 0/9] asus-wmi: add new features, clean up, fixes Date: Thu, 4 Apr 2024 13:16:43 +1300 Message-ID: <20240404001652.86207-1-luke@ljones.dev> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch series touches quite a few things along with adding support for some new features. - Add support for mini-LED on 2024 ROG lpatops - Add support for the gpu MUX WMI call on Vivobook laptops - Add support for the POST boot sound on ROG laptops - Add support for MCU power-save (ROG Ally only, saves more power on suspend) - Store written values for ppt_* features - Small formatting cleanup - Small fixes to cleanup struct holes found with pahole Obsoletes: - https://lore.kernel.org/all/20240320011442.11608-1-luke@ljones.dev/ - https://lore.kernel.org/all/20240310065408.63703-1-luke@ljones.dev/ - https://lore.kernel.org/all/20240310061715.16531-1-luke@ljones.dev/ - https://lore.kernel.org/all/20240310055312.11293-1-luke@ljones.dev/ - https://lore.kernel.org/all/20240310233722.30884-1-luke@ljones.dev/ Changelog: - V1 - Mini-LED: use asus_wmi_get_devstate() and not asus_wmi_get_devstate_simple() - Fix dates in Documentation/ABI/testing/sysfs-platform-asus-wmi - Remove _available bools and rely on devid for: - gpu_mux - mini_led - kbd_rgb (TUF RGB LED) - V2 - Fix formating on select if/else blocks shown by checkpatch.pl - V3 - mini-led patch: - Add error handling - Add defines inplace of "magic" numbers - Remove outdated comment - Clarify existing comments - post-sound patch: - Add missing newline - min-default-ppt patch Use `%u` instead of `%d` in sysfs_emit() - V4 - mini-led patch: - Minor formatting cleanup Luke D. Jones (9): platform/x86: asus-wmi: add support for 2024 ROG Mini-LED platform/x86: asus-wmi: add support for Vivobook GPU MUX platform/x86: asus-wmi: add support variant of TUF RGB platform/x86: asus-wmi: support toggling POST sound platform/x86: asus-wmi: store a min default for ppt options platform/x86: asus-wmi: adjust formatting of ppt-() functions platform/x86: asus-wmi: ROG Ally increase wait time, allow MCU powersave platform/x86: asus-wmi: Add support for MCU powersave platform/x86: asus-wmi: cleanup main struct to avoid some holes .../ABI/testing/sysfs-platform-asus-wmi | 26 ++ drivers/platform/x86/asus-wmi.c | 409 ++++++++++++++---- include/linux/platform_data/x86/asus-wmi.h | 6 + 3 files changed, 355 insertions(+), 86 deletions(-) -- 2.44.0