From patchwork Mon Oct 22 10:32:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Abreu X-Patchwork-Id: 987570 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="LsP8rW8y"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42dtCD5S9Xz9sD3 for ; Mon, 22 Oct 2018 21:33:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbeJVSvJ (ORCPT ); Mon, 22 Oct 2018 14:51:09 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:44612 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728726AbeJVSvJ (ORCPT ); Mon, 22 Oct 2018 14:51:09 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 0EECC10C1720; Mon, 22 Oct 2018 03:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1540204391; bh=WUTruGVPMXzLxPxGgLM+f+qmTctnRRIot2HutyKWwEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=LsP8rW8ytPovoWGcaAchyxCXFt7e913Kae+Z9mIm8y2r/xyNBwvBlMH1xU6SqrMdh LXmGR1Iymd6h0GXlSLP2JCWFnsHpPRaS3oxBWYwmTF4Q+5JqgKmYbbOV9DxW+gxcpS pivQDwETrwXhnrA5RyluO/yfP0HybnR2zwwcKqPLqHGUdD935SRYmvguhrWQWUQBlk Rl1w8xlJMzmhUMoTBit4/BPPTtA/9pN9Tt2lGrtKMJ4NafXDAJE4zbY20ZKTTx73D6 cbj6HwQrzrpr9EncDJ1Cdu5vLkRxVo3D3d/fmUYF3mj7W8jVmWsTR6wXDqUtA5oHah 7NvbOJi/XAzlg== Received: from joabreu-VirtualBox.internal.synopsys.com (joabreu-e7440.internal.synopsys.com [10.107.19.15]) by mailhost.synopsys.com (Postfix) with ESMTP id 8D1875096; Mon, 22 Oct 2018 03:33:09 -0700 (PDT) From: Jose Abreu To: netdev@vger.kernel.org Cc: Jose Abreu , Andrew Lunn , Florian Fainelli , "David S. Miller" , Joao Pinto Subject: [PATCH net-next 4/4] net: phy-c45: Populate missing features Date: Mon, 22 Oct 2018 11:32:49 +0100 Message-Id: <42cf41718e693f4e7dfd956bac73bdaff4ee22bf.1540204183.git.joabreu@synopsys.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Populate the missing features field of Generic 10G PHY Driver. This will be overwritten in .config_init callback so we can just set basic 10G funcionalities in the field. Signed-off-by: Jose Abreu Cc: Andrew Lunn Cc: Florian Fainelli Cc: "David S. Miller" Cc: Joao Pinto --- drivers/net/phy/phy-c45.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy-c45.c b/drivers/net/phy/phy-c45.c index 7e62bd7795a3..99c66b452af9 100644 --- a/drivers/net/phy/phy-c45.c +++ b/drivers/net/phy/phy-c45.c @@ -383,7 +383,7 @@ struct phy_driver genphy_10g_driver = { .name = "Generic 10G PHY", .soft_reset = gen10g_soft_reset, .config_init = gen10g_config_init, - .features = 0, + .features = PHY_10GBIT_FEATURES, .aneg_done = genphy_c45_aneg_done, .config_aneg = gen10g_config_aneg, .read_status = gen10g_read_status,