Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp167926pxu; Tue, 5 Jan 2021 07:46:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwS6BXCqXf7wmOG1F0Vl7i0N8PoXw5zFrIf8ggMCOxleLShGWlYOuenkTNqOKOuKo54qbTW X-Received: by 2002:a17:906:1393:: with SMTP id f19mr70126959ejc.431.1609861611184; Tue, 05 Jan 2021 07:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609861611; cv=none; d=google.com; s=arc-20160816; b=MmVOcr1Or60Dod+nrjZGVDjctZutxJ0Tztugs5XvaHUa2RWek/hZkyydoSiWREzblo 7/W/2pjmA9ni4UFanvDRigeJOiD84EwwYy0SmA+ZeQzn2v9Sy/yoe1LIYx6ljlYO1bNf rMhcBtOFvDrEsFGidQzDoc7xhVQO7/glWzMxvUs7eI+FYfw8zeUlSlsZRKZAZZts9Ac7 pDMwDIoAO6yPxAGGjdK2mZ6Pm2ROHCHWJx2lSyJsV1gRHXu6+jbl4DP/AibEncIHzka8 LFyXQ4mEVzaLdr8Zk1MDEK1+Zm5HEBp5Qq+Jd5xqFp4QR3bHZV7DwAd8rJ04dxrp+XZQ QMmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=u8B6Jcqsj2qQHBVOgCivAszp3Mr4Z2LIctYHDfeemKo=; b=zddJD3vGWS5QuFwGMBnxBbPCnUzJZsra3uU5a0/a8cJ90G3XYZd4hVAUNvO18+d0Q9 VleH+KaLc8dQFpklTB5c1GSkUVFKoJlOpK3MqVDQHanjFjkDRfybiMxqgqIrUyPDG6zj xnPbsxoBotomG/BbI+m1Ku6GZ/gMhcRgMYxLshHFFswRztmlW2FJOQFIucfC0SsoeYiE QojUf9hsd0YKppVdtxUfkD4mm+zc6R16ZVRh5vXlJEuQBZSsLq/+mOBNb+jh9YO1WfsQ xDju5CmRtfU6jojc+Y3LDFqhle0yaQiwq9dEdz6S475PSo0fvr9kp7nrbrxfN9GjhAyH /Z3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rdkjlnzW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 pw3si27512646ejb.186.2021.01.05.07.46.27; Tue, 05 Jan 2021 07:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=rdkjlnzW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727408AbhAEPpL (ORCPT + 99 others); Tue, 5 Jan 2021 10:45:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbhAEPpK (ORCPT ); Tue, 5 Jan 2021 10:45:10 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C8A6C061793 for ; Tue, 5 Jan 2021 07:44:30 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id a6so3418739wmc.2 for ; Tue, 05 Jan 2021 07:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=u8B6Jcqsj2qQHBVOgCivAszp3Mr4Z2LIctYHDfeemKo=; b=rdkjlnzWp+2zOi5b7d3ppqU3lIZOJ5blen0fY3s5Lownn35zv1OY5oSXisTXNXbPyC Ah5BTaAA34KGKm3jno6izGQnj64gA8NV4bnBGGFhoxXY1cRienDsq01Ly1HW5H5v+TQx RWOPXFrWoVhDadJzet0FLMTTT4lZz790d5QI/C4J4dpDywH6AsGpYvxaqVY/qSlO/BPg ZsWCmKKl3DTc8YgbmzfK8jhQJyf6JzeXIk/ww02n/CzBftFPbXesLu8JnbSGmtitC9xf E+awFJNqK1Q5XoKUMT9yHEi6NGaQRncmPO1aB1pii/ZEpU2u3J2T0L7B86U71oVchq4x u48g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u8B6Jcqsj2qQHBVOgCivAszp3Mr4Z2LIctYHDfeemKo=; b=ty1zWE2gIDKxVFAhH1ktKUWOWfXKQ0nW/ZGxCcyxTW4+NVZASxLZrudTPpPZ2K/tcG GIC7IMe+8XChdHmejCNSXX2hBZ1V/K9W2mgOfGyFH/QPhwOZO2V2FcY5wgpn/0KFZerz gDvSlDfm7080XP50yGfwVUbR+Uw994WEZVkpZpn0o2bMtqqlqRiaqgtoxINKF4qHlV2D y/JnT5srEEkFwUvydjBEG6htzf9dvFVBsULyeUclKglvHsIgqE/es9jA0pOOrV3+H9Xr WNYhsp4EmN1M87RLJr2IDHxqbSVWDBCmaH/o4+pm9C2b92CjSyVB76STgw4czDMNg+b6 6Lwg== X-Gm-Message-State: AOAM532gThTbxcWYSpsl/XEEqijpNTgDIodL+uNyMArf5z96pt4/RDDV k5lhnEiOwBLqXUwEy4aYC4VyTg== X-Received: by 2002:a7b:c246:: with SMTP id b6mr4128150wmj.154.1609861468726; Tue, 05 Jan 2021 07:44:28 -0800 (PST) Received: from [192.168.0.41] (lns-bzn-59-82-252-152-224.adsl.proxad.net. [82.252.152.224]) by smtp.googlemail.com with ESMTPSA id s6sm191847wro.79.2021.01.05.07.44.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jan 2021 07:44:27 -0800 (PST) Subject: Re: [PATCH 4/6] acpi/drivers/thermal: Remove TRIPS_NONE cooling device binding To: 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 , "open list:ACPI THERMAL DRIVER" References: <20201214233811.485669-1-daniel.lezcano@linaro.org> <20201214233811.485669-4-daniel.lezcano@linaro.org> From: Daniel Lezcano Message-ID: <1de4868e-6229-ed33-f45a-7cd82d3ee48a@linaro.org> Date: Tue, 5 Jan 2021 16:44:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201214233811.485669-4-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rui, On 15/12/2020 00:38, Daniel Lezcano wrote: > 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 Are you fine with this change? Thanks -- Daniel > --- > drivers/acpi/thermal.c | 19 ------------------- > 1 file changed, 19 deletions(-) > > 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; > } > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog