spi: spi-mem: Extend spi_mem_adjust_op_size() to honor max xfer size
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:13 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
commit12563f768ed7357d52bc15773b76cbeca6407d92
tree6f37c866698d985b0e0e23eb95c38b00abcaef32
parent6d373e523f899c5a8f8808327215e3b9eb3f92f4
spi: spi-mem: Extend spi_mem_adjust_op_size() to honor max xfer size

Extend spi_mem_adjust_op_size() to take spi->max_write_size and
spi->max_read_size into account.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
drivers/spi/spi-mem.c