Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp722248ybm; Fri, 29 May 2020 10:33:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDmv8tDqtvHzcMhoa5x7aOjqsKZ9J76AQub6yX6slY/thCrckt+HypKfMUqzpSv94+MauK X-Received: by 2002:a17:906:7b52:: with SMTP id n18mr8844059ejo.292.1590773591075; Fri, 29 May 2020 10:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590773591; cv=none; d=google.com; s=arc-20160816; b=MBpY4BoXQbDGVG9k5trMGizLUkFA+PiBSksw0uaxM1k5JYPc4F2mgbdk93ij7giNG1 R8tV3mIqY65c2PvzjNEzePsFib3ay0TRFMqqgbzxVkTpm3aH3te0SvhVX7u2ZaBWqqbW m7zhczp8q4QGtYoUKVw13k9232OoXTLdDkWVOjvnVjFbLO/1O+WY4fn7+7JNdJohtk4a T666k0ZzlZfQz2XZW9WMPLYUv9Cs0McQ4KK7pb3oI29slgnnVNTOWaWsDC44Tchpbpkt cIIDM6CqEeje5g5MsQ6h1DTzsABGfy1oW0uTpkmMqFjlAHRD7Ve4yS2vU7iaEw/6dmiU bF6Q== 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; bh=c4XqeKNXXfNBPtJ2pYNR4FWEXUxmmdCWVM/yXDkIuLU=; b=lDmLpqbCwd637EV/oB9EaltM+UadjkHXUDgPr6mFdrZiHE4y+1VwT3lUONbTbdS8Ax PIUK8jiaiUTi3brqpevkHH8CHZvRzv5DiNJyV4zdZ3FmwJWflERbvwRHYklg7flc+GAL Hd0Kcpq0UPKPW142oVSyMDjEduunHPAIMPRCSBXaSnuY7QpPTf1IcaS+Lx9lbpuKztu8 srIb/U0sFLZirVxmAYMHZ82muYeefm3QW5OQV7TxauB2MJVYEF+big+nZJrlONQKZWq3 piv5qXfS4HIBQvOSunM00xrMU7Wi0NfP2j9IQ/Y7S0STdFX/iVoaCI53zEwyhiGpgtmS 5gPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp9si2172011ejb.718.2020.05.29.10.32.47; Fri, 29 May 2020 10:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbgE2Rb1 (ORCPT + 99 others); Fri, 29 May 2020 13:31:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41856 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbgE2RXB (ORCPT ); Fri, 29 May 2020 13:23:01 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id EAFDB2A194B Subject: Re: [PATCH v4 05/11] thermal: remove get_mode() operation of drivers To: Guenter Roeck Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, Emmanuel Grumbach , Heiko Stuebner , "Rafael J . Wysocki" , Vishal Kulkarni , Luca Coelho , Miquel Raynal , kernel@collabora.com, Fabio Estevam , Amit Kucheria , Chunyan Zhang , Daniel Lezcano , Allison Randal , NXP Linux Team , Darren Hart , Zhang Rui , Gayatri Kammela , Len Brown , Johannes Berg , Intel Linux Wireless , Sascha Hauer , Ido Schimmel , Baolin Wang , Jiri Pirko , Orson Zhai , Thomas Gleixner , Kalle Valo , Support Opensource , Enrico Weigelt , Peter Kaestle , Sebastian Reichel , Bartlomiej Zolnierkiewicz , Pengutronix Kernel Team , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Shawn Guo , "David S . Miller" , Andy Shevchenko References: <20200529154910.GA158174@roeck-us.net> From: Andrzej Pietrasiewicz Message-ID: <1c4a029e-bb5b-fcfd-1b4b-beea1d6fd577@collabora.com> Date: Fri, 29 May 2020 19:22:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200529154910.GA158174@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Guenter, W dniu 29.05.2020 o 17:49, Guenter Roeck pisze: > On Thu, May 28, 2020 at 09:20:45PM +0200, Andrzej Pietrasiewicz wrote: >> get_mode() is now redundant, as the state is stored in struct >> thermal_zone_device. >> >> Consequently the "mode" attribute in sysfs can always be visible, because >> it is always possible to get the mode from struct tzd. >> >> Signed-off-by: Andrzej Pietrasiewicz > > There is a slight semantic change for the two drivers which still have > a local copy of enum thermal_device_mode: Previously trying to read the > mode for those would return -EPERM since they don't have a get_mode > function. Now the global value for mode is returned, but I am not sure > if it matches the local value. Please see my replies to your comment about patch 4/11. Regards, Andrzej