Received: by 10.223.176.46 with SMTP id f43csp1510364wra; Wed, 24 Jan 2018 18:29:43 -0800 (PST) X-Google-Smtp-Source: AH8x226AfjubtRzD2+N8zhMHNf7iODRd4dUwayEUtcjXv3dIV443K8PdWTJPzaJ+Q+/MKWJD+75n X-Received: by 10.98.93.157 with SMTP id n29mr14899197pfj.195.1516847383637; Wed, 24 Jan 2018 18:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516847383; cv=none; d=google.com; s=arc-20160816; b=oEl12xB35GPWvnZzEqZ/xxAwJqZrpWABzwqGGAjDg1xH0jxNYLuLOAQ+ojJlespRzS AK+EgHJ8Lvf6V0Q036PwaGNOiq6Bikt3xM9/hpDQzIfw9R7FUL26aVlbR3mCzSFVbw4C hf5cJp4LA77FZAnGN1m9LwkPkYrsOGYMZaqDjZznpu0MKOv+saYbHYo9PJxNL/ZLLkQN Geb5i7Izkx01oG5M3ydWRaYv07ljbJuZhQAQ+D/40uYuAN3hUxl58l8ZEiy575X1LVIf b0Yum9K8X1HygCFdVO39cIg0YLCkbmkWauIFN6U+bIUnz19GFiN7mciPXieECaQyakyo taZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=W+h/mGUAIK2HDV6ZaRQaESTh9uj8auB4uuLmYW+JkwM=; b=fGxKKQCvcpHE8iMzXAVqTHTWjnBPE7cdHbdrgKk4jYs80LpAgT7YXsUmZ/yX/ZNiyA xXXGmmbvppe674Xdf6ZNHmeKVMsOR1qZEDg4i8hIdhcZjWNfndx5TAt7WLhob/mNqzf8 4uN0Tz6WFE+D5YJvevFvTqGmfmegf/3YGglmhtN0AaIbKstMXZskI/z9TLBl/2Gb/A7i CZ0LrZFO0nw+sme5SFwNhpK2cKb5E6sOINysHDISDieRPZ4VXz43B6zw/+A9kUxe3U2I yfAwtKD5M5/MBu8DRWtfUeK42XR6puOxsroEYCAmMxdJgjMo8Fjw81BSTvlu9O7j8egx 02DA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si909284pgp.222.2018.01.24.18.29.29; Wed, 24 Jan 2018 18:29:43 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbeAYC3G (ORCPT + 99 others); Wed, 24 Jan 2018 21:29:06 -0500 Received: from mga09.intel.com ([134.134.136.24]:60381 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683AbeAYC3E (ORCPT ); Wed, 24 Jan 2018 21:29:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2018 18:29:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,409,1511856000"; d="scan'208";a="24537126" Received: from haiyuewa-mobl1.ccr.corp.intel.com (HELO [10.239.196.11]) ([10.239.196.11]) by fmsmga004.fm.intel.com with ESMTP; 24 Jan 2018 18:29:03 -0800 Subject: Re: [PATCH arm/aspeed/ast2500 v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI To: Greg KH Cc: joel@jms.id.au, arnd@arndb.de, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com References: <1516103552-19601-1-git-send-email-haiyue.wang@linux.intel.com> <20180123084457.GE21463@kroah.com> From: "Wang, Haiyue" Message-ID: Date: Thu, 25 Jan 2018 10:29:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180123084457.GE21463@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-01-23 16:44, Greg KH wrote: > On Tue, Jan 16, 2018 at 07:52:32PM +0800, Haiyue Wang wrote: >> When PCH works under eSPI mode, the PMC (Power Management Controller) in >> PCH is waiting for SUS_ACK from BMC after it alerts SUS_WARN. It is in >> dead loop if no SUS_ACK assert. This is the basic requirement for the BMC >> works as eSPI slave. >> >> Also for the host power on / off actions, from BMC side, the following VW >> (Virtual Wire) messages are done in firmware: >> 1. SLAVE_BOOT_LOAD_DONE / SLAVE_BOOT_LOAD_STATUS >> 2. SUS_ACK >> 3. OOB_RESET_ACK >> 4. HOST_RESET_ACK >> >> Signed-off-by: Haiyue Wang >> --- >> .../devicetree/bindings/misc/aspeed-espi-slave.txt | 20 ++ >> Documentation/misc-devices/espi-slave.rst | 114 +++++++++ > DT files need to be split out into a separate patch so that the DT > maintainers can properly review them. > >> --- a/drivers/misc/Kconfig >> +++ b/drivers/misc/Kconfig >> @@ -471,6 +471,17 @@ config VEXPRESS_SYSCFG >> ARM Ltd. Versatile Express uses specialised platform configuration >> bus. System Configuration interface is one of the possible means >> of generating transactions on this bus. >> +config ASPEED_ESPI_SLAVE > You need a blank line above this one please. Fixed. >> + depends on ARCH_ASPEED || COMPILE_TEST >> + select REGMAP_MMIO > Select or depend? Before, I used "depends on". I was told to to change "select". I'm not sure which is more better by practice ? >> + tristate "Aspeed ast2500 eSPI slave device" >> + ---help--- >> + This allows host to access Baseboard Management Controller (BMC) over the >> + Enhanced Serial Peripheral Interface (eSPI) bus, which replaces the Low Pin >> + Count (LPC) bus. >> + >> + Its interface supports peripheral, virtual wire, out-of-band, and flash >> + sharing channels. > What is the module name? You means the --help-- description is not clear and specific ? >> >> config ASPEED_LPC_CTRL >> depends on (ARCH_ASPEED || COMPILE_TEST) && REGMAP && MFD_SYSCON >> diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile >> index 5ca5f64..a1081f4 100644 >> --- a/drivers/misc/Makefile >> +++ b/drivers/misc/Makefile >> @@ -52,6 +52,7 @@ obj-$(CONFIG_GENWQE) += genwqe/ >> obj-$(CONFIG_ECHO) += echo/ >> obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o >> obj-$(CONFIG_CXL_BASE) += cxl/ >> +obj-$(CONFIG_ASPEED_ESPI_SLAVE) += aspeed-espi-slave.o > Why no tab? Fixed, thanks. > thanks, > > greg k-h