On AM654, McSPI can only support 4K - 1 bytes per transfer when DMA is enabled. Therefore populate master->max_transfer_size callback to inform client drivers of this restriction when DMA channels are available.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -11,6 +11,7 @@ struct omap2_mcspi_platform_config { · 10 unmodified lines | |||
| 11 | unsigned short num_cs; | 11 | unsigned short num_cs; |
| 12 | unsigned int regs_offset; | 12 | unsigned int regs_offset; |
| 13 | unsigned int pin_dir:1; | 13 | unsigned int pin_dir:1; |
| 14 | size_t max_xfer_len; | ||
| 14 | }; | 15 | }; |
| 15 | 16 | ||
| 16 | struct omap2_mcspi_device_config { | 17 | struct omap2_mcspi_device_config { |