Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 342A2C10F13 for ; Tue, 16 Apr 2019 23:47:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F273720880 for ; Tue, 16 Apr 2019 23:47:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r4qptBaM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730038AbfDPXrq (ORCPT ); Tue, 16 Apr 2019 19:47:46 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:47045 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728373AbfDPXrp (ORCPT ); Tue, 16 Apr 2019 19:47:45 -0400 Received: by mail-ot1-f67.google.com with SMTP id s24so19124767otk.13 for ; Tue, 16 Apr 2019 16:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iIpvgFM238qVi1rHjqc/4vvCqOcVgYA4vWHld7mInRA=; b=r4qptBaMvkC1erXFciiNg72d43lOphqut7dGLU3EfMxJjVMWxxyTkqJ4Jw+4No9a+U PUwZRavktN5qOWIB5vOOvqQNZRlqpsBfvCm/+8284pJBx8s4Ycim1kyHE93LwCWXIWZd x4q5ffP9nmplzCIMlCjRqG2ONehjv5ogTUxyk1Cq85EyGz6Nn7JmILMvXBEdjKnhrqTK mmctGOG+/Vle/QiePCZs+pU50yNlsY2Yo1eSlNfAAr9UioQCYHh7km5jGOKLLb6fybBJ pqkiQRYy9Jc/u9EMJ3+sKWl4oA8JMCbC2C5j8hHAYAkRs9FtSoDCeIue4jMxKhbxC+wT x5Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iIpvgFM238qVi1rHjqc/4vvCqOcVgYA4vWHld7mInRA=; b=b5NP1oU0F3V09FSuzZqZPe78CTwocogyXqoVrr50eS76N98PGYsYeJYZIhKzSERzi9 O/g5hqLd2aGDsu51hzWVrAzBxy4Qq1mAmGjzNl+rP/4T5BeDR6gOZ28mh9x8njennndj CN+DfNLK01siIOAskhPc2xKtwFlsH0+XGPNwn4HiXz8EEg6yLC0Uk3t3VR2nCJ8fy1jH kdzASIYxqZa24pW/8bXgirO0iY+++HEJIIFJxmARz+4L5Jm81GVaF2pJBUtH98Zsyy9m 1pKeSzsv8UST5p5LOam80Xg8PaQgNUAfv/nLqw034G/tyXiN02lYIgdGfwNZVCZznIpv apOg== X-Gm-Message-State: APjAAAWDmPuocoNmnVwXDj9mTl4IoMjf5qCFqanCKfichRfez2PK0VvI ROgp2aNbAxkN0XWvgTZNx0C+w/sV X-Google-Smtp-Source: APXvYqxjMBodlY2uvZeaNDw8zINcEJrKX7HT7Wxo+7dA7tybTWBqoPHb69Fp7S/tjfCU5iMQwTIiag== X-Received: by 2002:a9d:61cf:: with SMTP id h15mr7358708otk.140.1555458464702; Tue, 16 Apr 2019 16:47:44 -0700 (PDT) Received: from [192.168.1.2] (ip68-101-123-102.oc.oc.cox.net. [68.101.123.102]) by smtp.googlemail.com with ESMTPSA id k25sm22055065otj.72.2019.04.16.16.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 16:47:43 -0700 (PDT) Subject: Re: [PATCH net-next] net: phy: bcm87xx: improve feature configuration To: Heiner Kallweit , Andrew Lunn Cc: David Miller , "netdev@vger.kernel.org" References: <09a26e61-aa21-8be7-0f51-38897abb2f7b@gmail.com> <20190416222553.GA25164@lunn.ch> <1fc48fb9-4f99-dbd0-8784-c40b61f91ac9@gmail.com> From: Florian Fainelli Message-ID: Date: Tue, 16 Apr 2019 16:47:42 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1fc48fb9-4f99-dbd0-8784-c40b61f91ac9@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 16/04/2019 15:34, Heiner Kallweit wrote: > On 17.04.2019 00:25, Andrew Lunn wrote: >>> @@ -194,7 +191,7 @@ static struct phy_driver bcm87xx_driver[] = { >>> .phy_id = PHY_ID_BCM8706, >>> .phy_id_mask = 0xffffffff, >>> .name = "Broadcom BCM8706", >>> - .features = PHY_10GBIT_FEC_FEATURES, >>> + .get_features = bcm87xx_get_features, >>> .config_init = bcm87xx_config_init, >>> .config_aneg = bcm87xx_config_aneg, >>> .read_status = bcm87xx_read_status, >>> @@ -206,7 +203,7 @@ static struct phy_driver bcm87xx_driver[] = { >>> .phy_id = PHY_ID_BCM8727, >>> .phy_id_mask = 0xffffffff, >>> .name = "Broadcom BCM8727", >>> - .features = PHY_10GBIT_FEC_FEATURES, >>> + .get_features = bcm87xx_get_features, >>> .config_init = bcm87xx_config_init, >>> .config_aneg = bcm87xx_config_aneg, >>> .read_status = bcm87xx_read_status, >> >> Hi Heiner >> >> The product briefs for these two devices say: >> >> MDIO interface compliant to IEEE802.3ae Clause 45 with >> extended indirect address register access >> >> It might be possible to just detect most of this? >> > Unfortunately I have no datasheet. There would be more things to > fix in this old driver. The C45 register accesses should be > switched to proper phy_mmd_read/write calls. Checking the datasheet would not be a problem, I can reply later next week when I am back to work. > >> Florian: Do you have access to any boards using these devices? That I do not unfortunately, those are early 10G PHYs. -- Florian