xilinx_intc: Fix writes into MER register
authorGuenter Roeck <linux@roeck-us.net>
Fri, 25 Apr 2014 15:39:47 +0000 (08:39 -0700)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Mon, 12 May 2014 23:12:40 +0000 (09:12 +1000)
commit12f7fb60863f5aae44fa7a6c1f52cbecd29d4e9c
treefae9729b76d18aef6fbe814fc647ba5b93fe0d0e
parent6d35556caa0c43533a9bf43195bad0152d86ea68
xilinx_intc: Fix writes into MER register

The MER register only has two valid bits. This is now used by
the linux kernel to auto-detect endianness, and causes Linux 3.15-rc1
and later to hang when run under qemu-microblaze. Mask valid bits before
writing the register to solve the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
[Edgar: Untabified]
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/intc/xilinx_intc.c