Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1453765ima; Wed, 24 Oct 2018 22:31:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5d2HZisoVV85AMFxTQpIAtgdSmE0S7zbdoJYqnwSHBpkEwdOYLCc5qkINcwEQezg343OJK3 X-Received: by 2002:a63:5e43:: with SMTP id s64mr141436pgb.101.1540445485566; Wed, 24 Oct 2018 22:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540445485; cv=none; d=google.com; s=arc-20160816; b=J7R1Z0GMdJuV9qevNjbBziC50KmLHCVLOeWFysHxpYifzUN+OnQr3ED17HLBWxPR4d XYcj0bOXSE9nIoE4waDx3HagA83lyDV5O6B8JhqkPp96mvAQTfsDVGO68RKsKQdJjE6n 6eAIYWBxDgXJfhijK2BdDI6zNtQ08v1VPg0ZNzvjJ1IQVtqrhCjdhzLR7LmzqfzhplTn Htdh0bAn1WzkKrzqGwjJQ0VdskHU5/we5qwkCswF6VxDBu5ORMqaDr/2KTPHmrEK1dW0 xhmipalsf2cK5GeQQI8podUqOSTyRTyL9QlN23WnxVRN7oC62uF7Q6qX3kW1YDx0XqsU xULA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gs9SgyZuw+dbAm6aFOPXkL0Pu2vbsZ/++lD/Uq0//bU=; b=1J0c1BRYIq9ZMhBDA41MLHgG5Wg4Awkd9Fd13NLcCFjDrvKluabBVOgOjdiDsiWGHN H8PeSjy0IPX5BEqTdDysJfteNxelyoxQiUzUulQmRUgfziIe/U64Uk5i2pKCi0kFQLBi OJTN0tP58dr1kryAR2f1BvyBtwjyp7i5ZQoPTIOZQ/buL2G9L3gpqRCtjw9nxM0INIlN 83QpWge5TnP1qxpv14e7LGOzzb9UGm3ke+H/JAXenund5NH+F6TofmQKNP7bNA4TOMYL VJ7qUdIzmi8KXb02tiaP8fdwMP3VTJ8DISCSNgmOKLt9HRPzZsnWmBT/SFlRMrMMq/LH V2ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ye2NAM8p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8-v6si1148273plb.166.2018.10.24.22.31.09; Wed, 24 Oct 2018 22:31:25 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Ye2NAM8p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727350AbeJYOBm (ORCPT + 99 others); Thu, 25 Oct 2018 10:01:42 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53912 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727106AbeJYOBm (ORCPT ); Thu, 25 Oct 2018 10:01:42 -0400 Received: by mail-wm1-f68.google.com with SMTP id l26-v6so138714wmh.3 for ; Wed, 24 Oct 2018 22:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Gs9SgyZuw+dbAm6aFOPXkL0Pu2vbsZ/++lD/Uq0//bU=; b=Ye2NAM8pj7R+R3sjfvuIugGew6SEcHzoWDzP3TM8IPg7VilLgE2ILqaU5QJFAXlVKQ iQSqZabpEnHkxOIzNZIs4lI8rFyAfa72XdoO6Qj5Sa+xJBzJNBvJqyqvFpBqmhoMDuGr D5Isju5BkrtEv+YakBnVbq8GGCQljDlwf58jc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Gs9SgyZuw+dbAm6aFOPXkL0Pu2vbsZ/++lD/Uq0//bU=; b=Pddb+TwROzrXcp9q7rzWiyPwdUKJv31Nkt69ElivH80uXwv5q0ZPzlTzVt0G/Iq9Wd x8UX4s7fKVjUMSKDr5SDZla94/2dpatP3YnD27Aj1DGDGAQp3lWStH+rIKaVyeRMjd6I pmC3iEXUEi1JK+uK/+zmtEngo6YPBe3jxSRV3NQRmBWBV6LoQidxUy+et+acJGCGx11D /7xKBxv5ri/dLd+DwAq+pOe4JRK1DZejqi4AMiYfMfgIbDoh5vOGYlQGxKExIV85Moff xNtVx+axxpPCiAbuZ3b6vE+iCo03fNGyiZfIfX7WUHnwfLMRx5X5tUItjMiYUNlRN6r5 9EuA== X-Gm-Message-State: AGRZ1gIwM8dJCEZkf9z8/LSc+S8JqwL/fqm419xqCIjlcHnx+koG3xPG QJ/Wb2y+XN912hpD8gVFXRMQLA== X-Received: by 2002:a1c:80d4:: with SMTP id b203-v6mr236310wmd.100.1540445433628; Wed, 24 Oct 2018 22:30:33 -0700 (PDT) Received: from dell ([2.31.167.182]) by smtp.gmail.com with ESMTPSA id u9-v6sm5374658wrr.66.2018.10.24.22.30.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 22:30:32 -0700 (PDT) Date: Thu, 25 Oct 2018 06:30:30 +0100 From: Lee Jones To: Jae Hyun Yoo 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 Subject: Re: [PATCH v8 08/12] mfd: intel-peci-client: Add PECI client MFD driver Message-ID: <20181025053030.GD4939@dell> References: <20180918215124.14003-1-jae.hyun.yoo@linux.intel.com> <20180918215124.14003-9-jae.hyun.yoo@linux.intel.com> <20181024105903.GB4939@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. [...] > > > +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? [...] -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog