From: Martin Sperl Date: Mon, 23 Mar 2015 14:11:53 +0000 (+0100) Subject: spi: bcm2835: fill/drain SPI-fifo as much as possible during interrupt X-Git-Tag: omap-for-v4.2/o2_dc~166^2~5^4~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adf312976ef2b72830b83f212fef3f6a36513a6;p=pandora-kernel.git spi: bcm2835: fill/drain SPI-fifo as much as possible during interrupt Implement the recommendation from the BCM2835 data-sheet with regards to polling drivers to fill/drain the FIFO as much data as possible also for the interrupt-driven case (which this driver is making use of). This means that for long transfers (>64bytes) we need one interrupt every 64 bytes instead of every 12 bytes, as the FIFO is 16 words (not bytes) wide. Tested with mcp251x (can bus), fb_st7735 (TFT framebuffer device) and enc28j60 (ethernet) drivers. Signed-off-by: Martin Sperl Signed-off-by: Mark Brown --- Reading git-diff-tree failed