{"id":815955,"url":"http://patchwork.ozlabs.org/api/patches/815955/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170920010346.16871-3-f.fainelli@gmail.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170920010346.16871-3-f.fainelli@gmail.com>","list_archive_url":null,"date":"2017-09-20T01:03:46","name":"[2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"abae4cce45ff16e61b5fd40df807f61d28a72009","submitter":{"id":2800,"url":"http://patchwork.ozlabs.org/api/people/2800/?format=json","name":"Florian Fainelli","email":"f.fainelli@gmail.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170920010346.16871-3-f.fainelli@gmail.com/mbox/","series":[{"id":3994,"url":"http://patchwork.ozlabs.org/api/series/3994/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=3994","date":"2017-09-20T01:03:44","name":"blackfin: Drop non-functional DSA code","version":1,"mbox":"http://patchwork.ozlabs.org/series/3994/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815955/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815955/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oMufe10h\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxhMk2Bfbz9sPs\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 11:04:02 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751676AbdITBD7 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 19 Sep 2017 21:03:59 -0400","from mail-qt0-f194.google.com ([209.85.216.194]:36724 \"EHLO\n\tmail-qt0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751655AbdITBD4 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 19 Sep 2017 21:03:56 -0400","by mail-qt0-f194.google.com with SMTP id t46so843709qtj.3\n\tfor <netdev@vger.kernel.org>; Tue, 19 Sep 2017 18:03:56 -0700 (PDT)","from cox.net ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id\n\ts141sm491433qke.62.2017.09.19.18.03.53\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 19 Sep 2017 18:03:54 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=8D7+v7HL4Mk4Ra3e/6vzO4yqi9Wdf48aohe4v2iYTIM=;\n\tb=oMufe10hZCS87FdB7y5vBzGSnwHx+WC6eNJoPUEnqmWkeKFVvshHCacuTKct9lm94M\n\tGgisnViSLSKfZlfRiqAABeTF3vzQlk/skV1sjqwi+jrhy7d1BSNjoOvoDjUAMrzBUisv\n\tfYtgfGsgtR3aYZ2EFnRNySDKAj1Hx7pitr/1a4BrUZFS1jJW2rdWutLTdWdXIC9CBQ5I\n\t4//uyxfCXTx1YZZ1AvRfLdkhrHq827rrKFCCPVQSQOqNxaNc5HR7PO9siRsYBl85C5JR\n\tp7ChgEjG1WPbj9eAznFkJ8KFYbYcNZ3WY1WMdt5LJ87C9EbjxAuW/oeiN9BK90KEFIc8\n\ttQog==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=8D7+v7HL4Mk4Ra3e/6vzO4yqi9Wdf48aohe4v2iYTIM=;\n\tb=d8pAUTluntVMcce0+x1zv3ysL9rzTQpIsfJRNY6lHZh5JX3LhfUAKlN33BS+o3ZKIi\n\t7QNN40mWFFUOLBXe/gdOF+VFB6lNTSu8Ac9c75dHe112a+q9KffvtCdgDpxmMv0ezLJH\n\tCavuqWb8LVutBG206uGKC/vJ9NT49c1CwBBFyyS1POychxTEtDCJYv5l/jh95JAIKt0h\n\tQ4sXraVHiocCb0bP0Aq1B3VLUS7W79ytaDpecJA+Whx5REEMClpQJTcZmUwBP8MGn2bb\n\t3g2s3ucAF5+6lrapH0vhocu2Jsr/bH44EN3Zx35z5WakL1+0UadzwI5cCEsFX17/vRFL\n\tlWFg==","X-Gm-Message-State":"AHPjjUgVcSufIpxRedoN/9/eL3wPKYrXmB8pGD3VXh/vs9r1uFe+N2yR\n\t5gB4OCUBR36OmPpEb1YzddBw8yo7","X-Google-Smtp-Source":"AOwi7QD+khGrSXxWRwmgrfyiNGzBoCbZp3cnpwMJeTQ/2mG5mRpTZq4xM+N5WtXGUZwUPLd5nr3Ebg==","X-Received":"by 10.200.42.244 with SMTP id c49mr5049661qta.46.1505869435987; \n\tTue, 19 Sep 2017 18:03:55 -0700 (PDT)","From":"Florian Fainelli <f.fainelli@gmail.com>","To":"netdev@vger.kernel.org","Cc":"davem@davemloft.net, andrew@lunn.ch,\n\tvivien.didelot@savoirfairelinux.com, realmz6@gmail.com,\n\tadi-buildroot-devel@lists.sourceforge.net,\n\tFlorian Fainelli <f.fainelli@gmail.com>","Subject":"[PATCH 2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code","Date":"Tue, 19 Sep 2017 18:03:46 -0700","Message-Id":"<20170920010346.16871-3-f.fainelli@gmail.com>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170920010346.16871-1-f.fainelli@gmail.com>","References":"<20170920010346.16871-1-f.fainelli@gmail.com>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"There is no in tree driver for the KSZ8893M switch driver, so just get rid of\nthe code in that board file.\n\nSigned-off-by: Florian Fainelli <f.fainelli@gmail.com>\n---\n arch/blackfin/mach-bf518/boards/ezbrd.c | 47 ---------------------------------\n 1 file changed, 47 deletions(-)","diff":"diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c\nindex d022112927c2..c51d1b810ac3 100644\n--- a/arch/blackfin/mach-bf518/boards/ezbrd.c\n+++ b/arch/blackfin/mach-bf518/boards/ezbrd.c\n@@ -25,7 +25,6 @@\n #include <asm/dpmc.h>\n #include <asm/bfin_sdh.h>\n #include <linux/spi/ad7877.h>\n-#include <net/dsa.h>\n \n /*\n  * Name the Board for the /proc/cpuinfo\n@@ -105,11 +104,7 @@ static const unsigned short bfin_mac_peripherals[] = {\n \n static struct bfin_phydev_platform_data bfin_phydev_data[] = {\n \t{\n-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)\n-\t\t.addr = 3,\n-#else\n \t\t.addr = 1,\n-#endif\n \t\t.irq = IRQ_MAC_PHYINT,\n \t},\n };\n@@ -119,9 +114,6 @@ static struct bfin_mii_bus_platform_data bfin_mii_bus_data = {\n \t.phydev_data = bfin_phydev_data,\n \t.phy_mode = PHY_INTERFACE_MODE_MII,\n \t.mac_peripherals = bfin_mac_peripherals,\n-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)\n-\t.phy_mask = 0xfff7, /* Only probe the port phy connect to the on chip MAC */\n-#endif\n \t.vlan1_mask = 1,\n \t.vlan2_mask = 2,\n };\n@@ -140,29 +132,6 @@ static struct platform_device bfin_mac_device = {\n \t}\n };\n \n-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)\n-static struct dsa_chip_data ksz8893m_switch_chip_data = {\n-\t.mii_bus = &bfin_mii_bus.dev,\n-\t.port_names = {\n-\t\tNULL,\n-\t\t\"eth%d\",\n-\t\t\"eth%d\",\n-\t\t\"cpu\",\n-\t},\n-};\n-static struct dsa_platform_data ksz8893m_switch_data = {\n-\t.nr_chips = 1,\n-\t.netdev = &bfin_mac_device.dev,\n-\t.chip = &ksz8893m_switch_chip_data,\n-};\n-\n-static struct platform_device ksz8893m_switch_device = {\n-\t.name\t\t= \"dsa\",\n-\t.id\t\t= 0,\n-\t.num_resources\t= 0,\n-\t.dev.platform_data = &ksz8893m_switch_data,\n-};\n-#endif\n #endif\n \n #if IS_ENABLED(CONFIG_MTD_M25P80)\n@@ -228,19 +197,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {\n \t},\n #endif\n \n-#if IS_ENABLED(CONFIG_BFIN_MAC)\n-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)\n-\t{\n-\t\t.modalias = \"ksz8893m\",\n-\t\t.max_speed_hz = 5000000,\n-\t\t.bus_num = 0,\n-\t\t.chip_select = 1,\n-\t\t.platform_data = NULL,\n-\t\t.mode = SPI_MODE_3,\n-\t},\n-#endif\n-#endif\n-\n #if IS_ENABLED(CONFIG_MMC_SPI)\n \t{\n \t\t.modalias = \"mmc_spi\",\n@@ -714,9 +670,6 @@ static struct platform_device *stamp_devices[] __initdata = {\n #if IS_ENABLED(CONFIG_BFIN_MAC)\n \t&bfin_mii_bus,\n \t&bfin_mac_device,\n-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)\n-\t&ksz8893m_switch_device,\n-#endif\n #endif\n \n #if IS_ENABLED(CONFIG_SPI_BFIN5XX)\n","prefixes":["2/2"]}