From patchwork Thu Jan 4 21:26:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10145653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 889B560329 for ; Thu, 4 Jan 2018 21:45:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB85823794 for ; Thu, 4 Jan 2018 21:45:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA1FC28112; Thu, 4 Jan 2018 21:45:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCB4523794 for ; Thu, 4 Jan 2018 21:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbeADV1A (ORCPT ); Thu, 4 Jan 2018 16:27:00 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34003 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752344AbeADV07 (ORCPT ); Thu, 4 Jan 2018 16:26:59 -0500 Received: by mail-lf0-f68.google.com with SMTP id h140so3177533lfg.1 for ; Thu, 04 Jan 2018 13:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=bh/Mif122cKwDt1j6qqB0ndgNcn0BK8S50HeLbnA+aM=; b=tN0dQq2kP7+28Lw04XTGhlEZFqV3FCc8E7/QgxpdqpOIxo3cJpyS2zRERW80JRcxHy 6xgVYLokcHxkjjGXkNIOA2P65kVrSR4QD2XUGe+GX15y1i+ghGjWSnURuNy6HCE3+I+h 8a8Faoku5lKyQvUfNXYsOIsVgAQTGTLCZYrmtye6E+kpSo1Z15RwaqqPB6mhIUBWmJhj vp2GGvhO1/RfmmjZ4a3aBIoqraQitZBKEPB75rWe66mOFn7a3zUKL+4gH914ud8yWOGC 6/NLurTsy662O1srRSTO8VrEY88RcrEphy9UM34ITLmRLDMe1x92LjquX66DV5c5zJIi Pmng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=bh/Mif122cKwDt1j6qqB0ndgNcn0BK8S50HeLbnA+aM=; b=nnV43kvTnYdWRq10KerLeJaiCREM/xqspcSqokV/d6XbqyjUauyVv73/VX/m8vI1Ky yfCGcXYmVp3vXEu5DP9+7pAoedOoztZ54hTWABhndS1EyrFbrUGreBdQMECPtph1TYD/ SeQdTzdjDamiu3Q8LhP3yd8cSw8EroJCuB+TL0qxtW+hULDbEnHuUOPlFSyftqDCW8sJ Ban2cSkgdin0PY+hmt1qfmfa3MgqkUlhYv/d83mPsJpTXGCs7Re2mWjo5rUdUwV4flBL pWiyIwC0DAi+SQTVhMXEs0Mps7HB5yCwQpCbgLvWDcQHJBn2nuWpmxZjmF0ue4a6o9bg GpCQ== X-Gm-Message-State: AKGB3mLO/kYRIZ7Nn9Ebxa1oXYZBJYXVgrCGIZYB8/GeVx6kLlIt5UCW pjrMVe++xllKU3TNephNyg7aRQ== X-Google-Smtp-Source: ACJfBotEfQgbVc9LUvglkoLmQo6Wmpy5FRhI/0MwqOcSDeCUBdBPhsCLPZGNvAg/hboKYL9Jw+dUqg== X-Received: by 10.25.198.70 with SMTP id w67mr394550lff.40.1515101217676; Thu, 04 Jan 2018 13:26:57 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.85.181]) by smtp.gmail.com with ESMTPSA id o98sm766746lfg.50.2018.01.04.13.26.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 13:26:56 -0800 (PST) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Fri, 05 Jan 2018 00:26:54 +0300 Message-Id: <20180104212654.038005757@cogentembedded.com> User-Agent: quilt/0.64 Date: Fri, 05 Jan 2018 00:26:46 +0300 To: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Sergei Shtylyov Subject: [PATCH] sh_eth: remove sh_eth_plat_data::edmac_endian MIME-Version: 1.0 Content-Disposition: inline; filename=sh_eth-remove-sh_eth_plat_data-edmac_endian.patch Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since the commit 888cc8c20cf ("sh_eth: remove EDMAC_BIG_ENDIAN") (geez, I didn't realize that was 2 years ago!) the initializers in the SuperH platform code for the 'sh_eth_plat_data::edmac_endian' stopped to matter, so we can remove that field for good (not sure if it was ever useful -- SH7786 Ether has been reported to have the same EDMAC descriptor/register endiannes as configured for the SuperH CPU)... Signed-off-by: Sergei Shtylyov --- The patch is against DaveM's 'net-next.git' repo. Not sure who should apply the patch -- will prolly be faster if DaveM does... arch/sh/boards/board-espt.c | 1 - arch/sh/boards/board-sh7757lcr.c | 4 ---- arch/sh/boards/mach-ecovec24/setup.c | 1 - arch/sh/boards/mach-se/7724/setup.c | 1 - arch/sh/boards/mach-sh7763rdp/setup.c | 1 - arch/sh/kernel/cpu/sh2/setup-sh7619.c | 1 - include/linux/sh_eth.h | 3 --- 7 files changed, 12 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: net-next/arch/sh/boards/board-espt.c =================================================================== --- net-next.orig/arch/sh/boards/board-espt.c +++ net-next/arch/sh/boards/board-espt.c @@ -79,7 +79,6 @@ static struct resource sh_eth_resources[ static struct sh_eth_plat_data sh7763_eth_pdata = { .phy = 0, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_MII, }; Index: net-next/arch/sh/boards/board-sh7757lcr.c =================================================================== --- net-next.orig/arch/sh/boards/board-sh7757lcr.c +++ net-next/arch/sh/boards/board-sh7757lcr.c @@ -76,7 +76,6 @@ static struct resource sh_eth0_resources static struct sh_eth_plat_data sh7757_eth0_pdata = { .phy = 1, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .set_mdio_gate = sh7757_eth_set_mdio_gate, }; @@ -104,7 +103,6 @@ static struct resource sh_eth1_resources static struct sh_eth_plat_data sh7757_eth1_pdata = { .phy = 1, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .set_mdio_gate = sh7757_eth_set_mdio_gate, }; @@ -148,7 +146,6 @@ static struct resource sh_eth_giga0_reso static struct sh_eth_plat_data sh7757_eth_giga0_pdata = { .phy = 18, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, }; @@ -182,7 +179,6 @@ static struct resource sh_eth_giga1_reso static struct sh_eth_plat_data sh7757_eth_giga1_pdata = { .phy = 19, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, }; Index: net-next/arch/sh/boards/mach-ecovec24/setup.c =================================================================== --- net-next.orig/arch/sh/boards/mach-ecovec24/setup.c +++ net-next/arch/sh/boards/mach-ecovec24/setup.c @@ -159,7 +159,6 @@ static struct resource sh_eth_resources[ static struct sh_eth_plat_data sh_eth_plat = { .phy = 0x1f, /* SMSC LAN8700 */ - .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_MII, .ether_link_active_low = 1 }; Index: net-next/arch/sh/boards/mach-se/7724/setup.c =================================================================== --- net-next.orig/arch/sh/boards/mach-se/7724/setup.c +++ net-next/arch/sh/boards/mach-se/7724/setup.c @@ -374,7 +374,6 @@ static struct resource sh_eth_resources[ static struct sh_eth_plat_data sh_eth_plat = { .phy = 0x1f, /* SMSC LAN8187 */ - .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_MII, }; Index: net-next/arch/sh/boards/mach-sh7763rdp/setup.c =================================================================== --- net-next.orig/arch/sh/boards/mach-sh7763rdp/setup.c +++ net-next/arch/sh/boards/mach-sh7763rdp/setup.c @@ -87,7 +87,6 @@ static struct resource sh_eth_resources[ static struct sh_eth_plat_data sh7763_eth_pdata = { .phy = 1, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_MII, }; Index: net-next/arch/sh/kernel/cpu/sh2/setup-sh7619.c =================================================================== --- net-next.orig/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ net-next/arch/sh/kernel/cpu/sh2/setup-sh7619.c @@ -122,7 +122,6 @@ static struct platform_device scif2_devi static struct sh_eth_plat_data eth_platform_data = { .phy = 1, - .edmac_endian = EDMAC_LITTLE_ENDIAN, .phy_interface = PHY_INTERFACE_MODE_MII, }; Index: net-next/include/linux/sh_eth.h =================================================================== --- net-next.orig/include/linux/sh_eth.h +++ net-next/include/linux/sh_eth.h @@ -5,12 +5,9 @@ #include #include -enum {EDMAC_LITTLE_ENDIAN}; - struct sh_eth_plat_data { int phy; int phy_irq; - int edmac_endian; phy_interface_t phy_interface; void (*set_mdio_gate)(void *addr);