From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759560AbcGKQHs (ORCPT ); Mon, 11 Jul 2016 12:07:48 -0400 Received: from mga04.intel.com ([192.55.52.120]:47622 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755286AbcGKQHq (ORCPT ); Mon, 11 Jul 2016 12:07:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,347,1464678000"; d="scan'208";a="732615546" From: "Coelho, Luciano" To: "linux-kernel@vger.kernel.org" , "prarit@redhat.com" CC: linuxwifi , "Berg, Johannes" , "kvalo@codeaurora.org" , "Ivgi, Chaya Rachel" , "netdev@vger.kernel.org" , "Sharon, Sara" , "linux-wireless@vger.kernel.org" , "Grumbach, Emmanuel" Subject: Re: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded Thread-Topic: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded Thread-Index: AQHR245aewDxdDBN+k6/AXFofGL3nA== Date: Mon, 11 Jul 2016 16:07:42 +0000 Message-ID: <1468253261.25088.126.camel@intel.com> References: <1468250301-10357-1-git-send-email-prarit@redhat.com> In-Reply-To: <1468250301-10357-1-git-send-email-prarit@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.252.30.179] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u6BG7rDo019394 On Mon, 2016-07-11 at 11:18 -0400, Prarit Bhargava wrote: > Didn't get any feedback or review comments on this patch.  Resending > ... > > P. Sorry, this got flooded down my inbox. > ---8<--- > > The iwlwifi driver implements a thermal zone and hwmon device, but > returns -EIO on temperature reads if the firmware isn't loaded.  This > results in the error > > iwlwifi-virtual-0 > Adapter: Virtual device > ERROR: Can't get value of subfeature temp1_input: I/O error > temp1:            N/A > > being output when using sensors from the lm-sensors package.  Since > the temperature cannot be read unless the ucode is loaded there is no > reason to add the interface only to have it return an error 100% of > the time. > > This patch moves the firmware check to > iwl_mvm_thermal_zone_register() and > stops the thermal zone from being created if the ucode hasn't been > loaded. > > Signed-off-by: Prarit Bhargava > Cc: Johannes Berg > Cc: Emmanuel Grumbach > Cc: Luca Coelho > Cc: Intel Linux Wireless > Cc: Kalle Valo > Cc: Chaya Rachel Ivgi > Cc: Sara Sharon > Cc: linux-wireless@vger.kernel.org > Cc: netdev@vger.kernel.org > --- I have now sent it for review on our internal tree. -- Luca.