Re: [PATCH v2 08/10] spi: dw: Add mem_ops

2020-08-08 Thread Sean Anderson
On 8/7/20 10:43 AM, Sean Anderson wrote: > +/* The size of ctrl1 limits data transfers to 64K */ > +static int dw_spi_adjust_op_size(struct spi_slave *slave, struct spi_mem_op > *op) > +{ > + op->data.nbytes = min(op->data.nbytes, (unsigned int)SZ_64K); This isn't defined for SoCFPGAs [1],

[PATCH v2 08/10] spi: dw: Add mem_ops

2020-08-07 Thread Sean Anderson
The designware ssi device has "broken" chip select behaviour [1], and needs specific manipulation to use the built-in chip select. The existing fix is to use an external GPIO for chip select, but typically the K210 has SPI3 directly connected to a flash chip with dedicated pins. This makes it impos