Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2561997lqz; Wed, 3 Apr 2024 01:29:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwraBQ1c+SXw98JaMrDfhaL7ZraJVMSZwr6SyMf4pj9eF9JU3d/SEHtgzkYBylGBJTV1h42rkzkkDiFbkcrccZ5Ma70+KPibD/Fp+hhA== X-Google-Smtp-Source: AGHT+IHgq2Z3JiLI76ZcHoPBSMHR7No8KSTBZqroSoCp0AcPAsX0zDzRHwnYTf+02BbH9O+GKFbA X-Received: by 2002:a0c:e7cc:0:b0:699:23be:17c3 with SMTP id c12-20020a0ce7cc000000b0069923be17c3mr2991601qvo.32.1712132967525; Wed, 03 Apr 2024 01:29:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712132967; cv=pass; d=google.com; s=arc-20160816; b=KcakC44bUid68lskE7gLJC4zexjHGHbHhwC5JlX+PJOhfBM9t38xlLnVrI/fcD6AlF tSz2qbqMzm0R1+Q7bqss7giUYxsbTMF8peSSuiuwK5johAkveKUkPH7fsH7GPTb1ayXB GxSrAJMW1BL2f8HHBRJ7Tn6SeuSVOEQZyOcy5yxyt3wl+COVosiNIDM3CaiVc/xtv8mX WFlJ/0/aKmfYu0tROHFR24DunDb57h0c995gxLonePOaKfAyxpjWQZEO9/iTWZitioLy cRr5f2wie2obALr3pRxo700iqEk3+cavgxTVo5A/M/9LGiPufhvdndSlvk74OUlCE7AN xcvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:date:from :dkim-signature; bh=iHnHUhmFxXYrB8WNbaN9lmoPnNLmjzTPqH8qt/IVteU=; fh=ggt4NDDC1IIy5anG0PzvNkYOxrn5PKKly64kWR95Kew=; b=qG9PJ9zTDr8MMHAvXgweAQXWu2C0KCl6XLNSCiKJmlnFc1fttLY2xrWN19GIj0gISE bnzupJ7r8uYeNk4hVD4vndi18snYs2gRlsFXhKyq9TJanZbtEfmlRq+shepTMwWYV8fk 7yXViorREUqyEYmspc0mTi3jfWl8HnuuzgJ1wpz4rgssGQTLliFPjppX+ef1rNjl3Msm GmuAsktvOrwQ/1oSRmQ+oVvISEW0Nz/Igi6KjmRGTj1HcyEP9t5W9AK8uUFV/3buCDrs 8u6CsZQhH4IJCLjF3YJjgbTHtCXZQXucGkmLymbtpz+4Msi8quPicB/SYJ2/Wf/B89PH pY7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ll5hSGia; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-129326-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t9-20020a0cea29000000b0069926b225a2si1051327qvp.607.2024.04.03.01.29.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129326-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ll5hSGia; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-129326-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 195891C20E71 for ; Wed, 3 Apr 2024 08:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512E1129E7F; Wed, 3 Apr 2024 08:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ll5hSGia" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 0EAFF6F524; Wed, 3 Apr 2024 08:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712132602; cv=none; b=t3vZ8E4RiOfH5A/OYveTFObZF8qFMSgWMO8+pPSZh6bX1Pv5GHYsnhZzB9LGt3ZGpAS+qI0Sma3yTNfmxW0cQ0pjgXX176TDZN1hGHCfRUwTwA4qKStCkFak9710EU2BQnNC5bf/XuLQF7aISlOJMD/a+c6JHn/0S81qGpt6Ce8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712132602; c=relaxed/simple; bh=3UEaKcNQCsquDKRqA9/0D7BIcxSP6v8eFK/FMp1INVc=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=nN+Mpk4ygjAHlBfDhA8IOMq76CNH+oHu0Oa1JomXrMIMRmd5bWgGiqeJTPCmm15U/U0jx1GvEVS0yMWhk9nCOKnzsBsXltUlIFrpthou/8kKIY7C0IYEyZXCMayPvGIs095v7FCdYBBVVqXmW5SYYUWYYkm2Dp6PT0vEbYFmowU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Ll5hSGia; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712132601; x=1743668601; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=3UEaKcNQCsquDKRqA9/0D7BIcxSP6v8eFK/FMp1INVc=; b=Ll5hSGiaCKtHgmhOWru4tgNX0tRCcQqUmaosqH6MMhopDPlCVAqW7SOo BV/pHon2GpQILaY9JEK/2OdPVl8z39aanLGOAPz2pQhlN87pSjvmp1wep jNAAYnvnEggLHBA71aoIvRmUZTUvtryXvbt63Xo6JNu0iBwJtH48l9YNt 1Ti9F3tlpDXG3X4cBZK4sdubVQmPXdj+K13uPuSlLq1kvd9eY5sytAtpT MAffuwpXS4FL6aF+bVagWsJRMgFMMpWh3pA2FYI5ApHnz4Sj3Sa68joVQ MUKtwWjK53m1gvLc9oOazVMIT7VpbFg37ZN/O6c6hIYNVy96UWXMzEeov Q==; X-CSE-ConnectionGUID: iqaKRxWYSvi6gE/3dhz1KQ== X-CSE-MsgGUID: AJXqprGVQcKNR+f1cLpHBg== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="18791915" X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="18791915" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 01:23:21 -0700 X-CSE-ConnectionGUID: HYAhQ03pSvOjkl+4zUDbvA== X-CSE-MsgGUID: GYBqKbDeTWyCFtZFS+SXSQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="41492900" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.24]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 01:23:18 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Wed, 3 Apr 2024 11:23:14 +0300 (EEST) To: "Luke D. Jones" cc: Hans de Goede , corentin.chary@gmail.com, platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH v3 5/9] platform/x86: asus-wmi: store a min default for ppt options In-Reply-To: <20240403002917.2870959-6-luke@ljones.dev> Message-ID: References: <20240403002917.2870959-1-luke@ljones.dev> <20240403002917.2870959-6-luke@ljones.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-1375749286-1712132594=:1449" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1375749286-1712132594=:1449 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 3 Apr 2024, Luke D. Jones wrote: > Laptops with any of the ppt or nv tunables default to the minimum setting > on boot so we can safely assume a stored value is correct. >=20 > This patch adds storing of those values in the local struct, and enables > reading of those values back. To prevent creating a series of byte holes > in the struct the "_available" bool is removed and > `asus_sysfs_is_visible()` uses the `ASUS_WMI_DEVID_` directly. >=20 > Reviewed-by: Ilpo J=C3=A4rvinen > Signed-off-by: Luke D. Jones Reviewed-by: Ilpo J=C3=A4rvinen (I know it is already among the tags but I had not given it until now.) --=20 i. --8323328-1375749286-1712132594=:1449--