Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=jae.hyun.yoo@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47YFVp6rF5zDqsh for ; Thu, 12 Dec 2019 11:46:56 +1100 (AEDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2019 16:46:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,303,1571727600"; d="scan'208";a="388123285" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.143]) ([10.7.153.143]) by orsmga005.jf.intel.com with ESMTP; 11 Dec 2019 16:46:45 -0800 Subject: Re: [PATCH v11 03/14] peci: Add support for PECI bus driver core To: Andy Shevchenko Cc: Rob Herring , Greg Kroah-Hartman , Lee Jones , Jean Delvare , Guenter Roeck , Mark Rutland , Joel Stanley , Andrew Jeffery , Jonathan Corbet , 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 , Tomer Maimon , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, openbmc@lists.ozlabs.org, Gavin Schenk , Viresh Kumar , Cyrille Pitchen , Alan Cox , Andrew Lunn , Benjamin Herrenschmidt , Fengguang Wu , Jason M Biils , Julia Cartwright , Yunge Zhu References: <20191211194624.2872-1-jae.hyun.yoo@linux.intel.com> <20191211194624.2872-4-jae.hyun.yoo@linux.intel.com> <20191211201817.GC32742@smile.fi.intel.com> From: Jae Hyun Yoo Message-ID: <3bb146a4-c676-29b9-b2ac-5f1f6ac43bee@linux.intel.com> Date: Wed, 11 Dec 2019 16:46:45 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191211201817.GC32742@smile.fi.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 16 Dec 2019 15:59:37 +1100 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 00:47:00 -0000 Hi Andy, On 12/11/2019 12:18 PM, Andy Shevchenko wrote: > > Nice, we have some drivers under drivers/hwmon. Are they using PECI? How they > will be integrated to this? Can this be part of drivers/hwmon? This is designed for SoCs have one-wire PECI hardware which can handle raw PECI protocol. Some drivers under 'drivers/hwmon' that use PECI-to-I2C translation hardware are out of scope from this patch. In case if an SoC supports both PECI-to-I2C translation mode and raw PECI mode, only raw PECI mode can be integrated to this. NPCM7xx is the case and peci-npcm driver in this patch set is an example of the raw PECI driver. This patch includes peci-cputemp and peci-dimmtemp as raw PECI hwmon drivers. >> Changes since v10: > > It's funny I don't remember previous version(s), but anyway I'll comment on > this later on -- it has at least several style issues / inconveniences. I CC'ed you in every submissions but you probably forgot that because I submitted v10 in January this year. Thanks for your review. >> - Split out peci-dev module from peci-core module. >> - Added PECI 4.0 command set support. >> - Refined 32-bit boundary alignment for all PECI ioctl command structs. >> - Added DMA safe command buffer handling in peci-core. >> - Refined kconfig dependencies in PECI subsystem. >> - Fixed minor bugs and style issues. >> - configfs support isn't added in this patch set. Will add that using a >> seperate patch set. > >> +config PECI >> + tristate "PECI support" >> + select CRC8 > >> + default n > > As for beginning, this one is redundant. > If you have more, drop them. I see. I'll drop the default setting. >> +#include >> +#include >> +#include >> +#include >> +#include > >> +#include > > What about ACPI? Can you use fwnode API? Currently, it's targeting BMC (Baseboard Management Controller) SoCs that are running on ARM kernel. If any needs of ACPI support comes in the future, the ACPI support will be added. Thanks a lot for your review! -Jae >> +#include >> +#include >> +#include >> +#include >> +#include >