Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp954277rdb; Fri, 9 Feb 2024 06:18:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRadx2MJc2CZ4ffBUtOwOg7Er+hb07cd/5rnEjOxD5Gpa6SZHDcnssvtdn8GyHFbSIHjI/ X-Received: by 2002:a17:902:74c9:b0:1d9:f334:d9ce with SMTP id f9-20020a17090274c900b001d9f334d9cemr1596912plt.66.1707488284434; Fri, 09 Feb 2024 06:18:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707488284; cv=pass; d=google.com; s=arc-20160816; b=MdsVJJykYIsL45dLhBD5H+Ny//lzqtc8BVNPKLsPTWahRLPn153M/nGdilqy7qqlfU +HnsvF9x1YXkXZPNvruu1IxTat3XTfyZfrVGseWPNf5XeqozdKKrE1OrYhTt3EPzbXTP vUdC+UrHTBrXwSzQAvXKu1vhzJnHl74w2HJII2awCXwhwhrYwTxPbkVNexfGbcOPnU1d rAKVfSpf1CCRMNqLe2Iuosc3HWY5XZ9dhYZqBj9Z49xXwriNt8NpPsz3u7XP0iTOg5IV 6lDQOHf4uVSIg0i0mcjycGtPVWt0fjc0qfPYyGLQKRilg4JlUiQIZZ5qMYQOm4oJRs1X qxLw== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=EnAKdqX/HOFIasl6bT7Gj4SkUKS+CIUD/eN7YjnlkKg=; fh=+TPzSCOoTsI3Mm93zsC2pJzNtlSPhMl/36lRfDnQWdo=; b=g8pTtoZ62kmiDnk+vmyTAuiQZGWE4s1ZSryikDmGz0N9SMrmRjN9Y3o0sP3lGlzW3y Oiy2l0QGWVorONMTaM2zLgOWpCn1UPoSfWf5UG1NOqR5Zs+WpAHZ1UEOCSSIP4zIZDNB SkD2Ey/61a3oaFcQ/BM/++cobRzlNOuzRp+jfBEBqQXdMJrtt3gvunalpEDVpNPJJyjo GUVlExbkdiRfECTs6MbOMlo3FjP79CIo0vBQG8p7RRe6bNvb+IQM9jWNdxwnVlo/bXy5 BCC6j5sKYsjmq9/uPD4rMDGFVdWD/PS9893th4t42I0VJOk+HVpNCwHa6yf0WdtT5+cT +NZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-wireless+bounces-3392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3392-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVLdqkNQhNIpikTcDWsBMXI9L0+y1WU+ZMVbIbCpUqzbdelvYo2N0rdEHfh6fRX25Kmb6fY88yLomm1gj0LG6DGaLa1iKsmjsxlola+3Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n5-20020a170902e54500b001d741dd5848si1769596plf.140.2024.02.09.06.18.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-wireless+bounces-3392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3392-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 D459228478B for ; Fri, 9 Feb 2024 14:17:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1D9E74E25; Fri, 9 Feb 2024 14:14:47 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 E812A4EB4E; Fri, 9 Feb 2024 14:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707488087; cv=none; b=jS9qgeNcc2ZO9zGNElYyfwG7QVqz6CkCQyBUea8eWp0gb4rTiooDMuHYq5pcBVqSMmonZqOZnJIJqhQWDyE6onUA32fFg/7c/6Ph6SK7waVN6ikCraNROVJIbFxAmsgP41wxKsHAgXma286o2qJqoCyzuls+RmkOsRXloD3c6Uw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707488087; c=relaxed/simple; bh=z2NqA3M75BY0RdOVHbZES1UzBP+LkWRriEpfg2cwIXc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MarBvxwh9xNzG76uuMJ+jnKtnKEzUdMggpxdUr/2j8XJK+jSvC1W2ExPC6hLoeBA47UjBfy+5WngQQ4LOAvjLPhgpY6QlhLpnJlXDsQBlRRbSnBVtIKhuMpsQR5wQWYDginwKE43cBojQRJvHGS46yRsrUWyhYgTRtF53R6FGFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.4.0) id 4107c00f6cba97a2; Fri, 9 Feb 2024 15:14:42 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 59C75669C4D; Fri, 9 Feb 2024 15:14:42 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: Lukasz Luba , LKML , Daniel Lezcano , Stanislaw Gruszka , Srinivas Pandruvada , Zhang Rui , netdev@vger.kernel.org, Ido Schimmel , Petr Machata , Miri Korenblit , linux-wireless@vger.kernel.org, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Manaf Meethalavalappu Pallikunhi Subject: [PATCH v1 7/9] thermal: imx: Set THERMAL_TRIP_WRITABLE_TEMP directly Date: Fri, 09 Feb 2024 15:11:35 +0100 Message-ID: <1876832.atdPhlSkOF@kreacher> In-Reply-To: <3232442.5fSG56mABF@kreacher> References: <3232442.5fSG56mABF@kreacher> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrtdeigdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeduiedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehluhhkrghsiidrlhhusggrsegrrhhmrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehsthgr nhhishhlrgifrdhgrhhushiikhgrsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=16 Fuz1=16 Fuz2=16 From: Rafael J. Wysocki It is now possible to flag trip points with THERMAL_TRIP_WRITABLE_TEMP to allow their temperature to be set from user space via sysfs instead of using a nonzero writable trips mask during thermal zone registration, so make the imx thermal code do that. No intentional functional impact. Note that this change is requisite for dropping the mask argument from thermal_zone_device_register_with_trips() going forward. Signed-off-by: Rafael J. Wysocki --- drivers/thermal/imx_thermal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux-pm/drivers/thermal/imx_thermal.c =================================================================== --- linux-pm.orig/drivers/thermal/imx_thermal.c +++ linux-pm/drivers/thermal/imx_thermal.c @@ -115,7 +115,8 @@ struct thermal_soc_data { }; static struct thermal_trip trips[] = { - [IMX_TRIP_PASSIVE] = { .type = THERMAL_TRIP_PASSIVE }, + [IMX_TRIP_PASSIVE] = { .type = THERMAL_TRIP_PASSIVE, + .flags = THERMAL_TRIP_WRITABLE_TEMP }, [IMX_TRIP_CRITICAL] = { .type = THERMAL_TRIP_CRITICAL }, }; @@ -699,7 +700,7 @@ static int imx_thermal_probe(struct plat data->tz = thermal_zone_device_register_with_trips("imx_thermal_zone", trips, ARRAY_SIZE(trips), - BIT(IMX_TRIP_PASSIVE), data, + 0, data, &imx_tz_ops, NULL, IMX_PASSIVE_DELAY, IMX_POLLING_DELAY);