From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbcFTFj2 (ORCPT ); Mon, 20 Jun 2016 01:39:28 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:35518 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbcFTFjR (ORCPT ); Mon, 20 Jun 2016 01:39:17 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <1466400437-21277-1-git-send-email-appanad@xilinx.com> References: <1466400437-21277-1-git-send-email-appanad@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC PATCH] net: macb: Add gmii2rgmii converter support From: Florian Fainelli Date: Sun, 19 Jun 2016 22:39:04 -0700 To: Kedareswara rao Appana , nicolas.ferre@atmel.com, punnaia@xilinx.com, harinik@xilinx.com, anirudh@xilinx.com, michals@xilinx.com, appanad@xilinx.com CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn Message-ID: <5F581884-194F-46BD-98E4-A3DAE17A2A7C@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On June 19, 2016 10:27:17 PM MST, Kedareswara rao Appana wrote: >This patch adds support for gmii2rgmii converter >in the macb driver. > >The GMII to RGMII IP core provides the >Reduced Gigabit Media Independent Interface >(RGMII) between Ethernet physical media devices >And the Gigabit Ethernet controller. >This core can switch dynamically between the >Three different speed modes of operation (10/100/1000 Mb/s). >MDIO interface is used to set operating speed of Ethernet MAC. > >Signed-off-by: Kedareswara rao Appana >--- >--> Tried to include this Coverter support in the >PHY layer but it won't fit into the PHY framework as the >coverter won't have vaild vendor/Device id registers. >--> The Converter has only one register (16) that need's >to be programmed with the external phy negotiated speed. >--> The converter won't follow the Standard MII(ieee 802.3 clause 22). >--> Will appreciate if someone can help on adding this coverter support With the fixed PHY emulated PHY and registering a link_update callback (see drivers/net/dsa/bcm_sf2.c for an example), you could read specific registers which indicates link parameters and update the PHY device with these. How exactly is this converter working? -- Florian