From: "Wang, Haiyue" <haiyue.wang@linux.intel.com>
To: Arnd Bergmann <arnd@arndb.de>, Mark Brown <broonie@kernel.org>
Cc: Joel Stanley <joel@jms.id.au>,
gregkh <gregkh@linuxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-spi <linux-spi@vger.kernel.org>,
"Shevchenko, Andriy" <andriy.shevchenko@intel.com>
Subject: Re: [PATCH v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI
Date: Thu, 4 Jan 2018 00:48:06 +0800 [thread overview]
Message-ID: <c217370b-bf1b-27d4-5cdb-1ea35bd3c1ab@linux.intel.com> (raw)
In-Reply-To: <CAK8P3a29m0fKtmv4N4PG1bBFAOULoYvh_t6hk4u_fxRzjA5Z5A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]
On 2018-01-03 23:05, Arnd Bergmann wrote:
> On Wed, Jan 3, 2018 at 3:32 PM, Mark Brown <broonie@kernel.org> wrote:
>> On Wed, Jan 03, 2018 at 10:28:22PM +0800, Wang, Haiyue wrote:
>>
>>> Should send to like this ? Because I add patch for Aspeed chip:
>>> ./scripts/get_maintainer.pl drivers/misc/aspeed-lpc-snoop.c
>>> Joel Stanley <joel@jms.id.au> (maintainer:ARM/ASPEED MACHINE SUPPORT)
>>> Arnd Bergmann <arnd@arndb.de> (supporter:CHAR and MISC DRIVERS)
>>> Greg Kroah-Hartman <gregkh@linuxfoundation.org> (supporter:CHAR and MISC
>>> DRIVERS)
>>> linux-kernel@vger.kernel.org (open list)
>> So it's not actually doing anything at all with the SPI subsystem? I
>> lacked any context for the discussion having been copied in part way
>> through. If it is a SPI controller it ought to have been in
>> drivers/spi.
> It's not an SPI host controller, but a specialized driver for a specialuzed
> SPI slave hardware block.
>
> The SPI slave driver implements the higher-level parts of the eSPI protocol
> stack in Linux, and the lower levels in hardware. The question is whether (and
> how) there should be a split between the levels. If we are expecting to add
> a software implementation of the same eSPI stack in software using the generic
> SPI slave code in the future, it may be helpful to have that separate in place
> already.
From ASpeed's reference code and datasheet, this eSPI driver should
just a **user** of eSPI
protocol. Its feature doesn't belong to - Enhanced Serial Peripheral
Interface (eSPI)
Interface Base Specification (for Client and Server Platforms) r1.0
https://www.intel.com/content/dam/support/us/en/documents/software/chipset-software/327432-004_espi_base_specification_rev1.0.pdf
> With my later suggestion of splitting out the eSPI "virtual wire" low-level
> support into a gpiochip driver, neither half would be in drivers/spi/, but
> one could implement a drivers/spi/spi-slave-espi-vw.c slave protocol
> driver that exposes the same in-kernel interface on top of a slave-capable
> SPI controller.
>
> Arnd
[-- Attachment #2: Type: text/html, Size: 3921 bytes --]
prev parent reply other threads:[~2018-01-03 16:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 1:53 [PATCH v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI Haiyue Wang
2017-12-30 23:10 ` Arnd Bergmann
2017-12-31 17:04 ` Wang, Haiyue
2017-12-31 17:08 ` Wang, Haiyue
2018-01-02 15:13 ` Arnd Bergmann
2018-01-02 15:36 ` Wang, Haiyue
2018-01-02 16:23 ` Arnd Bergmann
2018-01-03 2:21 ` Wang, Haiyue
2018-01-03 15:17 ` Arnd Bergmann
2018-01-03 16:43 ` Wang, Haiyue
2018-01-03 17:08 ` Wang, Haiyue
2018-01-04 0:11 ` Wang, Haiyue
2018-01-03 11:38 ` Mark Brown
2018-01-03 14:28 ` Wang, Haiyue
2018-01-03 14:32 ` Mark Brown
2018-01-03 14:34 ` Wang, Haiyue
2018-01-03 15:05 ` Arnd Bergmann
2018-01-03 16:48 ` Wang, Haiyue [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c217370b-bf1b-27d4-5cdb-1ea35bd3c1ab@linux.intel.com \
--to=haiyue.wang@linux.intel.com \
--cc=andriy.shevchenko@intel.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=joel@jms.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox