From 675407baa44a8700de20b6b2857009a552a807ba Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 12 Aug 2016 14:51:59 +0200 Subject: kernel/swconfig: remove obsolete portmapping feature from swconfig Signed-off-by: John Crispin --- target/linux/ramips/dts/FONERA20N.dts | 30 ---------------------- ...diatek-add-swconfig-driver-for-esw_rt3050.patch | 3 +-- 2 files changed, 1 insertion(+), 32 deletions(-) (limited to 'target/linux/ramips') diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts index b7eb91ea7b..004a2c0889 100644 --- a/target/linux/ramips/dts/FONERA20N.dts +++ b/target/linux/ramips/dts/FONERA20N.dts @@ -93,36 +93,6 @@ &esw { mediatek,portmap = <0x2f>; - - port@0 { - compatible = "swconfig,port"; - swconfig,segment = "lan"; - swconfig,portmap = <0 4>; - }; - - port@1 { - compatible = "swconfig,port"; - swconfig,segment = "lan"; - swconfig,portmap = <1 3>; - }; - - port@2 { - compatible = "swconfig,port"; - swconfig,segment = "lan"; - swconfig,portmap = <2 2>; - }; - - port@3 { - compatible = "swconfig,port"; - swconfig,segment = "lan"; - swconfig,portmap = <3 1>; - }; - - port@4 { - compatible = "swconfig,port"; - swconfig,segment = "wan"; - swconfig,portmap = <4 0>; - }; }; &wmac { diff --git a/target/linux/ramips/patches-4.4/0512-net-mediatek-add-swconfig-driver-for-esw_rt3050.patch b/target/linux/ramips/patches-4.4/0512-net-mediatek-add-swconfig-driver-for-esw_rt3050.patch index 5d0072fe1e..b647d889f9 100644 --- a/target/linux/ramips/patches-4.4/0512-net-mediatek-add-swconfig-driver-for-esw_rt3050.patch +++ b/target/linux/ramips/patches-4.4/0512-net-mediatek-add-swconfig-driver-for-esw_rt3050.patch @@ -865,12 +865,11 @@ Signed-off-by: John Crispin struct rt305x_esw *esw; struct resource *irq; int ret; -@@ -568,6 +1353,21 @@ static int esw_probe(struct platform_dev +@@ -568,6 +1353,20 @@ static int esw_probe(struct platform_dev if (reg_init) esw->reg_led_polarity = be32_to_cpu(*reg_init); + swdev = &esw->swdev; -+ swdev->of_node = pdev->dev.of_node; + swdev->name = "rt305x-esw"; + swdev->alias = "rt305x"; + swdev->cpu_port = RT305X_ESW_PORT6; -- cgit v1.2.3