ARM: mxs: Select FEC driver
Subsystems (3)
PATCH 1/1 ARM: mxs: Select FEC driver
Let the FEC driver be built by default.
--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/configs/mxs_defconfig +2 -0
@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=y CONFIG_ENC28J60=y # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set
Signature · 1 line
1.7.1
PATCH 1/1 ARM: mxs: Select FEC driver
Quoted 12 lines
Let the FEC driver be built by default.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/arch/arm/configs/mxs_defconfig index 6ee781b..f99bcfc 100644
arch/arm/configs/mxs_defconfig CONFIG_DEVTMPFS=y · line 66
Quoted 8 lines
arch/arm/configs/mxs_defconfig +2
-0@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=y CONFIG_ENC28J60=y # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set
PATCH 1/1 ARM: mxs: Select FEC driver
In reply to Fabio EstevamQuoted 12 lines · Fabio Estevam
Let the FEC driver be built by default.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/configs/mxs_defconfig +0
-0
arch/arm/configs/mxs_defconfig CONFIG_DEVTMPFS=y · line 63
Quoted 5 lines
arch/arm/configs/mxs_defconfig +2
-0@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=y
I'd prefer to add
default y
or maybe
default y if SOME_SENSIBLE_OPTION
to NET_VENDOR_FREESCALE and FEC instead. We already had that, but Shawn removed it in
230dec6 (net/fec: add imx6q enet support)
(by mistake if I remember an earlier thread here correctly).
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 ARM: mxs: Select FEC driver
Quoted 24 lines · Uwe Kleine-K?nig
Quoted 12 lines · Fabio Estevam
Let the FEC driver be built by default.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/configs/mxs_defconfig +0
-0arch/arm/configs/mxs_defconfig CONFIG_DEVTMPFS=y · line 63
Quoted 5 lines
arch/arm/configs/mxs_defconfig +2
-0@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=yI'd prefer to add
default y
or maybe
Quoted 9 lines
default y if
SOME_SENSIBLE_OPTIONto
NET_VENDOR_FREESCALEand FEC instead. We already had that, but Shawn removed it in230dec6 (net/fec: add imx6q enet support)
(by mistake if I remember an earlier thread here correctly).
Here is what the commit changed.
drivers/net/ethernet/freescale/Kconfig +4 -5
@@ -7,7 +7,7 @@ config NET_VENDOR_FREESCALE default y depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC || \ + ARCH_MXC || ARCH_MXS || \ (PPC_MPC52xx && PPC_BESTCOMM) ---help--- If you have a network (Ethernet) card belonging to this class, say Y
@@ -16,16 +16,15 @@ config NET_VENDOR_FREESCALE Note that the answer to this question doesn't directly affect the kernel: saying N will just cause the configurator to skip all - the questions about IBM devices. If you say Y, you will be asked for - your specific card in the following questions. + the questions about Freescale devices. If you say Y, you will be + asked for your specific card in the following questions. if NET_VENDOR_FREESCALE config FEC bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC) - default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM + ARCH_MXC || ARCH_MXS) select PHYLIB ---help--- Say Y here if you want to use the built-in 10/100 Fast ethernet
Since for device tree support, we have neither IMX_HAVE_PLATFORM_FEC nor MXS_HAVE_PLATFORM_FEC set. It's all about change 'IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC' to 'ARCH_MXC || ARCH_MXS'. I do not see a mistake there.
Signature · 2 lines
Regards, Shawn
PATCH 1/1 ARM: mxs: Select FEC driver
Hello Shawn,
Quoted 70 lines · Shawn Guo
Quoted 24 lines · Uwe Kleine-K?nig
Quoted 12 lines · Fabio Estevam
Let the FEC driver be built by default.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/configs/mxs_defconfig +0
-0arch/arm/configs/mxs_defconfig CONFIG_DEVTMPFS=y · line 63
Quoted 5 lines
arch/arm/configs/mxs_defconfig +2
-0@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=yI'd prefer to add
default y
or maybe
Quoted 9 lines
default y if
SOME_SENSIBLE_OPTIONto
NET_VENDOR_FREESCALEand FEC instead. We already had that, but Shawn removed it in230dec6 (net/fec: add imx6q enet support)
(by mistake if I remember an earlier thread here correctly).
Here is what the commit changed.
drivers/net/ethernet/freescale/Kconfig +4
-5@@ -7,7 +7,7 @@ config NET_VENDOR_FREESCALE default y depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC || \ + ARCH_MXC || ARCH_MXS || \ (PPC_MPC52xx && PPC_BESTCOMM) ---help--- If you have a network (Ethernet) card belonging to this class, say Y@@ -16,16 +16,15 @@ config NET_VENDOR_FREESCALE Note that the answer to this question doesn't directly affect the kernel: saying N will just cause the configurator to skip all - the questions about IBM devices. If you say Y, you will be asked for - your specific card in the following questions. + the questions about Freescale devices. If you say Y, you will be + asked for your specific card in the following questions. if NET_VENDOR_FREESCALE config FEC bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC) - default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM + ARCH_MXC || ARCH_MXS) select PHYLIB ---help--- Say Y here if you want to use the built-in 10/100 Fast ethernet
Quoted 4 lines
Since for device tree support, we have neither
IMX_HAVE_PLATFORM_FECnorMXS_HAVE_PLATFORM_FECset. It's all about change 'IMX_HAVE_PLATFORM_FEC||MXS_HAVE_PLATFORM_FEC' to 'ARCH_MXC||ARCH_MXS'. I do not see a mistake there.
You did s/IMX_HAVE_PLATFORM_FEC/ARCH_MXC/ and s/MXS_HAVE_PLATFORM_FEC/ARCH_MXS/ in the dependencies of FEC (which is OK and intended). And you removed
default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM
without a substitute. I suggest to add
default ARCH_MXC || ARCH_MXS if ARM
(with "if ARM" only being there to document where the ARCH_MX? symbols come from). NET_VENDOR_FREESCALE already has a default y, so adding that to the defconfigs shouldn't be necessary.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 ARM: mxs: Select FEC driver
Quoted 83 lines · Uwe Kleine-K?nig
Hello Shawn,
Quoted 70 lines · Shawn Guo
Quoted 24 lines · Uwe Kleine-K?nig
Quoted 12 lines · Fabio Estevam
Let the FEC driver be built by default.
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/configs/mxs_defconfig | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/configs/mxs_defconfig +0
-0arch/arm/configs/mxs_defconfig CONFIG_DEVTMPFS=y · line 63
Quoted 5 lines
arch/arm/configs/mxs_defconfig +2
-0@@ -59,6 +59,8 @@ CONFIG_DEVTMPFS=y # CONFIG_BLK_DEV is not set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y +CONFIG_NET_VENDOR_FREESCALE=y +CONFIG_FEC=yI'd prefer to add
default y
or maybe
Quoted 9 lines
default y if
SOME_SENSIBLE_OPTIONto
NET_VENDOR_FREESCALEand FEC instead. We already had that, but Shawn removed it in230dec6 (net/fec: add imx6q enet support)
(by mistake if I remember an earlier thread here correctly).
Here is what the commit changed.
drivers/net/ethernet/freescale/Kconfig +4
-5@@ -7,7 +7,7 @@ config NET_VENDOR_FREESCALE default y depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \ M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC || \ + ARCH_MXC || ARCH_MXS || \ (PPC_MPC52xx && PPC_BESTCOMM) ---help--- If you have a network (Ethernet) card belonging to this class, say Y@@ -16,16 +16,15 @@ config NET_VENDOR_FREESCALE Note that the answer to this question doesn't directly affect the kernel: saying N will just cause the configurator to skip all - the questions about IBM devices. If you say Y, you will be asked for - your specific card in the following questions. + the questions about Freescale devices. If you say Y, you will be + asked for your specific card in the following questions. if NET_VENDOR_FREESCALE config FEC bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ - IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC) - default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM + ARCH_MXC || ARCH_MXS) select PHYLIB ---help--- Say Y here if you want to use the built-in 10/100 Fast ethernetQuoted 4 lines
Since for device tree support, we have neither
IMX_HAVE_PLATFORM_FECnorMXS_HAVE_PLATFORM_FECset. It's all about change 'IMX_HAVE_PLATFORM_FEC||MXS_HAVE_PLATFORM_FEC' to 'ARCH_MXC||ARCH_MXS'. I do not see a mistake there.You did s/IMX_HAVE_PLATFORM_FEC/ARCH_MXC/ and s/MXS_HAVE_PLATFORM_FEC/ARCH_MXS/ in the dependencies of FEC (which is OK and intended). And you removed
default IMX_HAVE_PLATFORM_FEC || MXS_HAVE_PLATFORM_FEC if ARM
Quoted 8 lines
without a substitute. I suggest to add
default ARCH_MXC || ARCH_MXS if ARM(with "if ARM" only being there to document where the
ARCH_MX? symbols come from).NET_VENDOR_FREESCALEalready has a default y, so adding that to the defconfigs shouldn't be necessary.
Yes, you are all right. That was a mistake :)
Signature · 2 lines
Regards, Shawn