Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp737172yba; Thu, 16 May 2019 08:10:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4k4CPsq2Yz9EfzeYmmO7c3HawU7AVqTf2crosjwymMsqWPfedLNsOHi4VdNnrSgmNqwsq X-Received: by 2002:a17:902:6a83:: with SMTP id n3mr51458625plk.109.1558019402556; Thu, 16 May 2019 08:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558019402; cv=none; d=google.com; s=arc-20160816; b=a5l6xOHXGOeuONR+77/zEn41Z/utFeRoGUzNAq4iPV7nZvwlqkkz8cc6GTZb4SM7D+ w7FKP7B9Bt/9ujAssD+0sz4zDqjBsO8By5PB1xUlQtKsUDWQnX8UEWfV0+77h0PmdV9N rRYKHBQkmgNWIPk/OTFQsNDiQW/d70GdRhGgMeXUiZI6RNct56SKH+8iKsj95iY2+jf+ XXH07Uyly7nue1WV0TAh8n+XCHufeyfvjRvCySQr94NXKU09Ezlj3TuC8QUdhJFW6Ki9 /JqQ/bLG+XJU7rAKtijTr0Tl2itTx4oCBCQaKOhMcvvvCg3+jOEdrkUEsb59qqI2psEZ 3Hyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FGHxW899Amf7ZgHaxb24JsnGeNM4NZvWTEPA1jMV4y8=; b=zdZZMmwU8Sh/EpLutWyb0i4ehqED6ntZxlTOUeKkwGL4iquhuqAqxogk+nUaF0M4ot J291IC77SxAxqSI0Jvkuys+bJ4xhfVMdG1DcUxtn5kXzBnnwz3neF1sBqIuF92TYhxRi Th4bbhUfwWWZNQnT2PF8/miOOMA3M7izdKmKlldQLszU33fl2sv8Dp9+yT9NOwIUdh2U BILLT7yRtmBMoKJk26MQw7/8u7e87IwgzeKvWjGGTreIl/MnOVyi+nZk4IApbE3kSC0A qdJvJS4HGQo/s8WHXJATMMsBwTmGHdodVGdAWybB/+paOFttBtdmQJGMWJwAsUsDLpJ4 +iHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AtS0tP7u; 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 k184si5011160pge.82.2019.05.16.08.09.30; Thu, 16 May 2019 08:10:02 -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=@linux-foundation.org header.s=google header.b=AtS0tP7u; 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 S1727021AbfEPPIP (ORCPT + 99 others); Thu, 16 May 2019 11:08:15 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:47003 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbfEPPIO (ORCPT ); Thu, 16 May 2019 11:08:14 -0400 Received: by mail-lf1-f66.google.com with SMTP id l26so2882798lfh.13 for ; Thu, 16 May 2019 08:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FGHxW899Amf7ZgHaxb24JsnGeNM4NZvWTEPA1jMV4y8=; b=AtS0tP7u7iyJ1QEm//4O5HaN3+5kkE2tr9Yqtj73YWBv2pnZkSMIsKWKaScHGyv6fO H8ljLoZWHA0lu28jqNo2CZO4sASGLxZBPHEQMwNQVDmIJ70k63fFucdxmDo8LHK54i46 +sia9Wr5owuEX/MqfRs/YVPWurP/Jf7wXvQDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FGHxW899Amf7ZgHaxb24JsnGeNM4NZvWTEPA1jMV4y8=; b=mkPc/bBU8QNDpmBEKUmqVgq4XAIH1rOtp3ivyg4K+VbyYecF6VAeummaz14AiZpd27 L5wHODQtBRMxIAlmgUe4ns0iWKW4S2PdOGgIkESkv6ihOMSMz/oxnwzIB1qW3BqgBago tiGWbEueOPCrDR7RSoDJra933VA0C4H7aCA2Y6yXWJigczmVsten05RXev7Ylesjplf2 2QZ/GqM+4GIKQw7wFqkk9sOfzozo43fIEdiw1bKsKfqzleXWqbWaoGDMzozqCxjtxzYi Ca71BfiBhbfxrbHDSoHLUYZ2rXK0NCEv5GMT7DkjCLn1/fLtyVOpwQfBgy5Mupt4cNcm sR2A== X-Gm-Message-State: APjAAAUc92xVbYy1hbgxjizhEbUgzfAjn+nwXN0yaLXY3VmZMPE+CZcS 9qACjFk1qw6XgBzqixrHFhqzF2PRYwE= X-Received: by 2002:ac2:4893:: with SMTP id x19mr23814849lfc.109.1558019292252; Thu, 16 May 2019 08:08:12 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id y24sm1008221lfg.33.2019.05.16.08.08.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 08:08:11 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id x132so2948673lfd.0 for ; Thu, 16 May 2019 08:08:11 -0700 (PDT) X-Received: by 2002:ac2:510b:: with SMTP id q11mr22478766lfb.11.1558019290857; Thu, 16 May 2019 08:08:10 -0700 (PDT) MIME-Version: 1.0 References: <20190516044313.GA17751@localhost.localdomain> In-Reply-To: <20190516044313.GA17751@localhost.localdomain> From: Linus Torvalds Date: Thu, 16 May 2019 08:07:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Thermal-SoC management changes for v5.2-rc1 To: Eduardo Valentin , Stefan Wahren , Guenter Roeck Cc: Rui Zhang , ACPI Devel Maling List , Linux PM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Guenther? Linus