On Tue, Oct 15, 2013 at 11:36:47AM +0530, Sourav Poddar wrote: > But there is one problem which I faced while trying to achieve the > above. Currently, spi > framework takes care of the runtime clock control part in > pump_message(spi.c). So, at the > beginning of each transfer, there is a "get_sync" while at the end > there is a "put_sync". Now, if > I try to do a memcpy in flash and bypass the SPI framework, there is > a data abort as the SPI > controller clocks are cut. Can you fix this by enabling the clock is enabled when you return the buffer to the MTD layer and then disabling the clock when the buffer is released?