rk3288: implement spi_crop_chunk()
This function was added in upstream but was missing in Chromium OS Change-Id: I35debf65153e5f280343eebfe91438ecf665ba22 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/9677 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
89be154f0f
commit
13cee14c9c
|
@ -235,6 +235,11 @@ static int do_xfer(struct spi_slave *slave, const void *dout,
|
|||
return 0;
|
||||
}
|
||||
|
||||
unsigned int spi_crop_chunk(unsigned int cmd_len, unsigned int buf_len)
|
||||
{
|
||||
return min(65535, buf_len);
|
||||
}
|
||||
|
||||
int spi_xfer(struct spi_slave *slave, const void *dout,
|
||||
unsigned int bytes_out, void *din, unsigned int bytes_in)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue