Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp604175imm; Wed, 18 Jul 2018 07:40:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf7y0h3UOxmiXp+WTPokGFsQHwKWpk0dJaJZwUQF/hSuXPopn7e9JMgECjd5vtZRr6JdhLC X-Received: by 2002:a63:bf43:: with SMTP id i3-v6mr6112508pgo.342.1531924816310; Wed, 18 Jul 2018 07:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531924816; cv=none; d=google.com; s=arc-20160816; b=Whe7opXhL+k5CNyk+GXpLkjWPREPbCcrhbU8awiNEi5lCgVKG5AHOL7fW2D8EOaYlK 7sAxLFZmHNUjvxiZBUF766kZ4myYYekmSV3fQWP3dB5gFLESaiOVGF35QsVJISznUS9z +LOWMEmpc8XEeBb2o2/cTBwJwDp2ccNtqZsybdzSM2cBb89UXoY64JLAGkVmqWcQUqNP 8f2BQNq9RYAhjZCsu9+0fxKFq2+jWQISzKkmhxySv6v9ZtizN5nHJKRp1iqO/Etj7F76 GrxEf/qBLEEtzqaIIvjxHHxMRaojUg9avz5VOgaJt/4ncS1mlDknQ8T/OBJ4YG2Z23b5 CTOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=b749QrOAleM5Vkjd816br6AQuxxqXff/A8+zlR3tUxk=; b=hKS+BuB7vJ/dRElHfB0HWgk6SXmcyeh1QuMp6vpYLlXcqESAZ5tC2+GkCCHWbFr4fF kXc4X5pyHWd/gxnO8uQJsWiR+6x+fk0Pj+lDyffeq3tBQgjDxGepB4RfttMN5Ae4/KSS dUbeh/aQuXVyfQMKh3H9cqtEMpNIpkOkNUkoCKsJYopvgZmyVHPlG6WdIUOqaz9nmWSL uLqJ+N503PzNmFDjfsRO9GyZwFaIOaWVuCzY0JbHUD1v/Qyj1ddcUONROV6XNEt1fsuO SCjTz+TBg/SnvGcYFlQUr2HdAIURHjAoBhO5ulvv/BYiqFT6oYupE6B0tkTi2NAPdbzA xrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kSCcKchy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26-v6si3439226pge.339.2018.07.18.07.40.01; Wed, 18 Jul 2018 07:40:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kSCcKchy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730899AbeGRPRj (ORCPT + 99 others); Wed, 18 Jul 2018 11:17:39 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38445 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730429AbeGRPRj (ORCPT ); Wed, 18 Jul 2018 11:17:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=b749QrOAleM5Vkjd816br6AQuxxqXff/A8+zlR3tUxk=; b=kSCcKchyretG1PAcl/7N30I+uaQg7IjQBj44s41YT4/wQlESXEMQ9155FRT/bTeH28g8E4F9+Lg60ODEAM0XugBCq+ulHdAcYViFjS3rWxLwemCFkJBpbE9piR04HnIUgulJUq/xAl9KgQX8uAqEQzVVosjN5DQa2GKQBbtFqwc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1ffnbr-0002zJ-PM; Wed, 18 Jul 2018 16:39:19 +0200 Date: Wed, 18 Jul 2018 16:39:19 +0200 From: Andrew Lunn To: Camelia Groza Cc: f.fainelli@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: use generic clause 45 autonegotiation done Message-ID: <20180718143919.GA10856@lunn.ch> References: <1531919535-20269-1-git-send-email-camelia.groza@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531919535-20269-1-git-send-email-camelia.groza@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 18, 2018 at 04:12:15PM +0300, Camelia Groza wrote: > Only Clause 22 PHYs can use genphy_aneg_done(). Use > genphy_c45_aneg_done() for PHYs that implement Clause 45 without > the Clause 22 register set. > > This change follows the model of phy_restart_aneg() which > differentiates between the two implementations in a similar way. Hi Camelia What about phy_config_aneg()? I would assume any sort of auto-neg action needs to check for c45 without c22, before calling a genphy_ function. Do you think it is possible to write a genphy_c45_config_aneg()? If not, we might want to return -EOPNOTSUPP. Andrew