• M
    spi: bcm2835: BUG: fix wrong use of PAGE_MASK · 2a3fffd4
    Martin Sperl 提交于
    There is a bug in the alignment checking of transfers,
    that results in DMA not being used for un-aligned
    transfers that do not cross page-boundries, which is valid.
    
    This is due to a missconception of the meaning PAGE_MASK
    when implementing that check originally - (PAGE_SIZE - 1)
    should have been used instead.
    
    Also fixes a copy/paste error.
    
    Reported-by: <robert@axium.co.nz>
    Signed-off-by: NMartin Sperl <kernel@martin.sperl.org>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    Cc: stable@vger.kernel.org
    2a3fffd4
spi-bcm2835.c 22.8 KB