Re: [PATCH v2 1/2] spi: Port SiFive SPI controller driver

2022-04-29 Thread Sascha Hauer
On Tue, Apr 26, 2022 at 08:46:03AM +0200, Ahmad Fatoum wrote: > Import the U-Boot v2022.04-rc2 driver to enable access to SPI flash and > SD over SPI on the HiFive Unleashed. Tested with QEMU. > > Signed-off-by: Ahmad Fatoum > --- > v1 -> v2: > - remove unused wait_for_bit (Sascha) > - move p

[PATCH v2 1/2] spi: Port SiFive SPI controller driver

2022-04-25 Thread Ahmad Fatoum
Import the U-Boot v2022.04-rc2 driver to enable access to SPI flash and SD over SPI on the HiFive Unleashed. Tested with QEMU. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - remove unused wait_for_bit (Sascha) - move prep and CS handling out of transfer_one into callers (Sascha) - Use nbytes i