Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp895362yba; Thu, 18 Apr 2019 11:22:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqOHqvLgBRnCdsVsbJzOiaq1QLNljmgO+zEBwVIi6FSHYkiFBKsoQ0xb9csg3MG8uAE2rP X-Received: by 2002:a17:902:29:: with SMTP id 38mr74501459pla.178.1555611727190; Thu, 18 Apr 2019 11:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611727; cv=none; d=google.com; s=arc-20160816; b=mDUn1jzJtjXkdFY2q2w87z2o0Ym6V3bOMF3y0o3yVCdptYjJOj6w6Cl2uSezOyoPSB +6ctIx06saYo3/euX0hkNTkhAX566WsK4mJ6YJKnnLG+oqYiSfoEPFKiTy673Oq+UpWe SNyVXa9NlWVlZFqVJsi455ZCi+Rz8FE77COV+ZOCb3B5HxXCCo5Um3SuNWZZE13pVW1w b4v15MiuVtCyLaC+4fB15URlt/0XBl+vjmYZ1asTyDjtBr/JPXHoBPTfBp54wBW1PDYT bbxDM4VifXDx3j9E4cEXmxzjqUtU9eao8bwU7cbPXnNqTp3HjIZQnYQawGwveNZ25NTj MRMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JXZONlPTJ3gWAXtaPpFQVXPKBKE3Op9hFmiYrzOTWxA=; b=0csTfIeThlb0w5m3JClBNVw4+v2d6L1EgEG2mIIn/y0Z/mqunkmdWxv9J9WSG6YYi+ 3jwDL0Zcjg6W8ftZ9/5xKNx+VKfAP78qG7j9J/v+B/NVEJX1b5ZkRKGdDkWtFzTrc7bN fjgS11o/Ox3WgBQEOd7jrnBGjANMdrj8wIaj05cz6kYqvrs/aB9rftuwQPDRkikQOi6x Bzgen6J4a9XCswQ40bnZQmbf1bFZLgdlh6u0XvMFle0wstaKwJh8ZwV47Mia5t+e+B2U +Ub/b33g2qrAl9N4Jw/v/t6mla0v9oa97zd9Kc0s2r6pgJVMbof02fusbCWz7bdZ0m8z +Dvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aOLibqPP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si2712462plo.439.2019.04.18.11.21.52; Thu, 18 Apr 2019 11:22:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aOLibqPP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403926AbfDRSTC (ORCPT + 99 others); Thu, 18 Apr 2019 14:19:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404077AbfDRSKL (ORCPT ); Thu, 18 Apr 2019 14:10:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5EC162186A; Thu, 18 Apr 2019 18:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611010; bh=df1uWvuLmo5RQUKv8sQ+NkTKbpL/z9yiTwxx3dur6ns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aOLibqPPCcS/bM8XixZKzpJss6EHRGYvdkrybedwvBKPYb1dE1CXpSPx/0HaCQ9Xt Gkr7GIe06XRnFXtO0Lkc1zbyzfvvlWgR/4Wo4uh8dOg0SD23mNFhDUYXVY8xCrMnUV rAcFfjRrJ9uaFJ6iPBcsPfquAhNTNA5x79S4L7q4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthew Garrett , Zhang Rui , Sasha Levin Subject: [PATCH 5.0 24/93] thermal/int340x_thermal: fix mode setting Date: Thu, 18 Apr 2019 19:57:02 +0200 Message-Id: <20190418160439.161651049@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 396ee4d0cd52c13b3f6421b8d324d65da5e7e409 ] int3400 only pushes the UUID into the firmware when the mode is flipped to "enable". The current code only exposes the mode flag if the firmware supports the PASSIVE_1 UUID, which not all machines do. Remove the restriction. Signed-off-by: Matthew Garrett Signed-off-by: Zhang Rui Signed-off-by: Sasha Levin --- drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c index e0f39cacbc18..5f3ed24e26ec 100644 --- a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c @@ -313,10 +313,9 @@ static int int3400_thermal_probe(struct platform_device *pdev) platform_set_drvdata(pdev, priv); - if (priv->uuid_bitmap & 1 << INT3400_THERMAL_PASSIVE_1) { - int3400_thermal_ops.get_mode = int3400_thermal_get_mode; - int3400_thermal_ops.set_mode = int3400_thermal_set_mode; - } + int3400_thermal_ops.get_mode = int3400_thermal_get_mode; + int3400_thermal_ops.set_mode = int3400_thermal_set_mode; + priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0, priv, &int3400_thermal_ops, &int3400_thermal_params, 0, 0); -- 2.19.1