From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B543C04AB4 for ; Thu, 16 May 2019 16:12:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07541206BF for ; Thu, 16 May 2019 16:12:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfEPQL7 (ORCPT ); Thu, 16 May 2019 12:11:59 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:51275 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbfEPQL6 (ORCPT ); Thu, 16 May 2019 12:11:58 -0400 Received: from [192.168.178.167] ([109.104.36.193]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MiJhW-1gn2TT1ffC-00fP2t; Thu, 16 May 2019 18:11:33 +0200 Subject: Re: [GIT PULL] Thermal-SoC management changes for v5.2-rc1 To: Linus Torvalds , Eduardo Valentin , Guenter Roeck Cc: Rui Zhang , ACPI Devel Maling List , Linux PM , LKML References: <20190516044313.GA17751@localhost.localdomain> From: Stefan Wahren Message-ID: <4803994d-f519-a6b6-f5bb-a2f50d91ecd7@i2se.com> Date: Thu, 16 May 2019 18:11:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit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WCJVjG0cTnXW3KZNh+p2ZO8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On 16.05.19 17:07, Linus Torvalds wrote: > On Wed, May 15, 2019 at 9:43 PM Eduardo Valentin wrote: >> - thermal core has a new devm_* API for registering cooling devices, thanks to Guenter R. >> I took the entire series, that is why you see changes on drivers/hwmon in this pull. > This clashed badly with commit 6b1ec4789fb1 ("hwmon: (pwm-fan) Add RPM > support via external interrupt"), which added a timer to the pwm-fan > handling. > > In particular, that timer now needed the same kind of cleanup changes, > and I'd like you guys (particularly Guenther, who was involved on both > sides) to double-check my merge. > > The way I solved it was to just make the pwm_fan_pwm_disable() > callback do both the pwm_diable() _and_ the del_timer_sync() on the > new timer. That seemed to be the simplest solution that meshed with > the new devm cleanup model, but while I build-tested the result, I > obviously did no actual use testing. And maybe there's some reason why > that approach is flawed. i will try to test on our custom i.MX6 board. Unfortunately this take some time since it isn't mainline yet (at least until tomorrow). Stefan > > Guenther? > > Linus