From patchwork Wed May 16 19:56:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10404779 X-Patchwork-Delegate: geert@linux-m68k.org 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 5AB19601F9 for ; Wed, 16 May 2018 19:56:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4957D286B2 for ; Wed, 16 May 2018 19:56:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D835286D3; Wed, 16 May 2018 19:56: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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 F2497286B2 for ; Wed, 16 May 2018 19:56:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbeEPT4t (ORCPT ); Wed, 16 May 2018 15:56:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52862 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbeEPT4s (ORCPT ); Wed, 16 May 2018 15:56:48 -0400 Received: by mail-wm0-f68.google.com with SMTP id w194-v6so4271360wmf.2 for ; Wed, 16 May 2018 12:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Iih4XGz2lg6zTcuhTFJsxBL3gP9Il1Kh8DLyFYTdHDI=; b=hZysmQ9e9dCaWp2yPotlwcFuhzPM9r5RZbeAFhqV0+UrATrg5NAW3ackk1Hd4ACLio vOLI8qlhwPc54CsbL8YyjvDqS4Z6TrK9A7p2f/sY+Al2MJ2YUOsZ904BLiYkcPNCaV+Z KdeGa9PiQK7DojasdkpJa6dMPOZNwauDQBiTtte5yAxcDmed+hJxRDZqc6cVC57giEL3 IJBRB8fpNQLe8Jv2E1r9hP5/fwIunV0h8555X+vy5T8SPlKH06tf+oRQcSumGhqg3JT8 ktM8gwEauibHLGQh8GpVa3cqlJaK5qqLOLdjiXqJP8Vae82ReWQNafigW3gwE2Aiu48w QvYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Iih4XGz2lg6zTcuhTFJsxBL3gP9Il1Kh8DLyFYTdHDI=; b=nf8IFBXlha8HKWZg+uwjqh8AEJxHdDRlYQdDeC6fIDZOqkhZv4opUcP6MMTKrqhQiG 6G9E4rN37D8nd7adzqadRxpb02sjGkImPBmQuJYjPGtQNXn8RYOPNo0+ij29UWlRwkS9 ABJQuZgds5k8zDhiNY8ERL935/CgdgmbUB2LNCq1/HSa7rwvHCLRCUSDyI69ZQ+7TCaT 4Bbvry5X0zekpeUxu1LaKu9t+I4ghGx8GDIFSw08pqtXhxE6LtRUAwK84ZmmfK7QOXT0 oa3u8b+X+OEcU5YTNXBNWAgiJmDKTY/+uA63th9wwZVjMrjlgczIB49g81NTBO2z8Vch Mieg== X-Gm-Message-State: ALKqPwdhuxPsSJVYN2VtXddGp+TTUqN4YjbziuTyzCMR/8Gc21d/XrEd MB8sG63U4oseK0SLcdwPtvj3Y/R1S6E= X-Google-Smtp-Source: AB8JxZom8IY1+DL47Qpj2iWNPOdr6S95iK4INMTp46aJiJN3WGay1jnmMsrLzJ5CD99yGWLmxRRfrA== X-Received: by 2002:a2e:650a:: with SMTP id z10-v6mr1390488ljb.41.1526500607305; Wed, 16 May 2018 12:56:47 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.40]) by smtp.gmail.com with ESMTPSA id w2-v6sm545747ljw.70.2018.05.16.12.56.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 12:56:46 -0700 (PDT) Subject: [PATCH 1/3] sh_eth: add RGMII support From: Sergei Shtylyov To: netdev@vger.kernel.org, "David S. Miller" Cc: linux-renesas-soc@vger.kernel.org References: <087c91a3-a451-6de7-5e0f-a835f8cc98f1@cogentembedded.com> Organization: Cogent Embedded Message-ID: <38a56174-c05d-8864-adf0-d3099e426a60@cogentembedded.com> Date: Wed, 16 May 2018 22:56:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <087c91a3-a451-6de7-5e0f-a835f8cc98f1@cogentembedded.com> Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The R-Car V3H (AKA R8A77980) GEther controller adds support for the RGMII PHY interface mode as a new value for the RMII_MII register. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/sh_eth.c | 3 +++ 1 file changed, 3 insertions(+) Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -466,6 +466,9 @@ static void sh_eth_select_mii(struct net u32 value; switch (mdp->phy_interface) { + case PHY_INTERFACE_MODE_RGMII: + value = 0x3; + break; case PHY_INTERFACE_MODE_GMII: value = 0x2; break;