From patchwork Mon Dec 14 23:38:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 343590 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3433467jai; Mon, 14 Dec 2020 15:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrM7dcuoBFE7ZCkr10A7s4prhCYoKM4orTArry5q93oPO9VS4g/dTr2OjZHQgwC6p5k/5r X-Received: by 2002:a05:6402:b42:: with SMTP id bx2mr22715776edb.117.1607989450276; Mon, 14 Dec 2020 15:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607989450; cv=none; d=google.com; s=arc-20160816; b=dHkQnC5a3bpUxfP01qK+3U61JufJKA2gbCuR2scsOAURAMkHOO8vT077JbFnlxNkI1 ufZCQz4fxoTczjoQUA5C2gYBpWEUw7gSzYQN3fqWn1y3oNzJSKBAWZQJWDjmHaTDIZeh oqmWQBVR+kJmxwQa3vDE9gke43tAPFyZMUt293RImiqcEkGlyehGeZhb1JJOhvPlacLJ AklO2SPd3EFS296CWomKlMwMAmt6VcbCAvDl/SaBcsAfxWjb6eWvhD5vjQnKhO2sv4SB /BnJrRApGu9N0nLgU1++SgbhcygeY9wswIYqlPszj2v1fE1FJ9+LFkr2Pe75G1U7Bkf/ k4YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=ju6TglmDOs2tDTlVy2K8bAqKJxrJv7BTcLdejnUUJfAjycx3reJ/4QSRmsOqTRqXTS 8TcFExsT3mpBlSlM5+dX1fG2zf6ghf7FPk8ZjWaqX0G0iSOhIhT0WJidt1202VxlJWEh shfdJqJOKoo6/WLppaBLAW2srS+KYBGc/l1uU/S3BcA1oQWnhv0QNZG2/zQ1dzqFsPUY UHYs6Z82Rh5Eq8JrEmvXc3C+Ze3d80jD6r59cLpl/9zZqNXIgWu9y6y/Cu5Wbo3nxz+5 0kBfvI7gVgagJRDx36eCOEH/RCF4D/ryx73mxaRIHiM4h5P1pN3s6ee1p4wZ9LFkTO2A oU5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I4+ur7/J"; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si85377edq.202.2020.12.14.15.44.10; Mon, 14 Dec 2020 15:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I4+ur7/J"; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgLNXmx (ORCPT + 5 others); Mon, 14 Dec 2020 18:42:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbgLNXlI (ORCPT ); Mon, 14 Dec 2020 18:41:08 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965B2C061257 for ; Mon, 14 Dec 2020 15:40:03 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id e25so16795667wme.0 for ; Mon, 14 Dec 2020 15:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=I4+ur7/JqkDvRM9rhYAD8XbIRYlOOoS5VmC+0o3cupQmlhxvVdRe5zc1ugCTN2c50N rUCImwC/t6kBthv1M2bwbWgHCayE1VisBLU4Etxmli/UZw03f3d976Ws99Ep9PcZoQDN MEXTGyToiCQh1Y6IhO6g6Y4yY7GOQveUouYtNOk1UMvM0XGxJkxPRvsqmo4UdosctfW8 pMTaP7uJMLDlFOhOd656vO7TunBRhFr32P3JgME36WPwQSkCrSJE4ldXKhOk1elfhuzc 4Ozvb0ZZLcQBBvaAv24A8g9JNIOfBNGMc+mpd1WCCDQ1ZZx8aR8mya6qP0gdMWp1jCxs EI2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=a2fw4Z9IGrKwM6a/coAVUpbmFBo/DkZ12/hDP3edu8xqYZDYsG+ccdI+fmToBQi/Y0 wsbbKaC5vsUY4wAdAtdyZrkVmpTSx6FoUcuvL2UduCuz6aHuNFdJ3KCCNWM+8q5ekJE+ q6eYpCjaVOL9uEKpRt5wehUihWfLHjBn6obMn/fW/q11aB2pkVkO0qzJSIJoJWF0KYhY qaPZYAnnINxvX8IlRz7NoNRIjhreTnRCh29DYE7pWBWtBAXDAUhGq0ufDTyRHfpWBkz8 nNBNbZOnk3J1vP8XzXaKnjg+MA+ZINb+L90ZKq77uMBqtDZ+9hyKr7GD+tqgNmyuH4Ur 7kig== X-Gm-Message-State: AOAM531NNqPs5oj4WC+i3jOyKpI2YSXydmTnTWAO1el/u5Iv5B/WQUf7 5MFPv1yEaRnRUgO5FFGB2ubILw== X-Received: by 2002:a1c:81d5:: with SMTP id c204mr29695087wmd.156.1607989202159; Mon, 14 Dec 2020 15:40:02 -0800 (PST) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:e842:4086:6f24:55a6]) by smtp.gmail.com with ESMTPSA id h3sm34145075wmm.4.2020.12.14.15.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 15:40:01 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: mjg59@codon.org.uk, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, amitk@kernel.org, thara.gopinath@linaro.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI THERMAL DRIVER) Subject: [PATCH 4/6] acpi/drivers/thermal: Remove TRIPS_NONE cooling device binding Date: Tue, 15 Dec 2020 00:38:07 +0100 Message-Id: <20201214233811.485669-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201214233811.485669-1-daniel.lezcano@linaro.org> References: <20201214233811.485669-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The loop is here to create default cooling device binding on the THERMAL_TRIPS_NONE number which is used to be the 'forced_passive' feature. However, we removed all code dealing with that in the thermal core, thus this binding does no longer make sense. Remove it. Signed-off-by: Daniel Lezcano --- drivers/acpi/thermal.c | 19 ------------------- 1 file changed, 19 deletions(-) -- 2.25.1 Acked-by: Zhang Rui diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index b5e4bc9e3282..26a89ff80a0e 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -764,25 +764,6 @@ static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, } } - for (i = 0; i < tz->devices.count; i++) { - handle = tz->devices.handles[i]; - status = acpi_bus_get_device(handle, &dev); - if (ACPI_SUCCESS(status) && (dev == device)) { - if (bind) - result = thermal_zone_bind_cooling_device - (thermal, THERMAL_TRIPS_NONE, - cdev, THERMAL_NO_LIMIT, - THERMAL_NO_LIMIT, - THERMAL_WEIGHT_DEFAULT); - else - result = thermal_zone_unbind_cooling_device - (thermal, THERMAL_TRIPS_NONE, - cdev); - if (result) - goto failed; - } - } - failed: return result; }