Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2455782lqz; Tue, 2 Apr 2024 19:57:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV//JunFOcuJBPBRzZEN/KZrJtaqnvrOmos/ActA6Bh1wqx/r7IRkRpk9yzebBQHpwsgw82XKy3uEfu47u4F8Cmebhds8cFcjUSQ16bag== X-Google-Smtp-Source: AGHT+IGjZdLuPaG2tiTG183e2uiltoORWIaL6kOQsFaLdSqtycHpZwkZvDxctXSBGvz+UwK+jg8H X-Received: by 2002:a17:906:2b5a:b0:a4d:f673:7f30 with SMTP id b26-20020a1709062b5a00b00a4df6737f30mr992902ejg.11.1712113045800; Tue, 02 Apr 2024 19:57:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712113045; cv=pass; d=google.com; s=arc-20160816; b=jbq8aSgbMVxWy17ndyh895IVwiuZLgV/B1ty3OKpJk1JeQFrOXVTd9rN32MAKLNPh3 LIdl6LTJfHPkHXl8+NmwAtKzVghiJkP82pXq5hAwgPh08fhXAUG8+N70W1UjwSF3YzFZ jAsQyVIWRNrjVu5aF74zKDI3UT1ChChdshyFt8LQTsnMZ1hucSTO7lUvrBnebKA9H0fW Wds5e+WW6JLo6uuW0n4LvYxkNhUURg3hD4NLhihas6PASXknSUQ3lY0yK6Pcu25j79zY dka1vOCm/4MBMOPuCg7/7QYsGO5xpJOwtZe8DyOHGAM7VWz8wcTpGmxKbPWMjmAEtrto 7bVQ== 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=E86ynlUqqzdKHWpmhjpcRgll2uxiDCjB/PLuV4iy0rk=; fh=wDrqx0f+299Z9E/ydfQE0sLKgm4EkrYz7I1GVgXm5co=; b=I7BuFLjLgVOjSqgBDAydGnQeleBLmymdEpCUgTWQuVx0eA3anbpPnY0zOI9dl18oq5 KEPAjXVDuRqMqsp3KLvd0kUgpdzS8DTFmfAGPRXbpu/YW4c48FaENfAPpJcHo9phk2w1 yVf5AKJcgvWTY1VvUPKk9Gh6ZGUEO/xLFRZgq6Ckw8E4c72WMVzmKw/wUvOKZ8oolZPP gWtxKEkD18e80pwdcsrtjBtFBXCitRu4V+0u9TfP5IzGtZKp9E4yCaatmutfzoxHyHKe 4zHaObymwBHyhPbi+37yD22viPYHmB4X74sPqBiu50Ng1dz9DgO3sVINFP7HVJJXLJuv e1RA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=uBSGR3H6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZG0oODTV; arc=pass (i=1 dkim=pass dkdomain=ljones.dev dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-128873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128873-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p13-20020a1709060dcd00b00a4e2ad16c47si5499572eji.947.2024.04.02.19.57.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 19:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=uBSGR3H6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ZG0oODTV; arc=pass (i=1 dkim=pass dkdomain=ljones.dev dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-128873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128873-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 808321F28971 for ; Wed, 3 Apr 2024 00:30:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94B182F32; Wed, 3 Apr 2024 00:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ljones.dev header.i=@ljones.dev header.b="uBSGR3H6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZG0oODTV" Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (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 AA54D4C8B; Wed, 3 Apr 2024 00:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712104170; cv=none; b=AoufDK8g8GJPf/ahYn8ZzP+IuOsWkt8s6j9ddZQbUtjtdxbiPIM0iAVODzhtB+rgA5re4XiIVos8wdOCHt3J6cRo6ISjQt3sEskIVQSeCep7BFPvMVZ+lFFww9tFisXGpoui5B6m/u8mWQb2UeV7GnSGAI13OPGaWyRTkH2PVhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712104170; c=relaxed/simple; bh=necNBAiT4uEBb53LhnrSQkwDeLiPSBjZDkJk25KLwCU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=L3td2HkBy87za+7I/6dIT+/QuosewL5FVBbAEd9wuIV+UgdhZZm+OG9zJgwEa0T8Nn6RLM6cYqXYKYQllHOf3GEGkwyBfAGkQLhGipMxNwyny8zTv6PKZt1Dn0jWw2FHaulHOiVw5nuc6T7loIfniR3ZZ+8vfi8L2zlNaK4IUJo= 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=uBSGR3H6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ZG0oODTV; arc=none smtp.client-ip=103.168.172.156 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 compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B3A89114010F; Tue, 2 Apr 2024 20:29:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 02 Apr 2024 20:29:27 -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=1712104167; x=1712190567; bh=E8 6ynlUqqzdKHWpmhjpcRgll2uxiDCjB/PLuV4iy0rk=; b=uBSGR3H6AmElB2ukVE 31LWBMEoqqzLxW4iiMPz+G4LYqaDy5YBRvjOs1BP4xVkxaRO6V3zOhHhaSGemjDW wsQfSxy2YRwAMLufodOaK44wsdLmVIkZMs3zkAkFzKsCpgU8t33P2zb/Qt26xYoy akH/HgLsUQYwYdiZIgvOnr27GCJ4KZJzt3NCmzrFRt3J9coNdSuAiABAAnsM14jN JVzPFlQ7N3iilZKxPkWYf9ZOpZRwuZF/FqrJbLSSre0nN9qzXBV+0AU1QuxtHpHN 9wixpDWdksa42sY8kaMUSd5nnGcRXqktUP+qoUisBXcMHB11MSGycKqUnsnzeo/r mVlA== 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=1712104167; x=1712190567; bh=E86ynlUqqzdKH WpmhjpcRgll2uxiDCjB/PLuV4iy0rk=; b=ZG0oODTVBJiQ9FYGzynnLK6JHKlBc cyd8jcImeAaQDk0Mgk3hYdF2wfQn+cB6bZaNCoXjiwHNUrkgLw69ezK6Z+DVtsSo 8CtohfW+0HoOTu/BoXKpijvceCacQrZJjpNocSY3Mc9BCt6kbDRTL0X5ThhCyzsC C7hRausfC89HCdzmvODDgbDp4HVEqCBTfUQjZBjIqW+MUSYMyjT5IgPD257dvrKq DK/tO+OPqPK6RPyyQXjlWiF+MFlIolPJKqa3FPdq9zmi6vJ1zRtDBHiqooZCCbI+ tydJm0x5QEN7ZiEApfan0t5f0jW6E4FnAhSjDFRSbd09/vrnwm4l/NPgw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeffedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpeejtdfhheffkefhteekleduteegud fgleekheejuedvueefvdeltdehuefgveekkeenucffohhmrghinhepkhgvrhhnvghlrdho rhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplh hukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Apr 2024 20:29:25 -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 v3 0/9] asus-wmi: add new features, clean up, fixes Date: Wed, 3 Apr 2024 13:29:08 +1300 Message-ID: <20240403002917.2870959-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() 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 | 407 ++++++++++++++---- include/linux/platform_data/x86/asus-wmi.h | 6 + 3 files changed, 353 insertions(+), 86 deletions(-) -- 2.44.0