Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2084274ima; Thu, 25 Oct 2018 09:17:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5d6m3r+MvHn+Ce4/6x/pR3m9sGCISOsRwL0rVKOLPjaNW9J7ZuQXe/RtEfiTH6YDgh0Q2QN X-Received: by 2002:a63:ca0c:: with SMTP id n12-v6mr2074409pgi.109.1540484251058; Thu, 25 Oct 2018 09:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540484251; cv=none; d=google.com; s=arc-20160816; b=bIlonG4yhI0u8xpluZpnMbPwHDuadCZeD2TwuOcZ0UZnJdSOHelbXG6xKIuIGeFwuG DiXI/MXLMjK0THTw6JqGnSM/frlUyothNhayxPkWrm3asHKXwkSOWPUbbkNNPPX4DzKU E77cP+gd1Izc94oxv1ROCBQ8SqUmifkXIueM6Djx+17zgmgoD6A018C6VdjOrW0k8j6w C6HIIMdA7mWlW5e0iIQxybO6qCerQxzIU5/BD1XdG+n216b9GlqrCABVCg6yu+XKBnqr 4HGWoe+hG6LXquC9jRelaBehM9HTM+vfyOwcFj5374Q0tYrc7yfKrjx6ZBetyxktwE/h 27yw== 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=QSyaEUVNbVQtO2eG4Nmyk0FyKqKz4PYx1ea+lntu5tE=; b=I1BsvgpW9DodNmUauqKliE+88pCUsoi1a7iX85yIxclTfYtzu6DvK6wECc2m+BAyDb MM7QN479k/9/NHUEEj7IuEzwnaIbj+TXbwe5r1+hVkmhdoUZbcKt1MgHG3fyaZypxtgf if+itk0I0OIP0MdhxAUQTyy6yVFuyYxfuJg4fSDrP8vkYq2R+tlaMVT5tyz9up45lItk 7ixT2MSYiA4puLvWp+SCffu2/MzWvspwpw5bzKl76a5SByFGh5eD7kgdu/PrrYN2eaeC l7hvU+9FF43XMQNghq513WNinpUES2j8VxsdQXhSbsgpTsnQ1HSUEe9VBxyG71iUEYG3 pNFA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si8172309pfi.34.2018.10.25.09.17.01; Thu, 25 Oct 2018 09:17:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbeJZAtb (ORCPT + 99 others); Thu, 25 Oct 2018 20:49:31 -0400 Received: from mga11.intel.com ([192.55.52.93]:8884 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbeJZAtb (ORCPT ); Thu, 25 Oct 2018 20:49:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2018 09:16:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,424,1534834800"; d="scan'208";a="244339326" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.143]) ([10.7.153.143]) by orsmga004.jf.intel.com with ESMTP; 25 Oct 2018 09:16:01 -0700 Subject: Re: [PATCH v8 08/12] mfd: intel-peci-client: Add PECI client MFD driver To: Lee Jones Cc: Rob Herring , Jean Delvare , Guenter Roeck , Mark Rutland , Joel Stanley , Andrew Jeffery , Jonathan Corbet , Greg Kroah-Hartman , Gustavo Pimentel , Kishon Vijay Abraham I , Lorenzo Pieralisi , "Darrick J . Wong" , Eric Sandeen , Arnd Bergmann , Wu Hao , Tomohiro Kusumi , "Bryant G . Ly" , Frederic Barrat , "David S . Miller" , Mauro Carvalho Chehab , Andrew Morton , Randy Dunlap , Philippe Ombredanne , Vinod Koul , Stephen Boyd , David Kershner , Uwe Kleine-Konig , Sagar Dharia , Johan Hovold , Thomas Gleixner , Juergen Gross , Cyrille Pitchen , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-doc@vger.kernel.org, openbmc@lists.ozlabs.org, James Feist , Jason M Biils , Vernon Mauery References: <20180918215124.14003-1-jae.hyun.yoo@linux.intel.com> <20180918215124.14003-9-jae.hyun.yoo@linux.intel.com> <20181024105903.GB4939@dell> <20181025053030.GD4939@dell> From: Jae Hyun Yoo Message-ID: <509c4c0e-eabb-2276-3ffd-3fc675801142@linux.intel.com> Date: Thu, 25 Oct 2018 09:16:01 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181025053030.GD4939@dell> 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 10/24/2018 10:30 PM, Lee Jones wrote: > On Wed, 24 Oct 2018, Jae Hyun Yoo wrote: >> On 10/24/2018 3:59 AM, Lee Jones wrote: >>> On Tue, 18 Sep 2018, Jae Hyun Yoo wrote: >>> >>>> This commit adds PECI client MFD driver. >>>> >> >> > > [...] > >>>> +bool peci_temp_need_update(struct temp_data *temp) >>>> +{ >>>> + if (temp->valid && >>>> + time_before(jiffies, temp->last_updated + UPDATE_INTERVAL)) >>>> + return false; >>>> + >>>> + return true; >>>> +} >>>> +EXPORT_SYMBOL_GPL(peci_temp_need_update); >>>> + >>>> +void peci_temp_mark_updated(struct temp_data *temp) >>>> +{ >>>> + temp->valid = 1; >>>> + temp->last_updated = jiffies; >>>> +} >>>> +EXPORT_SYMBOL_GPL(peci_temp_mark_updated); >>> >>> These are probably better suited as inline functions to be placed in >>> a header file. No need to export them, since they only use their own >>> data. > > Also move them into the HWMON header file. > > They have no business in MFD. > Agreed. I'll move them into the HWMON header. > [...] > >>>> +int peci_client_rd_pkg_cfg_cmd(struct peci_mfd *priv, u8 mbx_idx, >>> >>> This is gobbledegook. What's rd? Read? >>> >> >> Yes, the 'rd' means 'read'. I intended to keep command names as listed >> in the PECI specification such as RdPkgConfig, WrPkgConfig and so on. >> Should I change it to 'peci_client_read_package_config_command' ? > > I looks/reads a lot nicer, don't you think? > Okay. I'll change it too. Thanks again for your review, Lee! Jae > [...] >