From patchwork Wed May 22 19:57:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10956677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3560A1395 for ; Wed, 22 May 2019 19:58:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F4EC1FEBA for ; Wed, 22 May 2019 19:58:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 304C51FF65; Wed, 22 May 2019 19:58:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BF1E71FEBA for ; Wed, 22 May 2019 19:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aFOu4MHxRCNvyTD1zRhWkpgUfQAzw0RngmiGx/W0pPs=; b=nGYmkBi3ENT8+U qTof7y2RY9/kwq+JG+Lk5PYMG455KMeP1q0XfOxFdH99ElJZ+q1CU8kJYAgeBuygXFZiZfC5wCwCk TCwTMzN3wtXG9Hjekcqes90ZGFmqXS5CtIYny1ORly7ZanJASu7zeaHSs/wkrAasw9qfM0UsIY9+7 ooKzrjDSxEr77rMdv0Pkq8xGQ/qb8WJ2Xr8HZZK5f3pxo/SLP3rLM6uS/56h+fE+3EpWi4FYRrRcu SjXXBLmdUbZ3Ycmzoljo/2mmK9Z2P3h2I+8rdUFfT6tXH5wEm+ra4f5gIWydtlzclpT1m6yFWig04 aqLZXPxQc5bHsg3kTAqA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTXNq-0000Ea-IQ; Wed, 22 May 2019 19:58:42 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTXNn-0000DY-RN for linux-arm-kernel@lists.infradead.org; Wed, 22 May 2019 19:58:41 +0000 Received: by mail-wm1-x344.google.com with SMTP id j187so5479377wma.1 for ; Wed, 22 May 2019 12:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=C4CpDQKXaTSWK266x4L54FFna7lnQA4Dh6pv535OwUk=; b=Ww/IA8ZeGY3Q177k7ssd5U53pRIf6TWG2NUBdLTxG8RRTY8aYyrz5zTyda4l2X92oH lr9JQg3pRSEIUvGgXYYy8y4yUsjjPxQIsNoIjcxR6+TJdfjjCs3soco11VajMuRrb1DX LyfwMXPPLlB/33YrKko2Kgw5rZec1ZAdCwZK35WgT91iyeHqSoK2zs3Smc+TAyDRN9kX 1fMICw3s87isNGyQXlwllYSiYlZUg3/dAziaK3ki7jebjXIgqSQ0QytwfRUBx6b0TOlo NHg9RoROjuhsa5RNs6v3ygvFcFm1wFlZ3D/cIwAMFykh9n4HsqLgXRxjomEPNWEI67ho gyxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=C4CpDQKXaTSWK266x4L54FFna7lnQA4Dh6pv535OwUk=; b=QpFCETRZK1hRDQ0qtPpD0TK3FEgXpZPzExbgVMH7UyomObQRO3vIdAZFnzNHp2XFG0 eGm9CG7SH5qLI+MlHaDIMFG218VrxRIbKbl2Q7DVkLRc/26i3K7iHNYK6qkmqb7pvWl8 priqhL6uoXdihDUhUrkqXK4VmxntYzKba2p4W68XK9RAesLzqj8MTz6KAyy/tzRduxhQ y4CNTISWW89DSp04gzfKzA0K3+b5AoPfvdRkX5MfpUSC3VuVUOXqHshQL5d89DtK5su1 y8XbWvcNEYsmezdZ7BnvxDKNBBxQA1WS5oP+Ie/h9EbOyWjiJjRsk/U8J39uYTuaZNWy wLvQ== X-Gm-Message-State: APjAAAWTTesldr4tBB5UxTK/4Sjr2wGXBDNNQfZcRmfVPRhVC5AyGJNu Fqur8MqPwJb9TGCbf/wvjBwr2DE4 X-Google-Smtp-Source: APXvYqxGmLfjW4idvI28Xtos3cDOqZEsrTIjciSA10Zil7RN3IqnHOyBgzku7F2zTiraeYs0HyEhkw== X-Received: by 2002:a1c:6783:: with SMTP id b125mr8715351wmc.41.1558555117740; Wed, 22 May 2019 12:58:37 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:5700:3029:8954:1431:dc1e? (p200300EA8BD45700302989541431DC1E.dip0.t-ipconnect.de. [2003:ea:8bd4:5700:3029:8954:1431:dc1e]) by smtp.googlemail.com with ESMTPSA id y132sm12021821wmd.35.2019.05.22.12.58.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 12:58:37 -0700 (PDT) Subject: [PATCH net-next 1/2] net: phy: add interface mode PHY_INTERFACE_MODE_USXGMII From: Heiner Kallweit To: Madalin-cristian Bucur , Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , David Miller References: <110a1e45-56a7-a646-7b63-f39fe3083c28@gmail.com> Message-ID: Date: Wed, 22 May 2019 21:57:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <110a1e45-56a7-a646-7b63-f39fe3083c28@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190522_125839_951416_272A0886 X-CRM114-Status: GOOD ( 13.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for interface mode PHY_INTERFACE_MODE_USXGMII. Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 073fb151b..7180b1d1e 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -103,6 +103,7 @@ typedef enum { PHY_INTERFACE_MODE_XAUI, /* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */ PHY_INTERFACE_MODE_10GKR, + PHY_INTERFACE_MODE_USXGMII, PHY_INTERFACE_MODE_MAX, } phy_interface_t; @@ -178,6 +179,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "xaui"; case PHY_INTERFACE_MODE_10GKR: return "10gbase-kr"; + case PHY_INTERFACE_MODE_USXGMII: + return "usxgmii"; default: return "unknown"; }