Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1438404pxu; Thu, 8 Oct 2020 11:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8kJ8G0+FtyNnyZN2CV7768QVXkjGq/skLVAzEFdud1qps/fd0T3ksGTzW3GN22WKUjwTs X-Received: by 2002:a17:907:3393:: with SMTP id zj19mr9817913ejb.258.1602181657719; Thu, 08 Oct 2020 11:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602181657; cv=none; d=google.com; s=arc-20160816; b=wnOtmd/BE8DkILCe1TZ6VuSuEngJcncpxwpwYwwHgiElVHQ6wlRhqrVPvCyHplFbPO EzJngbHIUSRcYsBJ8dN5jVDluooeC/cmQdcIO//ItSocw99dI5DNtIo4EJ6qpMFStmUC 5iYir22M4rDPXARCg4T9+1epdUhqefzHhprbhFzwWp132HbJhdfqSP/ufw7VtKehtefQ cHFe+wEnoeU0/EBRZyCY/+Fc381lWdRjh7Gm8IevLWP4g+S3Py8ztT8Wv2oISy4sBbOh a4pv6gMBcwDfMFcs/TkpTkiVuNyPeWgb2miFS7jzZAJE9u254T/sV2VN3lBz6lE2KZDV AL4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Fb5y0qYnS2/v0qcuhEtz+otsFlzC+73Oa2AqokeyOWs=; b=F0X8Lau4EMcNXObPQhc7jdViOkQmFzLC37sd1WGmyphiXJnEiMk89KeFSikwNL9Vi/ qGZ+uP7Adzg/0uIg+LniFrSO9O4WVIS283y+OJL6wiLwB6SHA/4+UyWN2oP0YwE673fO W504a5kqIvVnqwjEhBCzsZb5fOfS3a3p02QUsTy/D+FnnWGGAZ5cmVJZ3oCpiQYd4N1Q zYF8KH5eKUDbRXeywJY8xbdnnb8geHd2I8z+5KddKZHvha+RfqHmRosrjUr3ruLPjEqy 6hYcgmkhNkTYGVWsAKoRFTsqcX+XtkSiDjtdMIyKYmwzt1MdDW+PjVCvVveRwXSZjmCD 999g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Di3863Ag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si4410205eje.545.2020.10.08.11.27.13; Thu, 08 Oct 2020 11:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Di3863Ag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729796AbgJHRA4 (ORCPT + 99 others); Thu, 8 Oct 2020 13:00:56 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34518 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbgJHRAz (ORCPT ); Thu, 8 Oct 2020 13:00:55 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 098H0oeN031355; Thu, 8 Oct 2020 12:00:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1602176450; bh=Fb5y0qYnS2/v0qcuhEtz+otsFlzC+73Oa2AqokeyOWs=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Di3863Ag9nQCexzB7RA/eMhlvfurs36GS/1wTyikPdhbhgVxj15bE+xbR7KaXPPDP EU7jc36EtG6V/kfGmwKwxZM8uIOvMxT/OtH0l2ULioOtdY4vKD1eEfxvXBhuc+zgOM dP/kmt+VX+kQvfIU1e2/FhAye7KDtlaXVGg4wIZQ= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 098H0ox7062737 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Oct 2020 12:00:50 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 8 Oct 2020 12:00:50 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 8 Oct 2020 12:00:50 -0500 Received: from [10.250.67.147] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 098H0na1024161; Thu, 8 Oct 2020 12:00:49 -0500 Subject: Re: [PATCH net-next 2/2] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY To: Heiner Kallweit , , , CC: , References: <20201008162347.5290-1-dmurphy@ti.com> <20201008162347.5290-3-dmurphy@ti.com> <62bbff66-c2f0-df0c-82c2-7bd8b9d63220@gmail.com> From: Dan Murphy Message-ID: <2baf2f6a-bad1-d008-fa11-3389c6b38f5b@ti.com> Date: Thu, 8 Oct 2020 12:00:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <62bbff66-c2f0-df0c-82c2-7bd8b9d63220@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Heiner On 10/8/20 11:51 AM, Heiner Kallweit wrote: > On 08.10.2020 18:23, Dan Murphy wrote: >> The DP83TD510E is an ultra-low power Ethernet physical layer transceiver >> that supports 10M single pair cable. >> >> The device supports both 2.4-V p2p and 1-V p2p output voltage as defined >> by IEEE 802.3cg 10Base-T1L specfications. These modes can be forced via >> the device tree or the device is defaulted to auto negotiation to >> determine the proper p2p voltage. >> >> Signed-off-by: Dan Murphy >> --- >> drivers/net/phy/Kconfig | 6 + >> +static struct phy_driver dp83td510_driver[] = { >> + { >> + PHY_ID_MATCH_MODEL(DP83TD510E_PHY_ID), >> + .name = "TI DP83TD510E", >> + .probe = dp83td510_probe, >> + .config_init = dp83td510_config_init, >> + .soft_reset = dp83td510_phy_reset, >> + .features = PHY_BASIC_FEATURES, > Per default phylib uses genphy_read_abilities() to auto-detect > the features. Doesn't your PHY support the needed clause 22 > standard registers? Or are they incorrectly populated? > > Maybe better than setting PHY_BASIC_FEATURES and then removing > unsuported features in dp83td510_config_init() would be to > implement phy_driver callback get_features. Then you can set > the supported fatures directly. > Thanks for the review.  I will have to look at this maybe the call back will be better. I will probably post v2 after net-next opens for 5.10. I wanted to get some reviews on this patch before net-next closes for the merge window. Dan