Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8138272rwn; Wed, 14 Sep 2022 09:28:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LFxJMQvd26u2iACYWVwWxRauwZl3oo41C2C0yuMKD8WJ6Nws0whr6EotlEZcpFrJ+GGt2 X-Received: by 2002:a17:90a:4f4f:b0:202:7ab1:46ec with SMTP id w15-20020a17090a4f4f00b002027ab146ecmr5832005pjl.32.1663172902326; Wed, 14 Sep 2022 09:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663172902; cv=none; d=google.com; s=arc-20160816; b=wMM6G74v2qOSis4Mty9pd+C+UrquKLs4rNj9YmwByIrsLzowsj1mQUAvAzpakgR4k7 nAZL5245g5L7TogmpipnBWVkfLI66suGD8iDuK7GqCuyvb3zbFjQ8QieXOp3HvHgr3Mi H6RLmiIlmCPd+e0ngGdewqg61eaIGEjPQBcuN+TdUsDK693PryWuHfJfWDXLikW65cwk PZ3o9hE/BXtX2GGQ/QncjnZnShazzhWnmhpOKuWCvlqSj/XOLI9vs7pNar+DR9GGnSmW 9KDvoi+B3QwavOc83OoXQx18Ak0Tfjn6dh5Lj7rFBkm9OGnSN0G642y+HLj3Q3DcjV/k aU4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FwesLpLPuGyJPMI7wyXhTgLiMYCetylz5H1vHnn5ZMM=; b=aqPkYLkLpnBPF+FRERdQzh56iqLRoMK/VPtl2nrfnsOxLebqd9qvx4RzpHR2bw+nA7 HLpUEFV36MLaphrGQhvLB9lMvpjymJdNyutBYoBX2JW3ZUnPowEijrl25dimWkoZ+qTq 6PQI1weTO22tAtln7eyYY+eNeBXOAG0Fc0mdefXxPiwmDuvc9fpmYpRRExNAN2tMtSMO 0Jkjr8BDfUCstGUR/1deHAxXWLtm9P1yqjCr61R78LXSpNfUY0puTsi9rgWWllmJ78a5 nfG9JQngxhPZBviKqWtR86tSUapG0I7o3nRZfj06Mf2uvApWpxgUBTRQxmxxzWiU0Lyv Pruw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pBAjllSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a631404000000b0042b77c2f609si15974650pgl.504.2022.09.14.09.28.10; Wed, 14 Sep 2022 09:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=pBAjllSS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229765AbiINQFK (ORCPT + 99 others); Wed, 14 Sep 2022 12:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiINQFH (ORCPT ); Wed, 14 Sep 2022 12:05:07 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2C0C52DF5; Wed, 14 Sep 2022 09:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FwesLpLPuGyJPMI7wyXhTgLiMYCetylz5H1vHnn5ZMM=; b=pBAjllSS/SZ1vhpJFqQmPESKFr NpVVBneVr5n1KZa1BfzH/ww6j9GbAqsBAX3AXjNnPxS3rKpbsXB6t4/RMGKA0syJFlgB5UXu1ViJ4 c7NR/3ysaCOxZnOP6iY5LjIrdLlzO4AwatGd7zdAOc6uUyCCuS+2KT/z1xUAyfWoA5xfAbfyXa5mU /JfUkHw+dDoL+xvH+M01ZAk1G2n4V/EXz1FvxQywtoMnbokckwxuiVpSpQ8xzKshlJbiveE5gnRLj dob/Yl9sJCOejEJIdKWHEk5te/VK/u8F38TVNsrZf8WxMVKqxGgb6F8DWj06Il/LmUM0oiGFMpE7F MlrYsLNQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34330) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oYUsk-0004aV-P3; Wed, 14 Sep 2022 17:04:58 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oYUsj-0001mU-C4; Wed, 14 Sep 2022 17:04:57 +0100 Date: Wed, 14 Sep 2022 17:04:57 +0100 From: "Russell King (Oracle)" To: Siddharth Vadapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, krzysztof.kozlowski+dt@linaro.org, vladimir.oltean@nxp.com, grygorii.strashko@ti.com, vigneshr@ti.com, nsekhar@ti.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com Subject: Re: [PATCH 6/8] net: ethernet: ti: am65-cpsw: Add support for SGMII mode for J7200 CPSW5G Message-ID: References: <20220914095053.189851-1-s-vadapalli@ti.com> <20220914095053.189851-7-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914095053.189851-7-s-vadapalli@ti.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2022 at 03:20:51PM +0530, Siddharth Vadapalli wrote: > +#define MAC2MAC_MR_ADV_ABILITY_BASE (BIT(15) | BIT(0)) > +#define MAC2MAC_MR_ADV_ABILITY_FULLDUPLEX BIT(12) > +#define MAC2MAC_MR_ADV_ABILITY_1G BIT(11) > +#define MAC2MAC_MR_ADV_ABILITY_100M BIT(10) > +#define MAC2PHY_MR_ADV_ABILITY BIT(0) In addition to my other comments, this looks like a reimplementation of the LPA_SGMII* constants found in include/uapi/linux/mii.h -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!