From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: Re: [PATCH V2] net: phy: tja11xx: Add TJA11xx PHY driver Date: Sat, 15 Dec 2018 21:01:26 +0100 Message-ID: References: <20181214161149.6493-1-marex@denx.de> <13845d07-3958-dd55-5e2f-bb088db057e7@gmail.com> <3cb8b832-b1b8-783e-d1c6-0e1859849775@gmail.com> <20181215195940.GF5922@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Marek Vasut , netdev@vger.kernel.org, f.fainelli@gmail.com To: Andrew Lunn Return-path: Received: from mail-wr1-f66.google.com ([209.85.221.66]:33001 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727229AbeLOUBd (ORCPT ); Sat, 15 Dec 2018 15:01:33 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so8572523wrr.0 for ; Sat, 15 Dec 2018 12:01:32 -0800 (PST) In-Reply-To: <20181215195940.GF5922@lunn.ch> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 15.12.2018 20:59, Andrew Lunn wrote: >>>> +static int tja11xx_config_init(struct phy_device *phydev) >>>> +{ >>>> + int ret; >>>> + >>>> + ret = tja11xx_enable_reg_write(phydev); >>>> + if (ret) >>>> + return ret; >>>> + >>>> + phydev->irq = PHY_POLL; >>>> + phydev->autoneg = AUTONEG_DISABLE; >>>> + phydev->speed = SPEED_100; >> >> One more thing: In the data sheet there are SPEED_SELECT bits allowing >> to set also 10MBit and 1GBit mode. Don't you want to support this? > > Hi Heiner > > Did you read footnote 2? > > Speed Select. 00: 10 Mbits; 01: 100Mbit/s, 10: 1000Mbit/s, 11: > reserved. a write access value other than 01 is ignored. > Uh, missed that. Thanks for the hint. > So the bits are there, but not really used. It can only do 100Mbit/s. > > Andrew > >