lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v20 1/2] fpga: lattice-sysconfig-spi: add Lattice sysCONFIG FPGA manager
On Tue, Oct 25, 2022 at 02:54:38PM +0800, Xu Yilun wrote:
> On 2022-10-25 at 08:39:46 +0300, Ivan Bornyakov wrote:
> > Add support to the FPGA manager for programming Lattice ECP5 FPGA over
> > slave SPI sysCONFIG interface.
> >
> > sysCONFIG interface core functionality is separate from both ECP5 and
> > SPI specifics, so support for other FPGAs with different port types can
> > be added in the future.
> >
> > Signed-off-by: Ivan Bornyakov <i.bornyakov@metrotek.ru>
>
> [...]
>
> > +static int sysconfig_spi_bitstream_burst_init(struct sysconfig_priv *priv)
> > +{
> > + const u8 lsc_bitstream_burst[] = SYSCONFIG_LSC_BITSTREAM_BURST;
> > + struct spi_device *spi = to_spi_device(priv->dev);
> > + struct spi_transfer xfer = {};
> > + struct spi_message msg;
> > + size_t buf_len;
> > + void *buf;
> > + int ret;
> > +
> > + buf_len = sizeof(lsc_bitstream_burst);
> > +
> > + buf = kmemdup(lsc_bitstream_burst, buf_len, GFP_KERNEL);
> > + if (!buf)
> > + return -ENOMEM;
> > +
> > +
>
> I removed the second blank line and applied this series to for-next.
>

Sorry for this negligence. Thanks.

\
 
 \ /
  Last update: 2022-10-25 13:14    [W:0.049 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site