Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp445316lqp; Thu, 4 Apr 2024 20:06:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4TFkyMdyEiY2AMqKR251X8f9KTMiM1MCZU1hpRPeURKJehVbfIMN1d4v5Bw+tCovTAs5isPn4TIHOVsG6rHjJvGcTtR/gXOhvcYpdlg== X-Google-Smtp-Source: AGHT+IEv4UtRk43HhD2O/rx8iv+7qalSSEzjIT783J8WaBtifsc9WB2HaFxCsaKvg2UeIITmd8mv X-Received: by 2002:a17:907:6d0b:b0:a51:99ea:a9cc with SMTP id sa11-20020a1709076d0b00b00a5199eaa9ccmr80494ejc.54.1712286372976; Thu, 04 Apr 2024 20:06:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712286372; cv=pass; d=google.com; s=arc-20160816; b=gW0EkgKYEbHg7BWDeXm4uYGKxc2YA2L1c03Ab5uduuG+umqwmGOgoGTcAbzyj4jHRP sATu+7jgzlhOYvz2mul8KtoI+SfolfKMVStG+qe6W/lcsYkT7YJn/r/rpeYYJExtCq/H 8hK8SfS9d7r0ktCQp6JT9sKemo22ic3o5gYrlUQ/CXmoEM0JzNLZyiCtezRph5KLQb+c m2kHIVDgvZ5gGJoMYNvYENncqb12qfmeIGMMVc4uI3B21hgNspSG1gHw4fV840TlOaEJ 7mTsZJW+OKcn7l4ktAIRrPAd1vMjbFJCwqu4ktzR4a+IDsghFVKmEauJhaPJ8qT5diUT Vt7g== 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; bh=sr9JCzmxAGsLHgG0KTPGF7vf9Nzu8iK092Zir2rGtms=; fh=ZUON8yv4I04w5UsoejLcnuG5t0kXYyjDKRvUhxX89zQ=; b=FfOT0sjmbA45oUygE5SWvs/+iXOg9Vgc5Yk8U9UUIqQivgRM5JiJA6TfVeEGZZMUES r3cLpb5f/bohLung2HWm4IbDLysmfoXErOtVk6OYco+LBkAU+/L8i/3SW4JS2TWUT2hA m+mb/4cqbZBURQbRyPfVWCQvEpLPnZLrD/Q1/2MEccMoM5WbmE8R6jrOAnAxBY9H4lgf 57VS77ZdW+LSGK8+gDnJtAlDe2Ey4wGhPODWjSHXtn9LriAUVOg+gCgzvb9Zg4ExVW70 OapQzxsOxMe80U/fAcu/MrORuM4Jnm5r7fYFlaFxNx7YzCcn1s+8MfXctWXAm1QH/9Qn OzNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-132358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw33-20020a1709066a2100b00a4e2541005bsi266785ejc.454.2024.04.04.20.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 20:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132358-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; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-132358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu 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 B1AC11F22DD9 for ; Fri, 5 Apr 2024 03:06:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1543F1C2AF; Fri, 5 Apr 2024 03:05:59 +0000 (UTC) Received: from irl.hu (irl.hu [95.85.9.111]) (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 7795B125C9; Fri, 5 Apr 2024 03:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.85.9.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712286358; cv=none; b=ZzIEsUUtiaKOu/YE6dtF90nogvIzcxFse8bHpkFAYeSbpa+HXSMjaDBzMWbLpVZ2AanHWa3s7up2FukgYEqX+QMg381/waolzm95TmY4FRAS4e88fVbNDyzl0TVTNMOEYZ+jkDzsAtDvG5VWrAsGzEQrpenvzHGuH20J81vBAD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712286358; c=relaxed/simple; bh=8RuxM6J8Cm2RSk+vd4fvxUTuSbBohuHlixB97Gvdd+s=; h=From:To:Cc:Subject:Date:Message-ID:Mime-Version:Content-Type; b=ZNDskeumvSsftz0kLrkwHGUVYm1zXzdeVyJweikyFj8qkK2TAnm38SroFBx4/hV35hDGHO2Imc/s9qFpbJ/OiwK9yPxbuLEZl1sO40gUvpLwaVW2EaoXW8ykhawWbQFJ2INBQQLJv2bZgIS4OTCM5FEH7SlZPE51vEO4ixGberY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu; spf=pass smtp.mailfrom=irl.hu; arc=none smtp.client-ip=95.85.9.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (51b69867.dsl.pool.telekom.hu [::ffff:81.182.152.103]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 000000000006F204.00000000660F6A92.0025A893; Fri, 05 Apr 2024 05:05:54 +0200 From: Gergo Koteles To: "Rafael J. Wysocki" , Len Brown , Ike Panhc , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Henrique de Moraes Holschuh Cc: linux-acpi@vger.kernel.org, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Gergo Koteles Subject: [PATCH v4 0/3] switch platform profiles with Lenovo laptops Date: Fri, 5 Apr 2024 05:05:27 +0200 Message-ID: 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: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 Hi All, This patch series adds a platform_profile_cycle function to the platform profile module, which allows modules to easily switch between the enabled profiles. Use it in ideapad-laptop and thinkpad-acpi modules. Best regards, Gergo Changes in v4: - move the cycle to the platform profile module where it can switch between the enabled profiles - add a patch to use it in the thinkpad-acpi module Changes in v3: - add dytc_profile_cycle function Changes in v2: - only switch platform profiles if supported, otherwise keep the behavior. [3]: https://lore.kernel.org/all/7c358ad8dd6de7889fa887954145a181501ac362.1712236099.git.soyer@irl.hu/ [2]: https://lore.kernel.org/all/797884d8cab030d3a2b656dba67f3c423cc58be7.1712174794.git.soyer@irl.hu/ [1]: https://lore.kernel.org/all/85254ce8e87570c05e7f04d6507701bef954ed75.1712149429.git.soyer@irl.hu/ --- Gergo Koteles (3): ACPI: platform-profile: add platform_profile_cycle() platform/x86: ideapad-laptop: switch platform profiles using thermal management key platform/x86: thinkpad_acpi: use platform_profile_cycle() drivers/acpi/platform_profile.c | 42 +++++++++++++++++++++++++++ drivers/platform/x86/ideapad-laptop.c | 7 +++-- drivers/platform/x86/thinkpad_acpi.c | 19 ++---------- include/linux/platform_profile.h | 1 + 4 files changed, 50 insertions(+), 19 deletions(-) base-commit: 39cd87c4eb2b893354f3b850f916353f2658ae6f -- 2.44.0