From patchwork Wed Sep 14 12:33:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 12976098 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 069A2ECAAD8 for ; Wed, 14 Sep 2022 12:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=l1BApr2TXMYjapupiylTJXrW0G82l1H0zfhnzHYxuMo=; b=LHsFShd/wwz9uv vEhnMwLdwTTX7R7vFXGepDEKPngcp7sDB2YgWD4B2Iy7ihnE/6gPxr5jz12wzZhQCaZz25VxaLkji D+M+xYG/juzZ1mXfMt70LZw9W7ccoSuvmPoedXx6aOgGXFdcdONlxpP5VkNKyzAbAgdR4R9NiLgVd IPiWrjefv1EWS86m/LgotdFeTcLGe4P+VysoIimK65FAA4CxfeYAhFtasSkEXxwyyD7yO2GYTXCFz oPtgrqVBwP8b7Td+r3LWQgJT4cmLkUa8xfanmPLQPYGkk6G4r0dbj7E8FMOPwYlACmqqGywMvry5w CV07ONdn8J48o05Wyjig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYRaJ-00HR0k-Sw; Wed, 14 Sep 2022 12:33:44 +0000 Received: from mail-sn1anam02on2062.outbound.protection.outlook.com ([40.107.96.62] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYRaD-00HQpw-R9 for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 12:33:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GipRR9oLQqDjYLVXBO2tUnE+zwwx+UQKXVhtVvXgZY7R6mG1gkRapPxHTkwYPbjQsFQnE8NsgP+RoDhsIb1HI/gMNwP++K0i3AxgTMkda9MFxjAyB5NAon5+zDRq5UVXd0WahjjJ63tqJZ7OWYN8U9Qy9C8pJPD1UcWFH/H+8xkk2P1raEubN2tEQasnfdSoW6EADzrjFg1wYYBxJ7OZqq8PDJ3db1ethO/Uq1lEKFHXtgy4qIkAL9kFtr6UgrgD/AzlPHl29sCyaTVGLE6epvhNgjXJfg5mndq3jypZqreIyHf6ec9vv+QdYB0ZZZh5UDVl0BhnskYtz6FqGpBPsQ== 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=L6KSJFEGCKXULKDj6YcRaTO8VvBpiU3UwTBoHjMwhDA=; b=gXPd28Ld0w5RjyeZwm4YOL3jDrkFsWGL+g3aELM6tsD0P5ZsUCnK0vIyCbwOxtbJGy87F/jyUSyFh1yZikmLmAQz4r7MWj8BfmYOpoyAqMGt2MYlkcp4AUx6BWASDnWLO/dXtEf/TQTefcNWGA6dM2fG7PykzVYlem4xQLtqCmOkGzhzelzjnvoEpO0TlQa4O0z6IXQl5JTNhrOxeHhmwzemjyN+UNUd5jhgBcB+he46Az5bxunJjRBaYqTnj+NGHJqyhg8oIruBkPhRHWnjeB+pLqUlq0DW87+mxPClevn2CJSe5aX9ZAAnO5nQL9vCOHKNeICCnXsd/KHIbX179A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=amd.com smtp.mailfrom=xilinx.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=amd.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=L6KSJFEGCKXULKDj6YcRaTO8VvBpiU3UwTBoHjMwhDA=; b=alxGqWHpL0sLeeHZc0iWSiu6YIV+4M7bsRtdYJBZYJ7tDCEBSVpiWrByDvc8obEhEndwAmZjdwdxoiBYPL5pRPTx5Yv4lk8uwXZdZOrgRh7N/myCdMnIh7SPOdPCcZrpuY5RG4QTzPX+BJXuPWPKArviBYoMzrJJHU4T9SUTV1U= Received: from DM6PR02CA0039.namprd02.prod.outlook.com (2603:10b6:5:177::16) by DM6PR02MB6730.namprd02.prod.outlook.com (2603:10b6:5:220::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.19; Wed, 14 Sep 2022 12:33:32 +0000 Received: from DM3NAM02FT022.eop-nam02.prod.protection.outlook.com (2603:10b6:5:177:cafe::8a) by DM6PR02CA0039.outlook.office365.com (2603:10b6:5:177::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.15 via Frontend Transport; Wed, 14 Sep 2022 12:33:32 +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=fail action=quarantine header.from=amd.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 DM3NAM02FT022.mail.protection.outlook.com (10.13.5.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5632.12 via Frontend Transport; Wed, 14 Sep 2022 12:33:32 +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.2375.24; Wed, 14 Sep 2022 05:33:31 -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.2507.9 via Frontend Transport; Wed, 14 Sep 2022 05:33:31 -0700 Received: from [172.23.64.3] (port=50634 helo=xhdvnc103.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oYRa6-0009NF-Qn; Wed, 14 Sep 2022 05:33:31 -0700 Received: by xhdvnc103.xilinx.com (Postfix, from userid 13245) id 0C5971054C9; Wed, 14 Sep 2022 18:03:30 +0530 (IST) From: Radhey Shyam Pandey To: , , , , , , , , , CC: , , , , Radhey Shyam Pandey Subject: [PATCH v3 net-next 0/2] macb: add zynqmp SGMII dynamic configuration support Date: Wed, 14 Sep 2022 18:03:14 +0530 Message-ID: <1663158796-14869-1-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM3NAM02FT022:EE_|DM6PR02MB6730:EE_ X-MS-Office365-Filtering-Correlation-Id: f6af237c-0627-48ae-c204-08da964d55f6 X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yoMApdSQ+LqYsT/eJ6YkXGdlhlNHYCdAHdMNDjF6ba+pFbz5SsnpeS+FkeEKcx+CErj0EkluS41hPVYrJelsBlfjF6M7y95CohzZ75+uoRKYQc+xqWBJI3QyLQaj3R/quorqf7qAetk3hZEVD1PAlrXm5jH8Up02QO7noisAtfoyWVovyRpTCbrYsz3UfMVZ495aOT7CQwHbed8ohlvEZX/surVeS67juvEeZCp3lLdbQWCL0P+fd4yxbYerVJatfzaGM7ZAKzTJP30/jWjwBmQNWpgOtk9K0DbP9AR+mYJ3hYOKRbNzcq47FjidXa8DRyu6Ua8bTNqU1i88N7MuHHik0mWsAoV6p0rwQdeGqu8dedsyKHLgcV7WIoeYKvMqB70Vn1UMkoXhlrvpi6XQZWg42GA3vGncqmV/OEAG0lHZXx84+gSn2jgiMaDntBNVgAJP0MXam2YTj7GHgbdl9jmS1+iuNrHx5xyE1HzY9LGICyotXoZXty+YtYYLkYw5ryDXiKy1aSEOLBFbmHb670+uXmyWh7MNTQNzOS3K5BdN//ulAI0YSTy1b6UGvvgASTvpURvV2Pi9zxVzHFEoTtfxtzn+I8nxZ7OUxp8tgt4Nj6QtEmUHS1rMYCVnMFCc4k6CZiXuiDxT7aVoh9e3KyNEbTuFyo2Z16Jr18H1ECswKdQOavqYKM6+vVKBkGIKRtd+ngjbTyuT3F98YXQcErZrxmy0h6jD4c/xSga9vfgsqYXj9wREbHla8Le2EB9xDUTWdLHrDrV2i+YugrKzK7v893LmL5UuGQhJQX0wLyCHUMsPH/A2Qlhrr/7JrjAY 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:(13230022)(4636009)(376002)(346002)(39860400002)(136003)(396003)(451199015)(36840700001)(40470700004)(46966006)(82310400005)(316002)(6266002)(41300700001)(54906003)(70586007)(2616005)(336012)(36756003)(40480700001)(4326008)(83170400001)(40460700003)(478600001)(186003)(70206006)(8936002)(110136005)(2906002)(42186006)(6666004)(7416002)(5660300002)(356005)(7636003)(42882007)(26005)(921005)(47076005)(82740400003)(8676002)(36860700001)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2022 12:33:32.4135 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6af237c-0627-48ae-c204-08da964d55f6 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: DM3NAM02FT022.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6730 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220914_053337_964510_96ECD80A X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset add firmware and driver support to do SD/GEM dynamic configuration. In traditional flow GEM secure space configuration is done by FSBL. However in specific usescases like dynamic designs where GEM is not enabled in base vivado design, FSBL skips GEM initialization and we need a mechanism to configure GEM secure space in linux space at runtime. Changes for v3: - Introduce goto for common phy_exit return path. - Use enum kernel-doc comment style for enum pm_sd_config_type and pm_gem_config_type. Changes for v2: - Add phy_exit() in error return paths. - Use tab indent for zynqmp_pm_set_sd/gem_config return documentation. Radhey Shyam Pandey (1): net: macb: Add zynqmp SGMII dynamic configuration support Ronak Jain (1): firmware: xilinx: add support for sd/gem config drivers/firmware/xilinx/zynqmp.c | 31 ++++++++++++++++ drivers/net/ethernet/cadence/macb_main.c | 22 ++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 45 ++++++++++++++++++++++++ 3 files changed, 98 insertions(+)