Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2494159imm; Thu, 23 Aug 2018 23:41:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbRHYTWz5OQzc+OHrH7GAWkQ9qaf1EQWGs6aTRwM5rq64lIi+naP/Re7aaDS1jFA/F645eA X-Received: by 2002:a63:5d4b:: with SMTP id o11-v6mr338331pgm.349.1535092880045; Thu, 23 Aug 2018 23:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535092880; cv=none; d=google.com; s=arc-20160816; b=zodpKpCgXqKu8Ps5fdKZIAP4VzWC1mdcJmjSQp/au+M2kES/GW9n2zDv0SwURTjnOx QNzPlasSnhXMcvmLKHiavKHvmFG9knSnsR/Pt2aDzKbK0jb2XatrxTZ2HukFB6+Pdzrh MKLj378uWNu/cxd/I6lVd+nCi1y4UW5UiZCsQz/EWn1LlxNNvXBk2dP19ATj37d0nxuf s5ilKCc08AMCnfkntZbdr2OCgk5CcgXFhpFkENMzksiqPndKrkWZqYQeQfNNfr7U+WHa s6MzswmcWdcZbxc5I/7QnVa2r4Ip1dwS3kzzOEVxP7ITx9P1kSbdBpj3d8AN9t5DoEzs szLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=leqmTwlbnxcPqM88pWOTLPm5Mew42cZ3yqALaqEGkAc=; b=JocvZxpV20H1PbpM/QditOmZyAxGnpVKKljunOQ9epL5/oqo5tTVCIswPhAR7n8fp3 RIGWzVb2+yLHp4hRiVjO1tYnN9YKRlA0NwFS/nYAZ1IB2fhpmUcX1+06QnL7kIGl919q /ecVL8My8pkMkFJu8MIFnFLOwYipCRxusPj8rnPMVuK+vpI2XKm+Sqsrs+wBdYtUFP0L xZbSmPLi5/5m8GX/DH/S1CGFWDv+8nB6iBOkgmsshGjBWJsq/i4gOtpLiND7/RgyzFf/ madWmSk3EnZaE3R5mPU0lVrIIv3rB4Ni179h8drHyrwgMzNHZLo8qmfdw7exHGMuAQAi ePIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x8-v6si5961923pgr.445.2018.08.23.23.41.03; Thu, 23 Aug 2018 23:41:20 -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; 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 S1726956AbeHXKNJ (ORCPT + 99 others); Fri, 24 Aug 2018 06:13:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11193 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726256AbeHXKNJ (ORCPT ); Fri, 24 Aug 2018 06:13:09 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EF534B3FB09EC; Fri, 24 Aug 2018 14:39:52 +0800 (CST) Received: from [127.0.0.1] (10.63.173.108) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Fri, 24 Aug 2018 14:39:47 +0800 Subject: Re: [PATCH NET 3/3] net: hns: add configuration constraints for 1000M half To: Andrew Lunn CC: , , , , , References: <1535082143-122281-1-git-send-email-lipeng321@huawei.com> <1535082143-122281-4-git-send-email-lipeng321@huawei.com> <20180824034119.GA29111@lunn.ch> From: "lipeng (Y)" Message-ID: <194ac663-94d8-55e2-0231-a6be53e35f04@huawei.com> Date: Fri, 24 Aug 2018 14:39:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180824034119.GA29111@lunn.ch> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.63.173.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/8/24 11:41, Andrew Lunn wrote: > On Fri, Aug 24, 2018 at 11:42:23AM +0800, Peng Li wrote: >> Hisilicon hip05 and hip06 board network card do not support >> 1000M half configuration. Driver can not config gmac as >> 1000M half. >> >> Signed-off-by: Peng Li > Hi Peng > > Does the driver remove SUPPORTED_1000baseT_Half from > phydev->supported? If you do that, the PHY should never negotiate > this speed. > > Andrew Hi, Andrew, The driver has removed SUPPORTED_1000baseT_Half from phydev->supported. the code is : #define MAC_GMAC_SUPPORTED \ (SUPPORTED_10baseT_Half \ | SUPPORTED_10baseT_Full \ | SUPPORTED_100baseT_Half \ | SUPPORTED_100baseT_Full \ | SUPPORTED_Autoneg) h->if_support = MAC_GMAC_SUPPORTED; h->if_support |= SUPPORTED_1000baseT_Full; phydev->supported &= h->if_support; As gmac do not support 1000M half, we add this patch to make sure that no users can set 1000M half in any case. Thanks > > . >