net: stmmac: set phy to use polling by default

mii_irq[] array is never initialized anywhere in the driver, thus mii_irq[]
will always equate to zero. So, for the case where the PHY does not have an
irq, we should use PHY_POLL for that situation.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Tested-by: Vince Bridgers <vbridger@altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
FogBugz #193936: nios2: Fix nios2 compilation warnings

The warnings is caused by PAGE_SIZE macro. This is one of the change
request by kernel community when nios2 usptreaming. Recommended way is
using AC() macro for PAGE_SIZE calculation.

Discussion:
https://lkml.org/lkml/2014/4/22/577

Example warning:
fs/select.c:901:9: warning: comparison of distinct pointer types
lacks a cast [enabled by default]

Signed-off-by: Ley Foon Tan <lftan@altera.com>
FogBugz #199159: nios2: fix parentheses warning

Add parentheses for 'vaddr' variable.
Example warning:
mm/bootmem.c:585:3: warning: suggest parentheses around arithmetic
in operand of '|' [-Wparentheses]
mm/bootmem.c:585:3:
                region = phys_to_virt(PFN_PHYS(bdata->node_min_pfn) +
                                start_off);

Signed-off-by: Ley Foon Tan <lftan@altera.com>
stmmac: disable at run-time the EEE if not supported

This patch is to disable the EEE (so HW and timers)
for example when the phy communicates that the EEE
can be supported anymore.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>