From: Martyn Welch Date: Fri, 7 Feb 2014 15:48:56 +0000 (+0000) Subject: VME: Correct read/write alignment algorithm X-Git-Tag: v3.14-rc3~14^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0342e66b397947ed8c3eef8c37b5ca2d5b1bb50;p=pandora-kernel.git VME: Correct read/write alignment algorithm In order to ensure the correct width cycles on the VME bus, the VME bridge drivers implement an algorithm to utilise the largest possible width reads and writes whilst maintaining natural alignment constraints. The algorithm currently looks at the start address rather than the current read/write address when determining whether a 16-bit width cycle is required to get to 32-bit alignment. This results in incorrect alignment, Reported-by: Jim Strouth Tested-by: Jim Strouth Signed-off-by: Martyn Welch Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed