From patchwork Fri Jul 22 11:03:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 593006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F0A1C43334 for ; Fri, 22 Jul 2022 11:03:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235233AbiGVLDu (ORCPT ); Fri, 22 Jul 2022 07:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235202AbiGVLDs (ORCPT ); Fri, 22 Jul 2022 07:03:48 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2075.outbound.protection.outlook.com [40.107.220.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9176BB8D7; Fri, 22 Jul 2022 04:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YaRVp/lvWFr48cQLI9qCxuoqj2VUDdAnGVntDtM/SuW8eQ+HNficpZLpcI/ui4HTY8zZAN74oOOUyniN7W8K2dInX1tTqb+y2ryrL6++KZTUzo/4EGiVyJnoQbJXQLlbB3CcXApF6kUxtOzLSo0COTDSG1J186+AU5PGjs9yfPvEhSZKq8T1Wx6BRr8rrs1Q3atmPtYeVtDQqMUjR7RF/XfC2xucfvE6UyFUGztXE4cLjRx8qpw6CUbxsgpv6iSTzfALOzhfM5EJO7LX0JB8dA2rrqxr1PpHocj/Q3FxuSqiIc3ip+i5xFkSuZ6m/EmKFsmdlPMxc/38RJBUx8dhJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q9nDcrDnl1U0QJzWkrhdXtVYEPPySUQXdNItBOiQIA8=; b=V+6ghhae+MF9PJR2XnInkLEks/CUEVaJLXovhRckvcE5VlLxYTE7QM35qZnbFxVgQlAcTdJQCtj0ymxuv5kw3wgxiUeRz6pufH3Y3RKfElrCWyRwjsGYxg3kQFhZezbUmI7aKTNSrZQEhvNkUlnptTkl4jP4LEVC2W/j4MXrP7qNyjVq7gLgqManVZtaGNgIDcLHsW+mQY4RZ0HgfZt1WDrlpJvCJEZC52pSbccxJVzLFqQjUr3N0xMd5rsz4ePofwblGRydNG4Iug2dlcgimk7cv45MVnrqYKwSyGVb1GDK2CsqXSGC/D9WvAJA+hDB+uP9LOYP5WnAi5kcfj+eOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=microchip.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q9nDcrDnl1U0QJzWkrhdXtVYEPPySUQXdNItBOiQIA8=; b=nR3Uanam3z3togmH5zN84rPs7wgmGp2VdNNi1Few+7UMFqq0l5xCfzBTlJD1rL6sQpMlru4lPe2XsEtlWdfkBxd+RzN81vjk0mzWHU8ZYTEu8oWDe1fvDGJklMgeVrHSyz/6iVuwonktTL8btyQlSQBsxXHUNjXVUBzXgFAqzQc= Received: from SN6PR05CA0022.namprd05.prod.outlook.com (2603:10b6:805:de::35) by SN4PR0201MB8792.namprd02.prod.outlook.com (2603:10b6:806:203::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Fri, 22 Jul 2022 11:03:40 +0000 Received: from SN1NAM02FT0005.eop-nam02.prod.protection.outlook.com (2603:10b6:805:de:cafe::e8) by SN6PR05CA0022.outlook.office365.com (2603:10b6:805:de::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.1 via Frontend Transport; Fri, 22 Jul 2022 11:03:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0005.mail.protection.outlook.com (10.97.4.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5458.17 via Frontend Transport; Fri, 22 Jul 2022 11:03:40 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 22 Jul 2022 04:03:39 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 22 Jul 2022 04:03:39 -0700 Envelope-to: nicolas.ferre@microchip.com, davem@davemloft.net, claudiu.beznea@microchip.com, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harinikatakamlinux@gmail.com, harini.katakam@amd.com, devicetree@vger.kernel.org Received: from [10.140.6.13] (port=33588 helo=xhdharinik40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oEqRX-0001lP-9K; Fri, 22 Jul 2022 04:03:39 -0700 From: Harini Katakam To: , , , , , , , CC: , , , , , , , Subject: [PATCH v2 1/3] dt-bindings: net: cdns,macb: Add versal compatible string Date: Fri, 22 Jul 2022 16:33:28 +0530 Message-ID: <20220722110330.13257-2-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220722110330.13257-1-harini.katakam@xilinx.com> References: <20220722110330.13257-1-harini.katakam@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd7b5c7f-0282-4560-1ffe-08da6bd1d5b0 X-MS-TrafficTypeDiagnostic: SN4PR0201MB8792:EE_ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TNZwcv1RCQ7upfVHVo8xbI+hFQNlIOKN2MB/uCkpj2bBpn8iq5TUUNk3fpHWJUZ6NIauQ8t3cfLcHop/A+ZatFP98P+HmUo31Yxjgy6vxLuq6hBAAO/9jfKbwDhU0TYRZ/TY3U0jr2SGEq1hC0yjC2Oxk6V0KBu6gXmywTXGM8I0vLkt9TefPb9J0kt8JmlIFYx6OFYR4sM6RFwh0NacVB0oHMfzzMF/APQf/RNvaaVJEwDfGcVLPxndBIGlmORtd2GC8hp7pEI2I18X7rzShC9gV6IzlEUb22nZMasK7ZYFNkDn4vK8trs+pOTNwW9dR5qCLdDHeIy3HdDbTOgb/lAC9T8NYxc819G9TNY/FRKtiSbKDDsdCj2NBVxfzf6JGbhrLexiTPqjiwEnl0HB53GBBJ+tWex6RsZlAsRLfItS8y6ZT/B4lo6/+nxpW/WpWeKp+l3nKSEcukFhiq0hedT9M/60P4026Hi99ztHdq2O5HaXhTCbMHm2pSNRVjFID8Ix4wt3lYZMj+reqpx/2BKLB/VBqIz5o3sKECrC1X8V/ijbifCnwIqw6thQIQmxnYHU0Zi4TzOSuxs1NABizcGAwMa+oFZRuN/Y/SWF42HRomZNYxW4ZlPYYSMPdOKvcDVtJ5iEm39/Hd2h/6PL+CFfnFNSdMMw4oItYUxwCB+pNMkvVquW5Er/YZV+s+kcvxGLuF2XlB9YzK+6tdV9IIe1CsrdbO6u+CN5ZNTRcjuieUkBITmZxk8DzTryYWjlLGMDVDVuWo1QCKk3k0lHwpj8lAhOOVypzUwhsKLfmCa6E6zDCiQkH2/f79wNKOe7KkdSLI+WJRksJx9xBz736A== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(39860400002)(376002)(346002)(396003)(40470700004)(46966006)(36840700001)(36756003)(336012)(356005)(107886003)(316002)(2616005)(6666004)(41300700001)(478600001)(82740400003)(1076003)(186003)(110136005)(426003)(26005)(44832011)(4744005)(7636003)(8676002)(82310400005)(7416002)(9786002)(4326008)(70586007)(47076005)(5660300002)(8936002)(40480700001)(54906003)(40460700003)(2906002)(7696005)(36860700001)(70206006)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2022 11:03:40.2991 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bd7b5c7f-0282-4560-1ffe-08da6bd1d5b0 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0005.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0201MB8792 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Radhey Shyam Pandey Add versal compatible string. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Harini Katakam --- v2: Sort compatible string alphabetically. Documentation/devicetree/bindings/net/cdns,macb.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index 9c92156869b2..762deccd3640 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -20,6 +20,7 @@ properties: - items: - enum: + - cdns,versal-gem # Xilinx Versal - cdns,zynq-gem # Xilinx Zynq-7xxx SoC - cdns,zynqmp-gem # Xilinx Zynq Ultrascale+ MPSoC - const: cdns,gem # Generic From patchwork Fri Jul 22 11:03:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 593005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C9B4C43334 for ; Fri, 22 Jul 2022 11:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234097AbiGVLEM (ORCPT ); Fri, 22 Jul 2022 07:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235279AbiGVLD6 (ORCPT ); Fri, 22 Jul 2022 07:03:58 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 713B1BB8F6; Fri, 22 Jul 2022 04:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yu/DMPyq/gvbUjKS7wd32NGKTdV0yB7xPPep7KxakxgYVPOEM5e0EMJOdgg49c+gWm69uZRSp9MgsIYpGW7/svz7LD3km9dbbEPDvuMb7pCjboWo6muEwJTqsgohMA4sJDEZlaaM+PD9dAOZAYbgz4bT5hmU6zd+LyeIbu4z6I8MeN5VBnunpLKdjebk0DlSbO07ennOmCLK3ko0IVd21hUddb2h1PgbG7RIoKR9qYsFsP6xJxfbe2lscXyNAI22lhXxFO6LPL0b/e/un+xs3v0HCh+pt84yP6d80x1hOTtPCSJX8AMbg1EAy1kX4ALUktZkNEdVoviO8pn8vBiKCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WJWdj6oZADibWeuAHVUN7FC7hit+EdIrlJ6sU9QIgn8=; b=hdgdZqHsqW8uKv8AAf9ZV8WY5Z+6zKV0nRqDKkmFS9igvwwJjDqcE/IKCq7d7f5dXn7cs6HP2a3hrnZ/Yh5jyafx1ry/XHe/MAFncH75mXu0ioixjCi1LR7FUNWBJW2PL14dO7ZhFPma18mxNSbTZtg21qTDsxZAn0FEzXDx4VCxCvX3ghefB3ZMlqaUafzDpunFNhB7jmkMlBpy9SCYTAqCfu8761cFLWxwzMze0XqvU0HTlnqaZ6eFV3pndBSw4AmnsGNIXwXanFgo+ZDp4jCaEddxuzGUl84l/G503ffw+8O3/p+mWmTcztUegaNrih36mazgOneOMx7O6Ks/PQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=microchip.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WJWdj6oZADibWeuAHVUN7FC7hit+EdIrlJ6sU9QIgn8=; b=lBugCoAykqGVELEWX1zb8htipkqXSSK4U2qrHwi7sWbKBTDxNSdBEFdEInWjkt8rq19ScatsXBcmTWu8vbuP65hKVs/80VNdw/AFbfoFixE1skGWRzkGsBWOzJ/8avZwdfIPXJdMGYA3sHSGcDfTicVXjk/4solLkK7d+u4fnJU= Received: from SN4PR0501CA0026.namprd05.prod.outlook.com (2603:10b6:803:40::39) by BL0PR02MB5682.namprd02.prod.outlook.com (2603:10b6:208:83::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Fri, 22 Jul 2022 11:03:55 +0000 Received: from SN1NAM02FT0058.eop-nam02.prod.protection.outlook.com (2603:10b6:803:40:cafe::a) by SN4PR0501CA0026.outlook.office365.com (2603:10b6:803:40::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.1 via Frontend Transport; Fri, 22 Jul 2022 11:03:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0058.mail.protection.outlook.com (10.97.5.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5458.17 via Frontend Transport; Fri, 22 Jul 2022 11:03:54 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 22 Jul 2022 04:03:44 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 22 Jul 2022 04:03:44 -0700 Envelope-to: nicolas.ferre@microchip.com, davem@davemloft.net, claudiu.beznea@microchip.com, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harinikatakamlinux@gmail.com, harini.katakam@amd.com, devicetree@vger.kernel.org Received: from [10.140.6.13] (port=33588 helo=xhdharinik40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oEqRb-0001lP-I8; Fri, 22 Jul 2022 04:03:43 -0700 From: Harini Katakam To: , , , , , , , CC: , , , , , , , Subject: [PATCH v2 2/3] net: macb: Sort CAPS flags by bit positions Date: Fri, 22 Jul 2022 16:33:29 +0530 Message-ID: <20220722110330.13257-3-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220722110330.13257-1-harini.katakam@xilinx.com> References: <20220722110330.13257-1-harini.katakam@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b54c97eb-6b84-48a3-13d9-08da6bd1de2e X-MS-TrafficTypeDiagnostic: BL0PR02MB5682:EE_ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +B96CFqKsJ2GrfvwP1i8Lw4QE6ASUWOdspxIAqt/O6Upzuz8/JPx9aGZQdlTDBMiuLKOzZhMKcmQNnLzLXhsPcjkD3ulAi+xNcW40f5WwIwfI3KB5FEKs2BbuAKa8+mOs7NluWGbKHHeshTls0xYhDg5zisicg/9GR1HAyGYQHMbwTYndOsnXDX5atCkDiS38ylTivchHKfFwlNbMOJ8r5UbTMDi4lcqX0s0+9nHD5qRGaqvDsYrxMimGGnub+VYRW01ZZWEoIhul1zFQwxbeEl1ZylM1fUidG4uvBCsFx6MZ7N876OqrEIu2pLXS5rdUxl4B02mdJK+yQA1/BLCzBrLleRCo3yRyY7kzAf4QITn8tjYjR2CLeLgrW59Xg2JLCB3TF2jgiuiPFBKmYCUb9mye8dXLIl+BljmTMOUFSlM8RRjZ5Yj/EUGbcRtyQU+qWemjXCJXNXd/6AjqSI6TDyGBmodOt//3gDpRycnaU1uxLsl7WOl7NqJVVyn50CGNMC1fmP1bzSs3JjXzfhmVWUWaYCgC9Xra2bO1YgneQc3pEfVJb2GN9a6uWFkF8SdxicZw+A5fIFlpexyJnhZdj3K9FXPh5U422vpcfEdMlkdCIPMqItd/NeV/LYekbzTj9qOzfIwtPl0dgh5ke8v1/cNULhPlxv8EY6yms+2KGSL5dq908Veyfw2ZDVnSbi8PhXBeoEFiNpvxcMF3vL+nhvEDKXT6IDeLVb52IM4GDJ3QW/oq4JGT2pHVWIf55yfHuKDY/L56ZZi1akc5AGnFFX84rKaaEtaihZiRRclnJ5Gy9HvzAQgrwZDPKYET9dnN+o5WT3l46yWl+ytscTaQA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(136003)(396003)(376002)(346002)(36840700001)(46966006)(40470700004)(1076003)(47076005)(26005)(186003)(336012)(2906002)(107886003)(2616005)(6666004)(7696005)(426003)(7636003)(82740400003)(356005)(40480700001)(83380400001)(36860700001)(41300700001)(316002)(70586007)(54906003)(110136005)(70206006)(478600001)(44832011)(4326008)(82310400005)(7416002)(8936002)(40460700003)(36756003)(8676002)(5660300002)(9786002)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2022 11:03:54.5463 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b54c97eb-6b84-48a3-13d9-08da6bd1de2e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0058.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB5682 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Sort capability flags by the bit position set. Signed-off-by: Harini Katakam --- v2: New patch to sort existing CAPS flags' bit order. drivers/net/ethernet/cadence/macb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 7ca077b65eaa..583e860fdca8 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -717,14 +717,14 @@ #define MACB_CAPS_BD_RD_PREFETCH 0x00000080 #define MACB_CAPS_NEEDS_RSTONUBR 0x00000100 #define MACB_CAPS_MIIONRGMII 0x00000200 +#define MACB_CAPS_PCS 0x01000000 +#define MACB_CAPS_HIGH_SPEED 0x02000000 #define MACB_CAPS_CLK_HW_CHG 0x04000000 #define MACB_CAPS_MACB_IS_EMAC 0x08000000 #define MACB_CAPS_FIFO_MODE 0x10000000 #define MACB_CAPS_GIGABIT_MODE_AVAILABLE 0x20000000 #define MACB_CAPS_SG_DISABLED 0x40000000 #define MACB_CAPS_MACB_IS_GEM 0x80000000 -#define MACB_CAPS_PCS 0x01000000 -#define MACB_CAPS_HIGH_SPEED 0x02000000 /* LSO settings */ #define MACB_LSO_UFO_ENABLE 0x01 From patchwork Fri Jul 22 11:03:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 592593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C190C43334 for ; Fri, 22 Jul 2022 11:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235287AbiGVLEA (ORCPT ); Fri, 22 Jul 2022 07:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234855AbiGVLDx (ORCPT ); Fri, 22 Jul 2022 07:03:53 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2041.outbound.protection.outlook.com [40.107.220.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8646ABB8D3; Fri, 22 Jul 2022 04:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZEEmFbfLCro5UWB/NEJvVE3bcrZMHPi9kUN1OPeAoWE2vbS5JhGEVdF8OcWkgHDkQGoSQYkbrWSjKw3tsQ8S/WwYj83TJhAIa1ZeYZxSMfteObZ/fYiZ3KjROW42EflHRTHUOMEVIRok30EXfNRTXJ35ctF0hjXyW1xkDvu8Xcl+UZTlBCWBLm/YxPy5qJ1asXcI6kQvkNV1zcgcMDanytajyM1B/HECJJDEfxE8tSoDNz+U3/RhvLu+SO9MGrkIme6NbR2MqgU2ugDKvZBnfJz0wwXF3+hVDdfltxZCEU4uX0mef73uUfdm0W31WUoksldioqLCnkV7XsHxUdNAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WIWWoIwailG6ca6zaM4I/I/bVR16n+R2ns9qrvPspFg=; b=NJXb/CxvhBgs6nb7W14UbeGzIhyLxlLlItLyXqps3/ijMfY9vpwQHxOhaIsUn8xpo9FxUBUlCjuB0M4S5Aa/V7Zs0jSY+/cThtW9tEJS/rylaDaxLHQyQnXIP/gCYcxYZZtdgU1wXBxxVL1TYuQU1e7inE4RDRETRI41ELvYwKaGd3geCc8XFyp9YtKAkJhdf9XcPg96zscr2VmUFOe6U9XpT2lXSPxweL3n2hhEBvG6YVr98fVNORWnKwIy61H/bsKnN0Zn6sdZNRa/pn03gCkC1r3XZ47AB827myHm4UH6oGw/9Ttcixqv+bI2Q6rWgdmmLwAx/gJcxY64Anwcfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=microchip.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WIWWoIwailG6ca6zaM4I/I/bVR16n+R2ns9qrvPspFg=; b=BZ4JODzZNHofN6+I285aFNB2594U2mMs7gWuh7a8EtJUmH8JmwwOGlyCFmHzPOx1/Lgek/UFNhyJQxyzjF+HcTL+fvJa8a24Kf+qu8FQI/VP8XBVJfCKn4NPtLN10h4t1Lym8QBKsMuIymlmALqV1387NAU/52zNXuzwLudDwXc= Received: from SA0PR11CA0017.namprd11.prod.outlook.com (2603:10b6:806:d3::22) by DM5PR02MB2666.namprd02.prod.outlook.com (2603:10b6:3:106::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Fri, 22 Jul 2022 11:03:49 +0000 Received: from SN1NAM02FT0004.eop-nam02.prod.protection.outlook.com (2603:10b6:806:d3:cafe::4e) by SA0PR11CA0017.outlook.office365.com (2603:10b6:806:d3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19 via Frontend Transport; Fri, 22 Jul 2022 11:03:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0004.mail.protection.outlook.com (10.97.4.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5458.17 via Frontend Transport; Fri, 22 Jul 2022 11:03:49 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 22 Jul 2022 04:03:48 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 22 Jul 2022 04:03:48 -0700 Envelope-to: nicolas.ferre@microchip.com, davem@davemloft.net, claudiu.beznea@microchip.com, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, harinikatakamlinux@gmail.com, harini.katakam@amd.com, devicetree@vger.kernel.org Received: from [10.140.6.13] (port=33588 helo=xhdharinik40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oEqRf-0001lP-Qw; Fri, 22 Jul 2022 04:03:48 -0700 From: Harini Katakam To: , , , , , , , CC: , , , , , , , Subject: [PATCH v2 3/3] net: macb: Update tsu clk usage in runtime suspend/resume for Versal Date: Fri, 22 Jul 2022 16:33:30 +0530 Message-ID: <20220722110330.13257-4-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220722110330.13257-1-harini.katakam@xilinx.com> References: <20220722110330.13257-1-harini.katakam@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52c2f3f5-bdd0-4f97-24ba-08da6bd1dae8 X-MS-TrafficTypeDiagnostic: DM5PR02MB2666:EE_ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6mjx8P60Byc8Aj3LCE6qSZsI6ADLQH+j8xGo2Mht0ke5q12UYPRdtEl57SAfDOzNGWy7BhIQ2QWuvbhZCnzC47zcVVMADj5hr4MplUldPcf5qVZKd9SOmLbxQgK7/4IWvKVXIIJQ7aMEZYDfZi1RbIilUic/7Hf2ophitFjsMftDjmroZhTHwN4wRuma9KAB6V+yi2i4M4xAi+icGjQCrLSdm9IeyTqXsxRmMN7zSSMcgOtEz41qsVFtiG+eipO8lMOV6GsmhSBrTja/9lJ5527No8jvhn5MibiTvUHYOOw9P3M8YfOK5X5J6NMWfkTPcXMdxZ3QMuZCWC3tHA/kL3vkNAQuUZ3zJOmcjbv5g7U1RWkmu7JmGll8D/gDQc1PoFS1NVXcLyBa4rRd/E+bukndDPu2MGcOcxxbEEiX41nJljvaH0HFRGdqvdsf9aJuueDv+cVPmvl6itWJubNA1RC72VliSXZqqVVg5ahQd5D+1AwCksgZ9kiINlRJjPpeZW9zohEyPQzN97/yF7hFjdkawAxkSe+Hb6+/6GZHL/OqyeXnRmn7rSLk+skGo9hKtpN9VoLU0TmYbOr6qwdzym6ttdXmZa1QwzSTTIjF1FIcUp5na0ICAAoSCAgmzRUXM/bsR7DB1mju4ssFEcJcKPvvpcwglxJOBqvchfa8tYDAzInBPJ9EMjz5ROzf+OI8IbVWv+1OvbN/NvEYwfhUrSjlU7THJEe8l217GhWN6GkTebTt0mWdYL3/0TvS4opjK6gLBtOJ+FjVaYQNqRPQEpyWddIYC2Ajs8PjeaKhOYgoK4gmlhP6WtDedVwwHu2TihjqNLS+XYMyC+dfz/d4aA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(39860400002)(376002)(346002)(396003)(46966006)(36840700001)(40470700004)(336012)(36756003)(7636003)(82740400003)(478600001)(1076003)(2616005)(107886003)(41300700001)(6666004)(7696005)(316002)(54906003)(26005)(186003)(82310400005)(40480700001)(110136005)(40460700003)(5660300002)(9786002)(7416002)(8936002)(44832011)(70586007)(4326008)(8676002)(70206006)(47076005)(426003)(356005)(83380400001)(2906002)(36860700001)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2022 11:03:49.0549 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52c2f3f5-bdd0-4f97-24ba-08da6bd1dae8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0004.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2666 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Versal TSU clock cannot be disabled irrespective of whether PTP is used. Hence introduce a new Versal config structure with a "need tsu" caps flag and check the same in runtime_suspend/resume before cutting off clocks. More information on this for future reference: This is an IP limitation on versions 1p11 and 1p12 when Qbv is enabled (See designcfg1, bit 3). However it is better to rely on an SoC specific check rather than the IP version because tsu clk property itself may not represent actual HW tsu clock on some chip designs. Signed-off-by: Harini Katakam Signed-off-by: Radhey Shyam Pandey Reviewed-by: Claudiu Beznea --- v2: - Add TSUCLK CAPS flag in correct sorted postion and use 0x400 instead as that is available. - Move config structure to the end, aligning with order in macb_dt_ids. drivers/net/ethernet/cadence/macb.h | 1 + drivers/net/ethernet/cadence/macb_main.c | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 583e860fdca8..9c410f93a103 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -717,6 +717,7 @@ #define MACB_CAPS_BD_RD_PREFETCH 0x00000080 #define MACB_CAPS_NEEDS_RSTONUBR 0x00000100 #define MACB_CAPS_MIIONRGMII 0x00000200 +#define MACB_CAPS_NEED_TSUCLK 0x00000400 #define MACB_CAPS_PCS 0x01000000 #define MACB_CAPS_HIGH_SPEED 0x02000000 #define MACB_CAPS_CLK_HW_CHG 0x04000000 diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 7eb7822cd184..4cd4f57ca2aa 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4773,6 +4773,16 @@ static const struct macb_config sama7g5_emac_config = { .usrio = &sama7g5_usrio, }; +static const struct macb_config versal_config = { + .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_JUMBO | + MACB_CAPS_GEM_HAS_PTP | MACB_CAPS_BD_RD_PREFETCH | MACB_CAPS_NEED_TSUCLK, + .dma_burst_length = 16, + .clk_init = macb_clk_init, + .init = init_reset_optional, + .jumbo_max_len = 10240, + .usrio = &macb_default_usrio, +}; + static const struct of_device_id macb_dt_ids[] = { { .compatible = "cdns,at32ap7000-macb" }, { .compatible = "cdns,at91sam9260-macb", .data = &at91sam9260_config }, @@ -4794,6 +4804,7 @@ static const struct of_device_id macb_dt_ids[] = { { .compatible = "microchip,mpfs-macb", .data = &mpfs_config }, { .compatible = "microchip,sama7g5-gem", .data = &sama7g5_gem_config }, { .compatible = "microchip,sama7g5-emac", .data = &sama7g5_emac_config }, + { .compatible = "cdns,versal-gem", .data = &versal_config}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, macb_dt_ids); @@ -5203,7 +5214,7 @@ static int __maybe_unused macb_runtime_suspend(struct device *dev) if (!(device_may_wakeup(dev))) macb_clks_disable(bp->pclk, bp->hclk, bp->tx_clk, bp->rx_clk, bp->tsu_clk); - else + else if (!(bp->caps & MACB_CAPS_NEED_TSUCLK)) macb_clks_disable(NULL, NULL, NULL, NULL, bp->tsu_clk); return 0; @@ -5219,8 +5230,10 @@ static int __maybe_unused macb_runtime_resume(struct device *dev) clk_prepare_enable(bp->hclk); clk_prepare_enable(bp->tx_clk); clk_prepare_enable(bp->rx_clk); + clk_prepare_enable(bp->tsu_clk); + } else if (!(bp->caps & MACB_CAPS_NEED_TSUCLK)) { + clk_prepare_enable(bp->tsu_clk); } - clk_prepare_enable(bp->tsu_clk); return 0; }