Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2537901ybm; Thu, 23 May 2019 19:38:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI5t05LbzFPg62qMBdN+YS+QCBgPLTnsyf6VhijhfHAbqiGWtq9S6Zo0dwWf2/TILByh4R X-Received: by 2002:a63:1061:: with SMTP id 33mr14358066pgq.328.1558665537271; Thu, 23 May 2019 19:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558665537; cv=none; d=google.com; s=arc-20160816; b=nmbbWChfw2TOz+SplPf/R3QqBgQfOb2WB5fOfT9En+pVRQLlkWsEMS/n6Ff5cMuJN2 kD4gSBVh4XBKSuBNsxTQcxW2jlRp4ECNLrQ+W/9n//XkFUZ7jzTGyHOXhxKcYMf2pmm4 7d8Y4BCXH98dfVQ2QB1ZBVURxsRPbY3TogZpYOdOouRh0qoSIz1DJmXqW/YvsJyPVDIH iiifRbV+2LX+5QhdaZY8QAkO6zrLhwAPTZyoiVs9dWSetGKT8lFK9d72bhFFTQ4gW4P+ sUiw1/ZlmAPdf7oH9NxzpEnuNieZE0bExBGw6GXPQbtuQU2NxDn2Dk1qOmhz0leXBIIG 1h9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VkIHxooMNHFA9OLZaAiTW2cThVgCM7r7P1MhM8qIu0w=; b=AL/7tNQ7KG66M+B95vBgtMUkCic1mufQFdJlbql9aB4RmQ2FjZHUllzgl5vi5tfmen 8Vm+ZB6TpRoS58vsaWCvGVRsQAzt4W8RtpFtG9UCy9WgoQTD3FgAD5ADUohI3duaHyeG LsHOibbUf6VLmmixJYGYF5DAmjSDVDdq3qNxPhFUBqySZVVK9jOUrDavGf8IqPjSXZqm ccXwF/j8sW8Q0MfSNogI7luMuXILzFzJbf7JtmilEHmufSsumOR7wXWkhflWhPOP/KYs bUxh6tDaBEprtb1QA2n+s0Lo3PcZXlKZ0V7/SIQNSD42D72XRjeDlO1JYTq3jqDkEaXy xPsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qA07P64o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b132si2341067pfb.267.2019.05.23.19.38.36; Thu, 23 May 2019 19:38:57 -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=@gmail.com header.s=20161025 header.b=qA07P64o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731794AbfEXChL (ORCPT + 99 others); Thu, 23 May 2019 22:37:11 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43524 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727037AbfEXChL (ORCPT ); Thu, 23 May 2019 22:37:11 -0400 Received: by mail-pf1-f194.google.com with SMTP id c6so4348516pfa.10; Thu, 23 May 2019 19:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VkIHxooMNHFA9OLZaAiTW2cThVgCM7r7P1MhM8qIu0w=; b=qA07P64oWp4ssWXss0N7gOa09mR05BfmjwpoL8tSeaKLrgwqzDn8K1cTuj3YQvBGfz 515UA7eNgGYE6o/iJXi5PiK4vdARUDGa4FAXqVTlnt2G5u7aCNEitd1w+qx2rlpY5hw4 NMMf96D22RY20ivghoPIdD0YZnvSlobm00RS4TIiht9AjxSYHklzxTECb3u6i+7OGHAI bIFqR3aPsXOOj45Djnq34UbIC0uzaUh9E5CVv7P7okI0FSt2ZHO4Epp/rOynjKK8Lrzo NZdflIFh4NvuASfCgR7uzX22mtYJF/1uuDkMCOV/nzGESnm7ouhTdXcaK5XzGiXShO20 YkVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VkIHxooMNHFA9OLZaAiTW2cThVgCM7r7P1MhM8qIu0w=; b=fmD3R8KMVO0gYr1VMeqansWoJDmRvG1B+7bvrq/82ZC0HVz7Poqk4vO0Sni3w1xop2 OPYwmZH8UGBSQfezW7couwvfxaY/z8BORa2vqyU0aMz33j6pwMojReYlkTYOmgF6AnfK 7uwAQgHxc2jCyomo8Q8EoVbquhiFYvMkroGcqiS5eXGTKl8YPhsliFM3iuM7PrmSigqj 8fhVBzErMqNzxl1D3m8yewaiYE7a3cbDYSHjIPa5dQ4/gwshar7jpSvcwAFYQe9g+BdM WcTHCNJPnVpGjtld4S8gf0OB/aZwMEs4DKmVG397C7U1sns/hBf/dCC6zsKgDRp64mpv LTQA== X-Gm-Message-State: APjAAAVseU9uHGZbf9SF8xIDvuuOQpOz5xmnc06HE8fu7wnKAhdRjRXE LTaYoZdbfFuN5+OI/5y5JdQ= X-Received: by 2002:a62:1885:: with SMTP id 127mr50701361pfy.48.1558665429895; Thu, 23 May 2019 19:37:09 -0700 (PDT) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id g8sm805937pfk.83.2019.05.23.19.37.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 19:37:09 -0700 (PDT) Date: Thu, 23 May 2019 19:37:07 -0700 From: Eduardo Valentin To: Guenter Roeck Cc: Linus Torvalds , Stefan Wahren , Rui Zhang , ACPI Devel Maling List , Linux PM , LKML Subject: Re: [GIT PULL] Thermal-SoC management changes for v5.2-rc1 Message-ID: <20190524023705.GD1936@localhost.localdomain> References: <20190516044313.GA17751@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 09:55:33AM -0700, Guenter Roeck wrote: > On 5/16/19 8:07 AM, 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. > > > >Guenther? > > Sorry for the trouble. Looks like I did too much cleanup this time around. > > Looks ok. I'll have to send a follow-up patch - we should check the > return value of devm_add_action_or_reset(). No idea why I didn't do that > in this series. I'll do that after the commit window closes (and after > I am back from vacation). OK... From what I could tell, looked fine from a thermal perspective. > > Thanks a lot for sorting this out. > > Guenter