]> git.baikalelectronics.ru Git - kernel.git/commit
net/fec: gasket needs to be enabled for some i.mx
authorShawn Guo <shawn.guo@linaro.org>
Fri, 1 Jul 2011 10:11:22 +0000 (18:11 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jul 2011 01:30:50 +0000 (09:30 +0800)
commit62ad521dcd2d0f641546e2170090e9230702aa64
treed66e2af8bd869ed6be022419354d2e6def93adc5
parentd29a95a4eafb51956dde8171e635b78e14fe6f6d
net/fec: gasket needs to be enabled for some i.mx

On the recent i.mx (mx25/50/53), there is a gasket inside fec
controller which needs to be enabled no matter phy works in MII
or RMII mode.

The current code enables the gasket only when phy interface is RMII.
It's broken when the driver works with a MII phy.  The patch uses
platform_device_id to distinguish the SoCs that have the gasket and
enables it on these SoCs for both MII and RMII mode.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reported-by: Troy Kisky <troy.kisky@boundarydevices.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
arch/arm/mach-imx/clock-imx25.c
arch/arm/mach-imx/clock-imx27.c
arch/arm/mach-imx/clock-imx35.c
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/plat-mxc/devices/platform-fec.c
arch/arm/plat-mxc/include/mach/devices-common.h
drivers/net/fec.c