Hi,
1.As you suggested to apply the below patches is already taken care in our spi-imx.c driver, please refer the attached driver for your reference
2.Also we are using "dmas" in our dts file.
Below are the dts changes we have done in our side,
ecspi1: ecspi@02008000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx6ul-ecspi", "fsl,imx51-ecspi";
reg = <0x02008000 0x4000>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_ECSPI1>,
<&clks IMX6UL_CLK_ECSPI1>;
clock-names = "ipg", "per";
dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
dma-names = "rx", "tx";
status = "okay";
};
3.I have attached our spi-imx.c driver file for your reference.
Please provide us any other suggestion so that we could able to improve SPI performance.