Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1632593lqa; Mon, 29 Apr 2024 14:26:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXnJ7KH32JP4N7z5q/J1F8Pt5iMJZOaoPUneVj9+0ix77PHLjr3/Oi0ylUv+tuX4l1LmpEjEMIdfZeh4g7dmeJjVZloBaSWhcC03hpXw== X-Google-Smtp-Source: AGHT+IG5pJmwX5DEcjuIyn1iTGFg7E4Pa9afO8X0S+Qtuz2m+S/FF55aU/4WhOucAQbdwZRz5Z1s X-Received: by 2002:a17:90a:654c:b0:2a0:215f:dc9c with SMTP id f12-20020a17090a654c00b002a0215fdc9cmr10819026pjs.35.1714425975070; Mon, 29 Apr 2024 14:26:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714425975; cv=pass; d=google.com; s=arc-20160816; b=V1DLFjtDVwXp/eCXLVSsVHIoqhapQdgU8tae/u0oYdY879zYit2C27eE/lWhP8S7YZ pBSBiSRh1/fe2uoF4PB8zSjunWuQWJatfvBAi34wYBOBfUNolLAqlYy0I8K5dnUUixqB aOytcIA/zpXmX/3D+adDfOQjUqSGETDJx/J4haSKbQCgv/2OSJMeXzbRfg4WzkioJShb e3SpGv4qAp5fOMec34nU0g+y7cF4ScviyFTDmCQ9VLF9P9S/YEyakjvbkBhOKC4jxeIi G9m2uet77bR/SH5DpDg004aqO7RHNuU+WQnkAglKue8nhiG3VzliQ/ILb27rAmSr6DPd TBVg== 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:in-reply-to:message-id:cc:to:subject:from:date :feedback-id:dkim-signature:dkim-signature; bh=sJmpB3SmOP+OJLwp4SoU1l4+ZfNDN+uqj3tieQq4ilA=; fh=GJjxgD3rKKMl9OVYjDME9oUCk9/K3tSbqlSb8VCu/w4=; b=TZtrXOi2aAEZpI87I/p5jzb51s9Vu75e52Xt2Gud3oaJ4Bx2kApPIySs4tPPHF+xfk s/Snkp8WyZaqj3FVBKUz/s/1cnaj0K+t8IRfvvWi35ISaGpGW8RSKbehZClVONzBvwOa MR//imwNsvZ6nITOIOorQT9UP4Qlru1XcDV/lirHgzGqFIDcbJzsAE87HdwNPqqawULZ zc7fDWGleJmrgu0UlXx0uFxuvmsTi82XVUf7gECvhd8prZxRLOevgoOkcM3LPTpOukgN 7wkNsQntp30Te5oV52KAQeoK+3TMebaaxVp/nZrESJVDJDscB2xe3ljxhvzOU/xpbh9x G1Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=TP56wFuN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q365N2MQ; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-163067-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v15-20020a17090ac90f00b002b2800f6513si141888pjt.57.2024.04.29.14.26.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 14:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163067-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=TP56wFuN; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q365N2MQ; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-163067-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8AEE7B212C4 for ; Mon, 29 Apr 2024 21:22:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52C921836D8; Mon, 29 Apr 2024 21:22:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b="TP56wFuN"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Q365N2MQ" Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) (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 CB7211836C6; Mon, 29 Apr 2024 21:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714425742; cv=none; b=FhPbE+ArO5CbLe/DIgmU5tuIxcEaWVtrURBwRV9vLl7VEJL6qIAOeAdnptTg33Itzv8GWKH9ttG/i5JWABXtlx49tKw6cOFOmL/2ebygDZTD4LZ0rRPcq43210iMsLNEsh7jHCkXG72FfeVlU44kEH1cLva4yWIlD4ZhEUElrIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714425742; c=relaxed/simple; bh=TfXq4JCL/Hs/bpkpYDBRIz7T31yLLfzQJKQtMc4ciJw=; h=Date:From:Subject:To:Cc:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=RpOKxx/9nROG77jNQWzyaBkPlC50hJ+e/hlNZfKhPZHz1/JIE3SdbV7AI7Jew4SLHXVz5QgdJgvlYNorM29GA37X6gu2hjuZgnWjcHMrBDJ7y31+qc5nMArxbHNp32S0Lr9fj2iJNFtIZbu0h/GCyBFWUrVn6icAQLvJFwWAu2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca; spf=pass smtp.mailfrom=lyndeno.ca; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b=TP56wFuN; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Q365N2MQ; arc=none smtp.client-ip=64.147.123.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lyndeno.ca Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 4FFE91800124; Mon, 29 Apr 2024 17:22:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 29 Apr 2024 17:22:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyndeno.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1714425737; x=1714512137; bh=sJmpB3SmOP +OJLwp4SoU1l4+ZfNDN+uqj3tieQq4ilA=; b=TP56wFuNTGk7610MT/EaapZxL8 1YgTtUCuU4/gV2MmoguhOp4ze0XrAyx2XnypkKa6gFuWGxAwq6hMsMg9qulEfKaB ap7P87AzubbEJ2VtNvPd3+5eKD3KOJVrkD0kZUMdTOzXOmNZE524hcTRZbByNutm Ex1m67zReWM4lSRa0olnKdeW6CXMZI8KSzAAA5XNVjNbqVCiQaQZYTinPqjkWeMs i21OEXoXbw6kObW3wLYcxRc9ox+uWjPsWIlHEnryuqR6kmZbaOrcinR96h0UIGld Bt8hlwAaK801X5/7t34u7SalP7XLWnBIN0lHoIF46QsC02xcEyfzEuq7lgfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714425737; x=1714512137; bh=sJmpB3SmOP+OJLwp4SoU1l4+ZfND N+uqj3tieQq4ilA=; b=Q365N2MQAaDI79NIg93sNtJid9WamQDMmU4F1j2MzcAc vhf+xMxPgdROzQft7s0u4nf9c1YdxsZ5uZtTdg6HdcOepwdHMnnrjVXR8HoJh3a5 BNoZZWtRKeWVnOxhcSONMNY7GM+tAkWKfCwdjh96QEChIzISjVaFjGD5tKBildVD 2U+9HvAtVJcqFfg0wA0AOV34i0511qglq0RVzsXQAg6Cmcp9ltwX6ckZmsHTzGiT XVL/Ofx++GgCdLM8LBmCM705bJDxRpqJiPi7rcaqJUyqoGDsXTFArFZNE9OpqHJR aV1E49pvacq5HdTqn+3ORnMfrpZGelKwhxhyw/dnOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdduuddgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffuvfevkfgjfhfogggtsehttdertdertddvnecuhfhrohhmpefnhihn ughonhcuufgrnhgthhgvuceolhhsrghntghhvgeslhihnhguvghnohdrtggrqeenucggtf frrghtthgvrhhnpeejffeukeegieejhfdvudegtdekfeevveetgffhveefueffgfdvveel ieduhfdtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehlshgrnhgthhgvsehlhihnuggvnhhordgtrg X-ME-Proxy: Feedback-ID: i1719461a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Apr 2024 17:22:11 -0400 (EDT) Date: Mon, 29 Apr 2024 15:21:59 -0600 From: Lyndon Sanche Subject: Re: [PATCH v3] platform/x86: dell-laptop: Implement platform_profile To: Mario Limonciello Cc: pali@kernel.org, W_Armin@gmx.de, srinivas.pandruvada@linux.intel.com, ilpo.jarvinen@linux.intel.com, Matthew Garrett , Hans de Goede , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Message-Id: In-Reply-To: <5cbb8981-5e24-4dce-a78f-1cabc29f08e3@amd.com> References: <20240425172758.67831-1-lsanche@lyndeno.ca> <20240429164844.7544-2-lsanche@lyndeno.ca> <5cbb8981-5e24-4dce-a78f-1cabc29f08e3@amd.com> X-Mailer: geary/44.1 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=us-ascii; format=flowed On Mon, Apr 29 2024 at 12:45:19 PM -05:00:00, Mario Limonciello wrote: > On 4/29/2024 11:48, Lyndon Sanche wrote: >> #include >> #include >> #include >> +#include >> +#include > > These should be inserted in alphabetical order. Agree >> + >> + // Clean up but do not fail > > Switch comment style to /* */ Agree > >> + if (platform_profile_register(thermal_handler)) >> + kfree(thermal_handler); > > Don't you also want to return an error in this case? Because this > means that the platform supports thermal modes but it failed to setup > due to other issues. > > It's different than the case of no supported modes in which case > returning 0 makes sense. > > Maybe like this: > > > ret = platform_profile_register(thermal_handler); > if (ret) > kfree(thermal_handler); > > return ret; Good idea, I will propogate this error. Failure of module will then occur on allocation or platform_profile error. > > >> >> goto fail_rfkill; >> } >> + // Do not fail module if thermal modes not supported, just skip > > Switch comment style to /* */ Agree. Thank you for this feedback. Lyndon >