]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bcm2835: BUG: fix wrong use of PAGE_MASK
authorMartin Sperl <kernel@martin.sperl.org>
Thu, 10 Sep 2015 09:32:14 +0000 (09:32 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 10 Sep 2015 10:09:16 +0000 (11:09 +0100)
commit5873841cd58370980cfc996d53f43f76f292ef27
treefedfb018c3582f5996e9c83f7e382df8c4ee905a
parent0c9e0229f3c4e023815b9350b2095fd8ad5809e3
spi: bcm2835: BUG: fix wrong use of PAGE_MASK

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: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-bcm2835.c