Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1133988ybx; Thu, 31 Oct 2019 06:13:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqySR3TQhJSaEJ+CyL8olMY5XjV58qmxFu0tcmwfkez3FrPJWnSNjdE4ArJMNrPZIzIjMrj+ X-Received: by 2002:a17:906:3946:: with SMTP id g6mr3831633eje.49.1572527588932; Thu, 31 Oct 2019 06:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572527588; cv=none; d=google.com; s=arc-20160816; b=N/DAzQRB4V+uVXSEu/xqZQjBMMJI5nqrbv67Ymrdjqjv3cOyRhFeNarfX1tsK7Zu7H E5VZsX2DYNbrtj3dFuXTbA6cdtK7uEZ7TAe9JSPgkFKBRV6yLQPzzMFtlP/20DfRebch QLw4MYepFm/TxTKwhjfi8qyIxBbvvNDJTERSvVk8ItvFpJB+trSATVdAZulvtpeX9Fu7 TIfKNjSbeK8QqU4vAYVZmU2PIxhSaNjJkkBXEkJlLLGhg4FvI7qLjaT3ymeqTH2/Xoc5 VJ9X5mPhRdesvs4hT1LTw6T+iZz/ppSyRov3YEZGm9QhuZ0dUga6KYumS72vRXsqZ3YC 5fUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=hEExp0V0cKrv29tqFFq3xiCPzIk3amBqkOIVgI1o1Uc=; b=Hv843rk2i+EgyJp2D9Y43fT7G0zuJMHs1vTvLhQvP3RPsoY03nP2osKre3L/+/Pcin L/hF1VIk33Zjc9EL7LM2HL6nxdmW0SF2q7FD0Nktb8mmd8EVGGnyd2lLgTs2NNYPNvaD jNiJHx2Xy1q/CmzwteZGhMTFvTd6c7AgTAzwj3erPxLb7jmLSP3NBeEV2mCvhxmQnTDg 5Mjb4S3uwVp49hib3UMlcsqr0KntMQw1a425AccFW0Z1ZX0zkRtQBLJC5YTMBk/AE4+w 604XohiGhmJYmvozpXZ4xD9Q5iIwcrbeZ/HZnHPB1eF8yA53b3i4ajVobcXsEh/Fyidy 1pXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dkGXCXXo; 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 s20si4039985edd.294.2019.10.31.06.12.45; Thu, 31 Oct 2019 06:13:08 -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=@gmx.net header.s=badeba3b8450 header.b=dkGXCXXo; 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 S1727165AbfJaNJE (ORCPT + 99 others); Thu, 31 Oct 2019 09:09:04 -0400 Received: from mout.gmx.net ([212.227.15.18]:38039 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfJaNJD (ORCPT ); Thu, 31 Oct 2019 09:09:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572527319; bh=3wJKVyYoiMGL1Akdx/qSGtrh6JUYmofzwoIvlXnFXwk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=dkGXCXXobHmwW4S3SW3V4aJGZ+enVdpz2hZRJDeL7eJiaEgx8j6VtB+pEpzds8gpO yLkSMXG3CQ5qTDbZT1RSzW2JKfcr5nDxPuEKVLB+JQ4Y1itNaBOvJ3UY6u0/yTKXLz CEQSzHqb8J9ZU4+WQDfFo3Q7vGKfUa6IovsuDQFE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.162] ([37.4.249.112]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7i8O-1hucyr0uXK-014iie; Thu, 31 Oct 2019 14:08:39 +0100 Subject: Re: [PATCH] thermal: brcmstb: enable hwmon To: Chen-Yu Tsai , Markus Mayer , Florian Fainelli , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria Cc: Chen-Yu Tsai , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org References: <20191030163807.17817-1-wens@kernel.org> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoUMEVH DxCJ47BMXo344fHV1C3AnudgN1BehLoBtLHxmneCzgH3KcPtWW7ptj4GtJv9CQDZy27SKoEP xyaI8CF0ygRxJc72M9I9wmsPZ5bUHsLuYWMqQ7JcRmPs6D8gBkk+8/yngEyNExwxJpR1ylj5 bjxWDHyYQvuJ5LzZKuO9LB3lXVsc4bqXEjc6VFuZFCCk/syio/Yhse8N+Qsx7MQagz4wKUkQ QbfXg1VqkTnAivXs42VnIkmu5gzIw/0tRJv50FRhHhxpyKAI8B8nhN8Qvx7MVkPc5vDfd3uG YW47JPhVQBcUwJwNk/49F9eAvg2mtMPFnFORkWURvP+G6FJfm6+CvOv7YfP1uewAi4ln+JO1 g+gjVIWl/WJpy0nTipdfeH9dHkgSifQunYcucisMyoRbF955tCgkEY9EMEdY1t8iGDiCgX6s 50LHbi3k453uacpxfQXSaAwPksl8MkCOsv2eEr4INCHYQDyZiclBuuCg8ENbR6AGVtZSPcQb enzS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i8XEif7d6hjv0EKM9XZoi AZYZD+/iLm5TaKWN6oGIti0VjJv8ZZOZOfCb6vqFIkJW+aOu4orTLFMz28aoU3QyWpNC8FFm dYsVua8s6gN1NIa6y3qa/ZB8bA/iky59AEz4iDIRrgUzMEg8Ak7Tfm1KiYeiTtBDCo25BvXj bqsyxkQD1nkRm6FAVzEuOPIe8JuqW2xD9ixGYvjU5hkRgJp3gP5b+cnG3LPqquQ2E6goKUML AQ== Message-ID: <91017889-2ae7-d467-eed3-6d3b2bb130b9@gmx.net> Date: Thu, 31 Oct 2019 14:08:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191030163807.17817-1-wens@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:wwKDXPdQHu57MA+3650WQGgXGwGXrGlPlc4zDxz9XyuXEPqLCLm /mp4YrvcTWFdBPgrqhzHE+7PZ1PeQOBditQHh9qA9bCQm2/TcLMi8licaey/4dBjGJKxMBt 7ksj2pZ3k3QtRerJjPEI/oDRAxPmw/svRSaH04VOu+++sSa2E/3wDNxIkKApL0fHzGjBMme oNuYPWrOuIVc4SDbjuu2Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fKcvFjiuPSw=:dYR/7xc/3ZaVePP3IFARWP 2/dhssqIRsfRe6qnvT5sNnZessTX/NXOFAfN1nBPghAehQkYOMMmjfiUCj6qKbo7ix+6HQOt6 vWGsOqhudwkPU6R7MWGjZx7WdSQpwiXa0564r4wVa8rnN8vRNz7JPVCYQJ/QN5x2LiHR2Nawr mklu5Ydgz/uHjgQpOCPnBjzIO8PYvKjuGgTkE9nHrBBBNSjPi1arShGYrKtzJywxm5iTj82J6 MgHBoeYIiQOKikGKosMZvG0wLNpw5N2lP2CfKd3y5l/6xPl8o7R45mqq6mGXqzQjWtxxBDdZM /WaHHeoL79QqaibqCK0qnFEuzAntdnNW0UmkpQNN1sfS9UftSwm5yq+bmEx3UXT3OpBE3dFeC hyP+ilJWMF3vqT/CkAPouYTMijST900XMrNjZxznFyiPzZl4n9yp9RWVVf3bjRlf8O6dTGaxx OS6qa9t10eY89Qq8+1ll/IVSTXof09cdxwbIWjVTtW0G/dZvJZOIxVm57lMjwJy5a/RH2tNm+ PrCrOaYrFTWVlCK7XoVb+SLpobwOcdVVH5rPTfY+mLZaZqvo5Wztp4rAK1vevugQc3ASN2ehv +Y3GCQ+ROLdI4dTKaBnLMIiiGEr3Ai6327pkGPmNTAVt6e2PA8Zf8JmiGe5NlHH0zYcA5Zb7g H3pgi+mHyy+xu4NmObfUa8dzvjs2cqGDaHhyMRNnrfSpnC+8ov+geKvcbxULocK1IweqSFuZK AvfMWlET3DkNInGD+1YhHCg82yKDzfHzjD5rqY/J7rt+DSz1iH/aEXMDgMAzVOJwOuLZkXfm9 mEjNnpaki/aXNz92Nr+t4FrvEwIOMLPXLe/4ezWsKVGXdQnwhh0nKGWA3Vr9A8AxyzM+iJW/z bSHoozSiuXzouOoE/sVI3OySy9lnrzG9WTZbF7bMocXzIb5kORJcs+xmUMtVz8qpM7BBPzWtR RyA5iCEVuH93dlAwqsHnMtQ+AmYz1XpnvG/HtZgXZw8GYIWCR78tc6iXgQelmoxUx43offKyr CW6RAXOBqvPmaNLesVU6lceiJNChHoODupSEb3/+vJjNkUbjaohu0qjvmxig4WTbSFKhUekAv Oj6bNya64wGfv7fEQZKs67eEDXTRdbMGfJ/FIu0/zEy3mGqDrqxjZ4cVeFGPsa55H//pJY36d EP9O9LkesVv7CEThbBoTS7Uc5Zi4TAx9kJHs796C8S3rHFpkvMcevgYQq6MVhZzwnl/2FPPn9 BpyKjxhLXCrLQNhAuBcGmEl5lazpH2Nx/9N1KSMxyGJ2GaOLFydaQqyDmBL4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen-Yu, Am 30.10.19 um 17:38 schrieb Chen-Yu Tsai: > From: Chen-Yu Tsai > > By defaul of-based thermal driver do not have hwmon entries registered.= > > Do this explicitly so users can use standard hwmon interfaces and tools= > to read the temperature. > > This is based on similar changes for bcm2835_thermal in commit > d56c19d07e0b ("thermal: bcm2835: enable hwmon explicitly"). > > Signed-off-by: Chen-Yu Tsai > --- > > This patch was only compile tested. A similar patch [1] was submitted t= o > the downstream kernel, which I did build and actually run on a Raspberr= y > Pi 4. just a note: from my understanding [2] the brcmstb_thermal isn't the right driver for BCM2711. Please consider the current downstream solution for BCM2711 support as a quick hack to avoid writing a new thermal driver. But must confess that i didn't test Florian's recent changes yet. Regards Stefan [2] - https://github.com/raspberrypi/linux/issues/3101#issuecomment-527554223 > > This one for mainline is much simpler, as it does not need to deal with= > the error path or device removal, due to the use of devres. > > [1] https://github.com/raspberrypi/linux/pull/3307 > > --- > drivers/thermal/broadcom/brcmstb_thermal.c | 8 ++++++++ > 1 file changed, 8 insertions(+)