Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp819535ybv; Thu, 20 Feb 2020 07:52:43 -0800 (PST) X-Google-Smtp-Source: APXvYqy043zrjHdsbaCo3fxQHzMe5tPBSIFzumBh1oAhvXJLEZmBCPUNnLXuroL7BFJOYQEuzt0C X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr7824807otr.351.1582213963021; Thu, 20 Feb 2020 07:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582213963; cv=none; d=google.com; s=arc-20160816; b=ChN8FlWS5qA7Ksxty9aH5tAPpQ/TXlA9mZ9wBxJi7pf2qBHamCpZwtRmg5jLIq7rDA IGdo5HutMo6yFFyKjD4Zo6BYHDw8AUr2JswsFtSG2pOapmjP9GIWZG3JaVJN4uzij6kL CtsExSxQrcxRaGB6KGh9e/i9SApMWfB0Ze+8RKg6ejcFdpnpvsEgTTXTIcOn7Qi/Lmec ISoJb0DAy2xqkhzH6v8COrQOXTecig+GZUpzvmRmmuVCdlst4Q1m94D2tB3qR5K4sXx4 WOzfw9+O2F6O1pao3IGLSaEXdscbaNkJmRpB2ttIExP0k+y/ZsDosn0oxySpqX4nIaj9 hmqQ== 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=+C8IabH42Dpc9RVl6yu13ukx4iHkXHb1tLJu1omzXNc=; b=RdZihwTyN0ZrWlx8YgXa1SXkyl1BpBrUBfPKkH6Pd9uGt/6ueaUQRNwmIGf+RwIIvL KeHoa7Zb8ZjBbTyndbK9Ky7ILxXwhPt/DB8P5nsiWZWZpmib0U8i4PGf6hrAZEsmnxi1 6Xbxy63myG7arYfIxV7Z8dr3TzKeCmn16fYNkgy6cxJHdBYZ5shVId+kBWO3d3S9h0mv MH04Q+UZN0D+lA03WLMVsfUVYZsW7jxocD7oJwpKxbstqJQZ2oBpS7iQ4xsV9c9zlUXA 4yFau5PRVmBWb4i2n/Mqxz9YsZ0lq2oG6tmRzdpQkYcL+5wgy44XAs7YfZ8Lz0UIJcFz rxbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=rOdYYUhY; 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 v3si2027351otn.140.2020.02.20.07.52.30; Thu, 20 Feb 2020 07:52:43 -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=fail header.i=@treblig.org header.s=bytemarkmx header.b=rOdYYUhY; 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 S1728574AbgBTPwJ (ORCPT + 99 others); Thu, 20 Feb 2020 10:52:09 -0500 Received: from mx.treblig.org ([46.43.15.161]:58668 "EHLO mx.treblig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbgBTPwJ (ORCPT ); Thu, 20 Feb 2020 10:52:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID :Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=+C8IabH42Dpc9RVl6yu13ukx4iHkXHb1tLJu1omzXNc=; b=rOdYYUhY05kGc0rziD4apvUsNC Mbz0U4MZ7Q9g0cuiRPegO7kcbp/luzXuaXKlWqnZNNs2bEXaJFpRR8BMnr8zitgrV5rE7lBtSNy4O PNWLzXiaUUhy7TJaxI5lHv7qo9gcDXoNAJtVJGu/8owAsMzXjE4yPn34wNwFiIkeTALD6X+jTNbVs F8dUVK8nJ6XH2CyasQH9wORrPwdqQEBxfc4NXSF18gObA7OJwdp+AHwBMGxVHgDsR7FUCb+Lbe/6x z4wZ1Xjhfeb0WBgszkkV6bA4/eU1BydPPuehFga44C7mrfi1L3dpdQAHY+9uHgp+xHFeCpdXj8Zim 4h8033TA==; Received: from dg by mx.treblig.org with local (Exim 4.92) (envelope-from ) id 1j4o7Q-0007el-Ow; Thu, 20 Feb 2020 15:52:04 +0000 Date: Thu, 20 Feb 2020 15:52:04 +0000 From: "Dr. David Alan Gilbert" To: Guenter Roeck Cc: Meelis Roos , linux-hwmon@vger.kernel.org, LKML , Chen Zhou Subject: Re: w83627ehf crash in 5.6.0-rc2-00055-gca7e1fd1026c Message-ID: <20200220155204.GC18071@gallifrey> References: <434212bb-4eb9-7366-3255-79826d0e65bc@linux.ee> <20200220121451.GA18071@gallifrey> <6050ed14-f7a6-cb99-7268-072129226d48@linux.ee> <20200220135709.GB18071@gallifrey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/4.19.0-5-amd64 (x86_64) X-Uptime: 15:51:37 up 172 days, 16:12, 1 user, load average: 0.00, 0.00, 0.00 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Guenter Roeck (linux@roeck-us.net) wrote: > On 2/20/20 5:57 AM, Dr. David Alan Gilbert wrote: > > * Meelis Roos (mroos@linux.ee) wrote: > > > > It looks like not all chips have temp_label, so I think we need to change w83627ehf_is_visible > > > > which has: > > > > > > > > if (attr == hwmon_temp_input || attr == hwmon_temp_label) > > > > return 0444; > > > > > > > > to > > > > if (attr == hwmon_temp_input) > > > > return 0444; > > > > if (attr == hwmon_temp_label) { > > > > if (data->temp_label) > > > > return 0444; > > > > else > > > > return 0; > > Nitpick: else after return isn't necessary. Too bad I didn't notice that before; > static analyzers will have a field day :-) > > > > > } > > > > > > > > Does that work for you? > > > Yes, it works - sensors are displayed as they should be, with nothing in dmesg. > > > > > > Thank you for so quick response! > > > > Great, I need to turn that into a proper patch; (I might need to wait till > > Saturday for that, although if someone needs it before then please shout). > > > > We'll want this fixed in the next stable release candidate, so I wrote one up > and submitted it. Thanks! Dave > Thanks, > Guenter -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/