From: Joshua Clayton <stillcompiling@gmail.com>
To: Alan Tull <delicious.quinoa@gmail.com>,
Anatolij Gustschin <agust@denx.de>
Cc: Alan Tull <atull@opensource.altera.com>,
Moritz Fischer <moritz.fischer@ettus.com>,
Russell King <linux@armlinux.org.uk>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
linux-fpga@vger.kernel.org
Subject: Re: [PATCH v9 2/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs
Date: Wed, 15 Feb 2017 15:01:40 -0800 [thread overview]
Message-ID: <347abcac-6f3c-29db-ed68-26d07831a04b@gmail.com> (raw)
In-Reply-To: <CANk1AXQy1nLjZAEpy0CDpS7GqvL+0y7f7Q5EuOZ1AqjBOPDwEw@mail.gmail.com>
On 02/15/2017 09:14 AM, Alan Tull wrote:
> On Wed, Feb 15, 2017 at 9:26 AM, Anatolij Gustschin <agust@denx.de> wrote:
>> Hi Joshua,
>>
>> On Tue, 24 Jan 2017 14:19:33 -0800
>> Joshua Clayton stillcompiling@gmail.com wrote:
>> ...
>>> +static int cyclonespi_write(struct fpga_manager *mgr, const char *buf,
>>> + size_t count)
>>> +{
>>> + struct cyclonespi_conf *conf = (struct cyclonespi_conf *)mgr->priv;
>>> + const char *fw_data = buf;
>>> + const char *fw_data_end = fw_data + count;
>>> +
>>> + while (fw_data < fw_data_end) {
>>> + int ret;
>>> + size_t stride = min(fw_data_end - fw_data, SZ_4K);
>>> +
>>> + rev_buf(fw_data, stride);
>> Can we make rev_buf() optional here? I've tested this driver with
>> Stratix-V FPGA using orion_spi driver. It works without swapping
>> the data.
Thanks for testing!
I'd be happy to make it an optional feature, rather than integral.
> I replied earlier, but something in my email settings bounced.
>
> The way to make it optional is to add a bit to the flags of the
> fpga_image_info struct.
>
> Alan
OK.
>
>> Thanks,
>> Anatolij
next prev parent reply other threads:[~2017-02-15 23:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 22:19 [PATCH v9 0/3] Altera Cyclone Passive Serial SPI FPGA Manager Joshua Clayton
2017-01-24 22:19 ` [PATCH v9 1/3] doc: dt: add cyclone-ps-spi binding document Joshua Clayton
2017-01-27 22:28 ` Rob Herring
2017-01-30 18:53 ` Joshua Clayton
2017-01-24 22:19 ` [PATCH v9 2/3] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs Joshua Clayton
2017-02-15 15:26 ` Anatolij Gustschin
2017-02-15 17:14 ` Alan Tull
2017-02-15 23:01 ` Joshua Clayton [this message]
2017-01-24 22:19 ` [PATCH v9 3/3] ARM: dts: imx6q-evi: support cyclone-ps-spi Joshua Clayton
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=347abcac-6f3c-29db-ed68-26d07831a04b@gmail.com \
--to=stillcompiling@gmail.com \
--cc=agust@denx.de \
--cc=atull@opensource.altera.com \
--cc=delicious.quinoa@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fpga@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=moritz.fischer@ettus.com \
--cc=robh+dt@kernel.org \
--cc=shawnguo@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;
as well as URLs for NNTP newsgroup(s).