Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp750512ybv; Thu, 20 Feb 2020 06:41:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxUm8auaV6ajlkDVisofcFKr1VTjICsV/3gyJfy071vSlasK2csnYwL0KSUQmq4y+AK5Bg6 X-Received: by 2002:a9d:6d1a:: with SMTP id o26mr22921814otp.141.1582209685721; Thu, 20 Feb 2020 06:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582209685; cv=none; d=google.com; s=arc-20160816; b=yfuMP3ntdTWPvOl2Bja7DL3TzHDyQnl6fGHSEweA7JoBwEHXrbAl+XST+ewFCokRxp OPJp5HDjLV+T8FqK5TX5XUfuteqzq5W02dBelCUAB//oOW/yWctmUldS+7WVtjBKAt7X zVo7jrKYOtOR1JATYRb95org//8IvV2VmTx53BlUtT/z1jMjLWMPSLbLvtwDXQN30XV2 HdY/V00r7WiNx9sPHn9SdHNVh7KxTOq6oJMhM02+WolrC79HEWv42ZcL6LJyH3vhJvsf FeGNZaqTIsXe9oV7wfPXREe8x5jdeplapPVPeKLsFcZcteYvB1FuOr3G7dSTwR/K2iaW 4ZxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2NmViLIJERdQfyun4Ab99x7zwWufktbDx8lsNKAcbjM=; b=BhneMzTkfLmvu56fyyy4yLE4hovBq0K+jeI07ogAyxuvYGYfgvWYsf87QKOCz4rg8c V7pl645va61rFkxNxiq6u7uOnFeNfhGSxWTXLoF2TLRiIh2Qtz2VHDvTfQl4RBnZMaVV kXooeW3HAWZ1Ya/SrCjPj7AYGiI8w6YlBqCHRKVRfxSzrNVnvhkxxUTlWt9WXGHF+KjR mJgYF1UIN6iRvEoSOLKri57lDY31WyknyZh9zgRsSXVi+rwlNfr6SZWZygO0lhYdIGav cj9EbW7iV2W1ujhgOUT2WKCCrCbpF5TNNA7hWPA5C/KfrAPBjbX5FsU0AP0HBw6A9nko ZB8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HHUJzc46; 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 e7si1670858otp.260.2020.02.20.06.41.12; Thu, 20 Feb 2020 06:41:25 -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=@gmail.com header.s=20161025 header.b=HHUJzc46; 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 S1728149AbgBTOkT (ORCPT + 99 others); Thu, 20 Feb 2020 09:40:19 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:32873 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727915AbgBTOkT (ORCPT ); Thu, 20 Feb 2020 09:40:19 -0500 Received: by mail-pg1-f196.google.com with SMTP id 6so2056042pgk.0; Thu, 20 Feb 2020 06:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2NmViLIJERdQfyun4Ab99x7zwWufktbDx8lsNKAcbjM=; b=HHUJzc461SXI2L7U7rRVMzdb+1LWAcbkkrDxqtax01/BLJngq6+6V3KtJHdr065gOB 8OxU1v3F+9Yt06h0RmFXeYHvUGgVk6TQDmgc9qAIFEoMs8k1eU2RncFa+fQy3jiiF5ez vmeZ6y6TTP4qkVS2LfMeken4Wlu5YWnUsGoQQdSXM0jTKvEK1io/EYb8zGOd9rXbibHI C4jzG4ao1ef+Dh451gppcQ6mhlRrEoTrYlr/9fcUZN+1daPWm9uohtYEvJgrOlz1qyBQ RSsySX3so5o5vxmCeJrIedY8e1ayw2LgY20BGaPyYxW8YZu0S59wz7eGREXLX/SQGmvn /K4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2NmViLIJERdQfyun4Ab99x7zwWufktbDx8lsNKAcbjM=; b=jU3a+DAubx3hfpB1Cu0SQcvu/AeicMcsI4sAI0ObaVqgacxweAU2ZdobIRrHbK4hP+ LAE7DW2iYN3r8mO6yb+CXPmpYZ2SnVuuKYfqVYp3TgmJsf56R/6J9jOWdoHJtRx2hGGZ 3aAPKMp/WEV+kRBSUDhs/+gaVKqpL0sHq00wZxrSiiH1hi1YBecNdFoaEUvtagJKA4xl aObhJc4An0AtdVZmhr60huRHBMQUITeOtmmMf+7ncagY+tmDXt14gfEjuCKlXPeO0IrL H1lO7YyHCatIDfh4a+9kHa6tYm2LrIygb8eLAqEShWOT3BIdh9MSYW5mOMEIfIKlNLmb hsQA== X-Gm-Message-State: APjAAAVAvtG6qn24KM9QNR84poTW3H0GyB9j2bNKFklxX6FuUzM5QBTI gjYJy08VI5W6dLYW9RXmIkM= X-Received: by 2002:a63:4281:: with SMTP id p123mr32962830pga.371.1582209617775; Thu, 20 Feb 2020 06:40:17 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id t11sm3816738pjo.21.2020.02.20.06.40.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2020 06:40:16 -0800 (PST) Subject: Re: w83627ehf crash in 5.6.0-rc2-00055-gca7e1fd1026c To: "Dr. David Alan Gilbert" , Meelis Roos Cc: linux-hwmon@vger.kernel.org, LKML , Chen Zhou References: <434212bb-4eb9-7366-3255-79826d0e65bc@linux.ee> <20200220121451.GA18071@gallifrey> <6050ed14-f7a6-cb99-7268-072129226d48@linux.ee> <20200220135709.GB18071@gallifrey> From: Guenter Roeck Message-ID: Date: Thu, 20 Feb 2020 06:40:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200220135709.GB18071@gallifrey> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, Guenter