Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2715560imj; Mon, 11 Feb 2019 07:24:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IY9KEDw8OZxAKqX+ch2yB2jtuOnztcQE9SrPN9UIGtFz0mH89Nlb0szGHlatoUMNZJ9LvkC X-Received: by 2002:a17:902:722:: with SMTP id 31mr38111100pli.271.1549898689469; Mon, 11 Feb 2019 07:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549898689; cv=none; d=google.com; s=arc-20160816; b=mNVW+8h2tk2YHtTVghVIcmTR1k3Z/OndR4wkpiamNLoP4d6iaD0zBlgN2pOoAJWQtN /Dw4of9D8NbjShXfVPb578Sj5zSWwgn4iWt+7QHtkD5WvkJJ2L1muXTdbfuUTYs/7K3Z kEzQxGO2CKdt08I8JgL89wd87eX5hGLSyYCacczayYIVSghieLdBb4Vr6GYUTknSkm5o f8cCn365XInNAVpuZNIsSP5NIqhbMuSUQwGTizaCs3HpHBQGTAXpioeO6Cnpkyfs1k3/ avOWGvxmPS3FwLr3cSF+EvslazIeaoS6x9yyjlf8hGnSaIlGJna8xzOgLc8XlC+jloYG gL2w== 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=zm9HfhPTznuDweiCIdriS6MrifFCfgi1HLEWFxeoSJ8=; b=dNj7cnrNApr4IDzHp3mdx3yVQ+vPGRjOHJyhmogP2j3R/MM3YXrK3NqQ0XCr91rRBH PXGKRN668NWyst7fnIcbR6tJs+F0d4zcOLC1fnNpy9/YhsPsPaTeTBO5mgvBIJD/t6fh 2gkTjo8F4NGpOM1gMNoDsPwgI0QHwwQqQwuE993c4gP5+Cc+cCCMXPJtkzHidLZt1eZh Xpq4ozZJ/w7NtLj6eVzegQ74D4WdtvWE24LzrU3sfqcADRTEDwAoEgffOLGlCheJW+7J wTkbnWMDJWHXgxPpD50+4Il0O917PjLnGR+lwzNO8iIlGxQDdp7/xz3w9IowCB/oAyRq GUfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H+pCRuCy; 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 o28si6674755pgm.238.2019.02.11.07.24.34; Mon, 11 Feb 2019 07:24:49 -0800 (PST) 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=H+pCRuCy; 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 S2390571AbfBKPDM (ORCPT + 99 others); Mon, 11 Feb 2019 10:03:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:51372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390540AbfBKPDD (ORCPT ); Mon, 11 Feb 2019 10:03:03 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 B2AB1222A7; Mon, 11 Feb 2019 15:03:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897383; bh=ON/WiBu1pndpEmb2fitWz0orPWWb9TSqnJzON2vqdZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H+pCRuCycJNTsE7D9hBrxXfraUqL5Jn9gt2T26OOj97qUDBwuDex0fkIK7SnWUdWR kmog/KDW8I1ZE3a896rgu4IQka6aXq7uEIjuJ4gPUkAY34jZbtgw48dLF3FVVIitzx QdUgsqyR5tefnAj6UGRRB5YmbxET39EVAPX2lRO8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Brugger , Stefan Wahren , Eduardo Valentin , Sasha Levin Subject: [PATCH 4.14 154/205] thermal: bcm2835: enable hwmon explicitly Date: Mon, 11 Feb 2019 15:19:12 +0100 Message-Id: <20190211141838.426386355@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d56c19d07e0bc3ceff366a49b7d7a2440c967b1b ] By defaul of-based thermal driver do not enable hwmon. This patch does this explicitly, so that the temperature can be read through the common hwmon sysfs. Signed-off-by: Matthias Brugger Acked-by: Stefan Wahren Signed-off-by: Eduardo Valentin Signed-off-by: Sasha Levin --- drivers/thermal/broadcom/bcm2835_thermal.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index 23ad4f9f2143..24b006a95142 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -27,6 +27,8 @@ #include #include +#include "../thermal_hwmon.h" + #define BCM2835_TS_TSENSCTL 0x00 #define BCM2835_TS_TSENSSTAT 0x04 @@ -275,6 +277,15 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) platform_set_drvdata(pdev, tz); + /* + * Thermal_zone doesn't enable hwmon as default, + * enable it here + */ + tz->tzp->no_hwmon = false; + err = thermal_add_hwmon_sysfs(tz); + if (err) + goto err_tz; + bcm2835_thermal_debugfs(pdev); return 0; -- 2.19.1