aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorMatt Redfearn <[email protected]>2017-08-08 12:22:31 +0000
committerRalf Baechle <[email protected]>2017-09-06 11:19:08 +0000
commitb332fec0489295ee7a0aab4a89bd7257cd126f7f (patch)
tree135e65a5deb1acf66b651f5981a7406936b27a8d /drivers/iio/trigger/stm32-timer-trigger.c
parentMIPS: Handle non word sized instructions when examining frame (diff)
downloadkernel-b332fec0489295ee7a0aab4a89bd7257cd126f7f.tar.gz
kernel-b332fec0489295ee7a0aab4a89bd7257cd126f7f.zip
MIPS: microMIPS: Fix detection of addiusp instruction
The addiusp instruction uses the pool16d opcode, with bit 0 of the immediate set. The test for the addiusp opcode erroneously did a logical and of the immediate with mm_addiusp_func, which has value 1, so this test always passes when the immediate is non-zero. Fix the test by replacing the logical and with a bitwise and. Fixes: 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.") Signed-off-by: Matt Redfearn <[email protected]> Cc: Marcin Nowakowski <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Burton <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/16954/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions