From: Scott Branden <sbranden@broadcom.com>
To: Florian Fainelli <f.fainelli@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: Jonathan Richardson <jonathar@broadcom.com>,
Dmitry Torokhov <dtor@google.com>,
Anatol Pomazau <anatol@google.com>,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
"Kumar Gala" <galak@codeaurora.org>,
<linux-kernel@vger.kernel.org>, <linux-spi@vger.kernel.org>,
bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
<devicetree@vger.kernel.org>, <cernekee@gmail.com>,
<computersforpeace@gmail.com>
Subject: Re: [PATCH 2/2] spi: bcm-mspi: Add support for Broadcom MSPI driver.
Date: Thu, 14 May 2015 11:36:57 -0700 [thread overview]
Message-ID: <5554EB49.9020601@broadcom.com> (raw)
In-Reply-To: <5554E957.3030809@gmail.com>
On 15-05-14 11:28 AM, Florian Fainelli wrote:
> On 14/05/15 11:19, Scott Branden wrote:
>> Hi Mark,
>>
>> On 15-05-14 03:31 AM, Mark Brown wrote:
>>> On Wed, May 13, 2015 at 05:19:06PM -0700, Scott Branden wrote:
>>>
>>>> The purpose of this mspi interface is to connect to NOR flash. There
>>>> are
>>>> other SPI interfaces on the devices used to connect to other SPI
>>>> devies. We
>>>> don't have any need to support full duplex slaves on this port (NOR
>>>> have any
>>>> hardware wired this way - pun realized after typing this).
>>>
>>> Chip vendors often say this sort of thing and then get surprised by what
>>> their users choose to do, and even if it only ever gets used with flash
>>> all it would take is some new flash command which can use full duplex
>>> for something. Please write the code so it at least tries to handle
>>> full duplex operation, if you can't test it fully that's not the end of
>>> the world. It doesn't look like it should be particularly difficult.
>>>
>> Yes, there is always room for improvements in code. In this case - it
>> really is not worth our time to add code we can't test. We try to
>> deliver code that we can test and actually works. Yes, if anyone needs
>> to use the mspi for full duplex operation code can be added in the
>> future - it is software. This block has gone through many generations
>> of our SoCs and has only been used for this purpose - the bootROM boots
>> from this SPI only. It is dedicated for this purpose.
>>
>> Also, there are other SPI blocks on the SoC that are used for connect
>> other SPI devices. These SPI blocks are properly designed for
>> full-duplex operation. This mspi block is designed for connecting to
>> NOR flash.
>
> This is an implementation detail and architectural choice that is
> specific to the Cygnus SoCs where a single MSPI is present, right?
>
> This same MSPI block is instantiated multiple times in BCM7xxx chips to
> interface to general purpose SPI slaves, ranging from Ethernet switches
> to bluetooth chips etc... those will definitively want full-duplex to be
> working.
>
> I would greatly appreciate if some thought to supporting full duplex
> transfers was given in this driver drop. If you cannot test that, then
> maybe just flag the driver has been half-duplex only for now...
>
> Thank you.
>
Hi Florian,
Yes, we can flag that - but we have no understanding of how the block
operates in this mode. It would be great if your team could add the
necessary full duplex support in a patch enhancement to the driver?
next prev parent reply other threads:[~2015-05-14 18:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 17:38 [PATCH 0/2] Add Broadcom MSPI driver Jonathan Richardson
2015-05-12 17:38 ` [PATCH 1/2] ARM: dts: Add binding for " Jonathan Richardson
2015-05-12 18:38 ` Florian Fainelli
2015-05-12 17:38 ` [PATCH 2/2] spi: bcm-mspi: Add support " Jonathan Richardson
2015-05-12 18:46 ` Florian Fainelli
2015-05-12 19:17 ` Mark Brown
2015-05-13 23:49 ` Jonathan Richardson
2015-05-14 0:19 ` Scott Branden
2015-05-14 10:31 ` Mark Brown
2015-05-14 18:19 ` Scott Branden
2015-05-14 18:28 ` Florian Fainelli
2015-05-14 18:36 ` Scott Branden [this message]
2015-05-14 18:55 ` Jonathan Richardson
2015-05-14 19:08 ` Mark Brown
2015-05-14 19:55 ` Jonathan Richardson
2015-05-14 20:12 ` Mark Brown
2015-05-14 21:43 ` Florian Fainelli
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=5554EB49.9020601@broadcom.com \
--to=sbranden@broadcom.com \
--cc=anatol@google.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=broonie@kernel.org \
--cc=cernekee@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dtor@google.com \
--cc=f.fainelli@gmail.com \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jonathar@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@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