FogBugz #174310: Correct spinlock usage and state variable setting for PTP

Driver was releasing incorrect spinlock in functions stmmac_adjust_time and stmmac_adjust_freq
leading to instable system behaviour. Driver was not properly detecting advancted timestamping
capabilities since setting of that state variable was masked by a driver console message mask.

Signed-off-by: Vince Bridgers <vbridger@altera.com>
FogBugz #175708: nios2: irq: Get mapped IRQ before calling the handler

The IRQ handler needs the Linux IRQ, not the hardware-specific IRQ.
Therefore, let's distinguish that clearly in the parameter name and also
call irq_find_mapping() to get the mapped IRQ before calling the handler.

This fixes a bootup issue, which caused handle_bad_irq() to be continously
called with IRQ = 0, which is the hwirq for the timer tick.

Tested on Altera's NEEK board with a custom FPGA design.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Ley Foon Tan <lftan@altera.com>
FogBugz #175952: arch/nios2: Cleanup comments

Cleanup unused comments.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
FogBugz #173184: Add L2 EDAC error injection for testing.

Add L2 ECC error injection to the existing L2 implementation
for testing purposes. The trigger is added to the /sysfs.

V2 - Cleanup according to review comments.

Signed-off-by: Thor Thayer <tthayer@altera.com>
FogBugz #175951: nios2: Move the MMU initialization

The current MMU initialization consists only in the flush of all the TLB
entries. This is done based in the cpuinfo values that specify the TLB
geometry. Hence, the current calling of mmu_init() *before* the cpuinfo is
setup is wrong and doesn't perform any TLB flushing.

Fix it by moving the call to mmu_init() to be done *after* the cpuinfo has been
correctly filled.

This commit fixes soft-reboots, which are currently broken. Upon soft-reboot
(from a system that has entered userspace) the TLB would be filled and
were previously never flushed. Such systems booting from a soft-reboot
would fail to enter userpace, panic'ing like this:

  Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Ley Foon Tan <lftan@altera.com>
FogBugz #175343: Fix compile warning in dw_mmc-socfpga.c

This patch addresses a compiler warning seen in dw_mmc-socfpga.c,
drivers/mmc/host/dw_mmc-socfpga.c:29:47: warning: backslash and
newline separated by space [enabled by default].

Signed-off-by: Vince Bridgers <vbridger@altera.com>
FogBugz #175832: Correct jumbo frame corner case

The DMA buffer size was not being set large enough to handle a large ICMP
request. This was not covered in the test cases for the prior check in,
this issue has now been addressed in automated test cases.

Signed-off-by: Vince Bridgers <vbridger@altera.com>