Thank you for your reply.
But, I didn't understand exactly what you said.
Does annotating the 512 byte limit in kernel code mean I can transfer more than 512 bytes in SPI Slave mode?
if ((is_imx51_ecspi(spi_imx) || is_imx53_ecspi(spi_imx)) &&
transfer->len > MX53_MAX_TRANSFER_BYTES && spi_imx->target_mode) {
dev_err(spi_imx->dev, "Transaction too big, max size is %d bytes\n",
MX53_MAX_TRANSFER_BYTES);
return -EMSGSIZE;
}