From patchwork Wed Oct 9 16:28:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pandey, Radhey Shyam" X-Patchwork-Id: 13828808 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 D95DDCEE330 for ; Wed, 9 Oct 2024 16:45:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TkiELzrJ0JFr0cg2Z5GT/WSW2AaA7Dh22q/++dvO1z4=; b=ttJb55TvbeDB4GjEXHHognjmBW mtlfLH3nhTAvFQVPZFdRDZ0wL2h9uGVODA24aaI5FLcjJGWrMG/lLaMtvmPi9nYhJs+wfPNGxTVRV ZxGME0uNuMFiY7FdDFWJOfIIeHZxam0oSwMpEAl7uzdF7b0XdzrYXCCIqy95JpbL77Ni76Jtyw3KC 0XuObIndhC+kbCWhJ0cD2TQOH2B1Q1sxOlsuNYJuv4ED9cl1jZGL2zZtFMjZx0BSL5MxBk4v1vBW+ 3oJboxAJp5JNj12Y4PwXrM/pV9wU87cnlv9ytULMpRgCjH0kjRaGAISfdPUBNxh1TqruwtiHsbddu KM+wQ87A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syZod-0000000A30e-3MPX; Wed, 09 Oct 2024 16:45:35 +0000 Received: from mail-dm6nam11on20629.outbound.protection.outlook.com ([2a01:111:f403:2415::629] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZYP-00000009xpw-2dgT for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 16:28:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pCDZYe8dDB+ZZBl5aoWLrkzc/4mZa/I3WE/08iMZpx1xsa4yQbFXXDHmMWtHtQgsFPcVyGGDAv1p2MGHfIzOsp7VKm2X7i/p1Qy5XiuSSC6WUoMpzsXwL3EtKvWSok7pC4oPifL68pVJoV5ZSlOzTlFiWN+ouzru9L1gscXbfqQBjk6u597BUkJeXVQj+1z2UZwMEiLc8BO5p1rIWsnIgbgCcurgxV6/lv/SY1zUXS0BWpOGOYPSnFULDGbsJIlyeagbtsMylVxS5ElGkbF7S4xG+qUvhvT+PDrYSqdG5cxRUnEXdNyK5LwLhxiCaOMfzKEPV9Aj9/nUrwpkT2DCjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=TkiELzrJ0JFr0cg2Z5GT/WSW2AaA7Dh22q/++dvO1z4=; b=MsfRyMiznSxQJEins3R5py5KaKkezMScH9yzI1EUvKrkwflcFZf/n6wR1NqNvK4FSQLAjpWiaoCGpF70p+StLMc9BUxk6zlNJ72BwAm3dxvS7yYHyDUgjdwuQt+48bKMEODxunrhdUxqahAre11LJqlRS6CIIAdmuagtETb8DQWd/RaO+89PBNtfsVikdwG9fpMdPeNDAcmG6AWmihWwExQM5/FuujB70CoD+iVzcWBJP2bBBfL5sk3u9kMF0MlfNKJkjSIAmGF4vUlJkeJamzilfwHEt0xY2d4T7S8/BYcYxbuQ/JiIAsCXjbsbyUBSqUPF62a5pK/2kQfaToGW9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TkiELzrJ0JFr0cg2Z5GT/WSW2AaA7Dh22q/++dvO1z4=; b=4Mg1zqKTXEMIO3aacEDZ9GIDpADVBJrJZ43ejjjtEtv9sVSE1tet6hyluq4YSvqH6LD4gMXpwq09nVjNOjHxSGZy+HqxML7SuOQK5sqzQeJPndSGnI9tq7PZopzSgpiAcF1MtTLemfUe8N9EaMzJlbZrtWGcesTvoiecVeD7q7w= Received: from DM6PR06CA0051.namprd06.prod.outlook.com (2603:10b6:5:54::28) by CH3PR12MB8584.namprd12.prod.outlook.com (2603:10b6:610:164::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Wed, 9 Oct 2024 16:28:38 +0000 Received: from DS1PEPF00017090.namprd03.prod.outlook.com (2603:10b6:5:54:cafe::9c) by DM6PR06CA0051.outlook.office365.com (2603:10b6:5:54::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.17 via Frontend Transport; Wed, 9 Oct 2024 16:28:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS1PEPF00017090.mail.protection.outlook.com (10.167.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8048.13 via Frontend Transport; Wed, 9 Oct 2024 16:28:38 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:37 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:36 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 9 Oct 2024 11:28:32 -0500 From: Radhey Shyam Pandey To: , , , , , , , , CC: , , , , , Abin Joseph , Radhey Shyam Pandey Subject: [PATCH net-next v3 1/3] dt-bindings: net: emaclite: Add clock support Date: Wed, 9 Oct 2024 21:58:21 +0530 Message-ID: <1728491303-1456171-2-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: radhey.shyam.pandey@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017090:EE_|CH3PR12MB8584:EE_ X-MS-Office365-Filtering-Correlation-Id: 15df0581-d290-47b7-f6e2-08dce87f6dea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|7416014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: TvIHOZ/jpvFtb+Y9yfFXpdziocdOq/sek4Vc0mjAJXwW7RABvbUdYCQWZOICRJRN6b0yBVJMxLecckfBWj8umQCgcP9UgYX7ENsObuWnpFz+snKlsmQiEyGeIjoyYUOZ2mWnfhHiWSalC87TNsQzDSbX/mOWOAXK4Kj45WsNebJjfhNtTxbwsrTBscA6tMSGXP7cOTiMPsWIv+HWWCdxIpefVVr3C4Pd/ve6bGYhuJBszxHusHqngAtZZC4RkVd10Czg1EEP/tVTSVEyb+DBgedzWDYt0ThXTcfv9hPv39aVirTqEHew6efKU1Uys99yGs4UQlQDA4KBl3Ylyr5R9n0BHA9gwx7mTsC0+9uA6NKyB8UPl7ut/EGNeI+T+NN39od+rSP0otRpZGKv3vy7ar/S4A0OqkGKhas/7UMFzzE8RXMD+VN7C8NNtcHBCUIbCL76eVySliB/x15xvuV+ESSAVANWMeJHTxirxQbbhQDak1kWAdHjLJZiwc+auhliMIfohp+Va4gI/OhitbfK52zjCoMNUIaDEww/B0E5sdDFQR1CMIBm6yao53NSFgnpBdYk0r5AnTNN+2OJXuoEKZjNGljJCuM4aSVviCkQDw73ikixVYdH8HuclvBVm7HuFViwA12vUlzp+NTyogKRMKiiCnJ53euDBy2IpDxzYlY09IeOrE9YNAYfDOdbRuVzO078EIRtrFYxxBu00pzAez4IUw6U/XfQFK6C3E83vRWHN44aUyindtXmWIMeOJMGq/7WCxWsxWYkajjdNJV9100L5Gppnc+o0rffc+gYz/fruK24M/1mQ15bYd/EKuGGizB7Wk1hvv+Sznkr/7Ti932fUE5KvzdMu98zYlB88JUhyPKohF3IwqY2kOtXoLObK3QSQGCE0ZVJ0rgrhj5nB9Lqap/LSj4rmNvNR5wRXNMnmmX4VnKsWpGYhTPkEmAbaa2/1mPMMJ+2xc92BLYos8LXCdnLAMFXlp+1k3tD21NnRxdv0kDJyfPMJdPLc7OdZGb8tc9omSKzXi7T1jBj75uA9bwqvjeuQtb5tY29ZtuPH179EEUOE7iMyx8ujeKRwRq5WnfvdTLepCrgkcf57FZ1Ow2gKf0OjYbvC7+pNZ2qW2/onrZkkvZ6BlLn7NJLreGHGc8XuRFW8+5uQhRNxsBOCzqwupRznjxuBCB6p8XBuD0kLxM3rKPTmsUxfNtiXK2IFq4gjRk+FMJvr2HIBY3vBlPh6bF2TrJmtKJpOnjFGDXYowoOGtrcOdzNe7JXG4Sg725lQ0cgKklefzQz8rf5+SRJ2o//AisCfbuAjiJ+Ns+6cU9SIi3pNk+Xd0eHJ/rQKDPlmgQFt/RU/7/H6aRwANF7Z32yNZG43VMvgwexBzpeT28kzNaKMxkG/OoY X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(7416014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:28:38.1436 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15df0581-d290-47b7-f6e2-08dce87f6dea X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017090.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8584 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_092849_767287_F1274A98 X-CRM114-Status: GOOD ( 11.67 ) 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 From: Abin Joseph Add s_axi_aclk AXI4 clock support. Traditionally this IP was used on microblaze platforms which had fixed clocks enabled all the time. But since its a PL IP, it can also be used on SoC platforms like Zynq UltraScale+ MPSoC which combines processing system (PS) and user programmable logic (PL) into the same device. On these platforms instead of fixed enabled clocks it is mandatory to explicitly enable IP clocks for proper functionality. So make clock a required property and also define max supported clock constraints. Signed-off-by: Abin Joseph Signed-off-by: Radhey Shyam Pandey Acked-by: Conor Dooley --- Changes for v3: - Add Conor acked-by tag. Changes for v2: - Make clocks as required property. --- Documentation/devicetree/bindings/net/xlnx,emaclite.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml b/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml index 92d8ade988f6..e16384aff557 100644 --- a/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml +++ b/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml @@ -29,6 +29,9 @@ properties: interrupts: maxItems: 1 + clocks: + maxItems: 1 + phy-handle: true local-mac-address: true @@ -45,6 +48,7 @@ required: - compatible - reg - interrupts + - clocks - phy-handle additionalProperties: false @@ -56,6 +60,7 @@ examples: reg = <0x40e00000 0x10000>; interrupt-parent = <&axi_intc_1>; interrupts = <1>; + clocks = <&dummy>; local-mac-address = [00 00 00 00 00 00]; phy-handle = <&phy0>; xlnx,rx-ping-pong; From patchwork Wed Oct 9 16:28:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pandey, Radhey Shyam" X-Patchwork-Id: 13828810 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 4AE43CEE330 for ; Wed, 9 Oct 2024 16:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KgCEXeRvoeN3HOEHOXIE+vepb0QSLGYnZYQdL4dlYbc=; b=QvSy+kdI7jmC6i8KDbrvw8nc3Z f/f3By14BBI+vEBYX91PhZjr1ojk6YrVB8UpTanHPXkFxn7ub/yfEoKPm1shAJrcxJeGPaYvSsf1v mDTFv6nRhE0lgU69SP3ljmpiUgkh3yew0WCg46yJB/T2MF8SIkZdtMKuSCHd9ibbRRNzHqfsbdXfp pN32gHIBvA8O07sLVIgDhHAOB3+i5a7kyYQmfwoO5p6s03tSAwhSRXVPzCnA3yZXvhrEgqo/s4eJF FkeCdw0mYys43OE0kkPKA8+l/8CNMOt3eHMTmcDe/OdV/eGMjKk3m3EzzWLUiVBeWWp9qv52UEWkc dHKiLZzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syZrF-0000000A3ch-1dOZ; Wed, 09 Oct 2024 16:48:17 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZYm-00000009xvl-3kuM for linux-arm-kernel@bombadil.infradead.org; Wed, 09 Oct 2024 16:29:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KgCEXeRvoeN3HOEHOXIE+vepb0QSLGYnZYQdL4dlYbc=; b=dTN0UglI32rtpSy7PJaVz7BBj4 Tcm7Va+eFCUW8JWiDr47lBoeLZDKQr72Uc5zxIke3Sc8eOHVHPVgDlBCUffXRrTd/vOhAdPcG3EHO qFj6ZE1Yd3Q3HFaPWzWpwlJBPnYmC3DIamM80ZHpuM+EaoQKUyx37XmXf4dat6mn6mkeOI9Sgyjtw 7BHs3W+5SGzlHFS+p+ftSy9RjM63LJnUS/WNyEmyrlnkPhCHAgkKHJq9padQmTkkOl+KXdCgEm3DH M+MNi3F5SkizyLVhuYsSx76179C4Z8ls53IGadbdVIgCFBrJSbIxTmdXHf3Zt0Z4SbYSp6J/ZaDAw kO5678nQ==; Received: from mail-mw2nam12on2062c.outbound.protection.outlook.com ([2a01:111:f403:200a::62c] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZYj-000000051vq-2ySE for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 16:29:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WBvxsg30z3sGKiPnAR0eYqSY9BBJIeCpntOduJBjaEtIQw2NnVEOY0KP/Mmms9yOBG7RUOreTLhK26klWglqa2W3X3XzNqWE0AauqWPMyH2z96af8yKc9i5JKSOYFv/cErPNvINLPolnZkUCvus1rfdo1TxtZkUZcVOAbUzL0+aJeFVaPZc73mRpLhGmbPBxmP6IPuOe/jlfQ/njzu9BER8gp0nJMsD0ACFlKt1KVf9AohOWWi22xfFQOi8RnWgl1gJA6SwWQeIWSE5fzlwj+88Tareakr8+e3iF0O07KmzYKVfnnWOoKNJ/Q5fA5xgPxcGhDNrR3vIPJEKLbGXXtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KgCEXeRvoeN3HOEHOXIE+vepb0QSLGYnZYQdL4dlYbc=; b=y5VvOk0ZUj0+X/NYe0L5d7NUAcrxqf+bSswV+246xa8YJiA10mOqONBBHvD2yl9GGPhC4K6uH6Uq0Xe14VnGpM6KVi6PMTPsOG56wXsg4LCjr7yFI0Ts7WcDOYozTY9D3SRy87m1hPMisRECjUMueYkyBaAMJARAWvqWvX7DXW4ut8AeGuRZoSDAR4fv1W0FZzFqB4XP/46f1AzMqOtEdr6jMjVqmijMiGER0Gn1yCnkNGODOhBHLUM0CeHUyAlp9fGwDE9HZxtb+HIEMD8vAXWPTr9/K/Ob2+aRf/x2W1vEqIEnS32XdO6/CJ7w2XZC+Uhfv1VMBmREd1fg1fLS+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KgCEXeRvoeN3HOEHOXIE+vepb0QSLGYnZYQdL4dlYbc=; b=pyV3h+ZMsESRT9/W88STz0q8XC985bI5PsmlW7eT2mi6tp8NZsPQuXTD8iohIaPsap6HO0+0IjqR9OE6WbsO0lPWxu1bTb6gbbogQO8xQA0Vu3ad4peMnTDBOoKIVhg+jkatTFbzDFO4q2Lay5swgbEAI3NBKFJX/20vYD1a260= Received: from DS7PR06CA0041.namprd06.prod.outlook.com (2603:10b6:8:54::10) by DM4PR12MB7646.namprd12.prod.outlook.com (2603:10b6:8:106::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:28:43 +0000 Received: from DS1PEPF0001708E.namprd03.prod.outlook.com (2603:10b6:8:54:cafe::94) by DS7PR06CA0041.outlook.office365.com (2603:10b6:8:54::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.17 via Frontend Transport; Wed, 9 Oct 2024 16:28:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS1PEPF0001708E.mail.protection.outlook.com (10.167.17.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8048.13 via Frontend Transport; Wed, 9 Oct 2024 16:28:42 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:41 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:40 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 9 Oct 2024 11:28:36 -0500 From: Radhey Shyam Pandey To: , , , , , , , , CC: , , , , , Abin Joseph , Radhey Shyam Pandey Subject: [PATCH net-next v3 2/3] net: emaclite: Replace alloc_etherdev() with devm_alloc_etherdev() Date: Wed, 9 Oct 2024 21:58:22 +0530 Message-ID: <1728491303-1456171-3-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001708E:EE_|DM4PR12MB7646:EE_ X-MS-Office365-Filtering-Correlation-Id: e4795d60-43c9-46d9-89b8-08dce87f70a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|1800799024|7416014|36860700013; X-Microsoft-Antispam-Message-Info: UMUl+TGPlavqQCMtMczqx043V8mQDAU6XibO36GomBQy84+yi+sSBk8WWfen4j1zxElcGVai3zkyR6QCbGqDNzqwZqWLhX57KMziv2OR/cKI3Z2xOszZXrhVaBog8jeXb8eZeeSrRU0VkG7rsCWLw0UNK+Ic2EWIg7gIxxbY0vhD70cDoXbYXliDUg8mNHmg1X9P5uyE0HNENPmsiaiFwcD20XZFFv773592JqamBcDPbhhCDh3qUJKxlndkYEQs/+uSBCJTiwWjIEvm1++sTBNbgc340V5zdmBpvvOw868coEwO9wfHGukVc7lSvBHlpzYt+D3NaIcm4k4eeFKR2xfv8h/uIvQxTR+IDF0eFcZL/v9sZOXOpQA6p5JPU4AY3n3Pn2Mw8HLPvaa/EpswJtYAI89Te2T2oIQvt1GlW4UVRRSdCbT1v6NyO7k4TAJ7VHH+1YGctY5Z5mA8YL8CCygOYjnpK4zxanLuFHDWBDA0ZlIcP26mKmaoBNgYwac5kBPyqTeve3ea2JQ6gsYl8XsHlMzWcrql2YKJitoQI87x5P6zq2Le6nPXjLRMCWvvWk938WItP+QjFQhI1MvwZ9DOu7ddRUOnT899VdSTk9NzxduhxWIEYzn8Mzn7y3iCNqy2/8+yhc+QOxbQusUAr7RtEQNEH4Rf3rhTIKf9WDmnzMV0ZyZBhl3D714ImWLrZG7JlSTnU809j5q53In+HyzBugIwQEf2cgL1yzOnyeX3xhYQVkxcSyjGD5MA0rwfiJ8i7HztLKGjp+rOn3+I7hrkyQBkBmLc9vcSyCyfEkQD/7N+fvHxVcy6P/8xe42wVnJGhpR6Z7LnQG41rau12iaiT1Q4L0Gta8qFIJCZxw1IxK8hH81kscAdLTbf3PgSJRs2gt10tRjNHhFQPERBo7rTdOWbGLz6l8I/Tnzrd7Vk2/qGkf35RQY4BXqkzzMf2uV8sFXa5yysFWJ4Zq1oreqyurQ3nQJ925yEydyozVbxrH8HB3AmiSW2ixd7+Ei3GyxG8ajF1UZSWjixYKpbR0YHgTQ3fb5XHZiU95QZ5Y0TXHJ4abHMchFzuwtHjtlH0Vjnowq/INLk8F/djVu7SL6HufyAApRyAruyBKmSFYLJA7HoZNeVFY2Yo6yuR6cOfDznZ6TdLaRVa/GHuvDf/lXd0hcz+8Af75tS0qXCTDM2f1/BA8N6UVsdNEe+oUSzUEwuwzAlcHfNwR8N0GJann/M9Oi1bFnCADfyvxc+9/qC9/ST2GqpYORLDgDbB5tn7dlLwHLb4/NLA2kY7O/8KOncTXVWJlWTI2494VPKUTDSG/EmGpNqk9AuTifhRp+ikq9PJntAvDJx6lYCbFb1r6WLGwkRTsPL113SzhKEn3VKPmBnquTLJejHdGRKIImu X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(1800799024)(7416014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:28:42.5796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4795d60-43c9-46d9-89b8-08dce87f70a0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0001708E.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7646 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_172909_896889_3210AD31 X-CRM114-Status: GOOD ( 13.40 ) 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 From: Abin Joseph Use device managed ethernet device allocation to simplify the error handling logic. No functional change. Signed-off-by: Abin Joseph Signed-off-by: Radhey Shyam Pandey Reviewed-by: Simon Horman --- Changes for v3: - None Changes for v2: - None --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 2eb7f23538a6..418587942527 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -1097,7 +1097,7 @@ static int xemaclite_of_probe(struct platform_device *ofdev) dev_info(dev, "Device Tree Probing\n"); /* Create an ethernet device instance */ - ndev = alloc_etherdev(sizeof(struct net_local)); + ndev = devm_alloc_etherdev(dev, sizeof(struct net_local)); if (!ndev) return -ENOMEM; @@ -1110,15 +1110,13 @@ static int xemaclite_of_probe(struct platform_device *ofdev) /* Get IRQ for the device */ rc = platform_get_irq(ofdev, 0); if (rc < 0) - goto error; + return rc; ndev->irq = rc; lp->base_addr = devm_platform_get_and_ioremap_resource(ofdev, 0, &res); - if (IS_ERR(lp->base_addr)) { - rc = PTR_ERR(lp->base_addr); - goto error; - } + if (IS_ERR(lp->base_addr)) + return PTR_ERR(lp->base_addr); ndev->mem_start = res->start; ndev->mem_end = res->end; @@ -1167,8 +1165,6 @@ static int xemaclite_of_probe(struct platform_device *ofdev) put_node: of_node_put(lp->phy_node); -error: - free_netdev(ndev); return rc; } @@ -1197,8 +1193,6 @@ static void xemaclite_of_remove(struct platform_device *of_dev) of_node_put(lp->phy_node); lp->phy_node = NULL; - - free_netdev(ndev); } #ifdef CONFIG_NET_POLL_CONTROLLER From patchwork Wed Oct 9 16:28:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pandey, Radhey Shyam" X-Patchwork-Id: 13828809 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 D2E8ACEE330 for ; Wed, 9 Oct 2024 16:47:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HFHzaniLyc9sqIhGbXxftavMA5LKfEhbLeJOtBqpVK8=; b=coxjy3L5hYjun/6W8brzTkzlVd LHI0jFwZJCfgqrgnJV9KYzyozfEUUlvdh65T2N3s0dYSBtxInelFj/bShqI4P8GFaykwOJSH2MAPd Y9NvBQo0aqxdAmTwosm8UeP9iaBYwXzULmlegyLBa2MqfoNLR8JqZ4N+oCBFmZ3FZ4+Z9n4s7ozr7 w71yWIYw2mI+KcPZrQi8eNh0nJK/LFj6m6P8TK590YF8jg0nYCOAFOYd4iGyS+ayNLGK9YwUVdsB4 k7Q5hZWQDQa5Blxw2goZoQpqLdrjNrqjygcWvkZ8V2W9QGLuX8Wqpd6ltbN0Kc+RiQ957LzkE4U0X iZo6pyUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syZpw-0000000A3LJ-2lvB; Wed, 09 Oct 2024 16:46:56 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZYf-00000009xtk-3NW7 for linux-arm-kernel@bombadil.infradead.org; Wed, 09 Oct 2024 16:29:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HFHzaniLyc9sqIhGbXxftavMA5LKfEhbLeJOtBqpVK8=; b=Izk9y0dVrJxx92dnw9mwctDBiT zt+F/76bGExwFAow6vxKKA+MDu9bHRA8O7XT3QeIGNf5HBWNgGtioQLqJLsXzIlK2FkI6mxp0s/n0 0lH01hgepQnG62Xs+/S1rWfXMA0KYL+JBSvgTES9QA+voBn7Wlc7Qc/BRKrM3fWEKn9KP/mUr+rY0 ZfbusrRPIxL22lBr9/JbJCU90Wbxb5RkqFpLZBI9kPYthkTbBe8P0vqoH/dQ+mEg69twgmFplomzS Oaocy1etqrocqAr+myb7XZE4Lo/+Aq7+3fSYWgVCUfgr/FqIzwP3jvo5yQ0rYM4lcY1K/TskpMi+1 HrUrUB+w==; Received: from mail-mw2nam04on20622.outbound.protection.outlook.com ([2a01:111:f403:240a::622] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZYb-000000051uv-3pVC for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 16:29:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MJh21W4Wp/teQDXa3m/kl5N/dWuwcsZa4eTiYLWBFoCKfVYfZdbQNRd6I8si8Cp9QM7pZA0yEXbi3JBUs6dysS1IFaM/Lk17i0UANmjDFO2jLQxXIU9SmwGMxOuDoMTAgeBOky0xfaJG6SLf40C+XLhdSK2vSAwajkNArPCNTodWxnSOJrDd4onuVzIrL39lbFiscaGoZ/YVkX2UcBDUbB61jHSkWJ4+CaNJX+jr1hF+wNkRwlEYhKKw+XGrxS31cy1rU3BOnFW1XVkTKK4UrxEmykxLTSJCp8atGOupOuhsCRxOHUIoyHDxIhc18YKUBGyJe+HR5RMH0KVUSj1t0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HFHzaniLyc9sqIhGbXxftavMA5LKfEhbLeJOtBqpVK8=; b=JKZpIauXDnrPjnKSBrMhot8oC3TazAOd5VK1njcpEXyOMH732ZhgL73mj6Mh0yh3/h0HAXLsNZwNUdv1L3t2zscz4bNuPddbeVdtlJ2c/fWjO3SxFgAUoJfAAe9O95bspCyYqi1cAklmsbmR2CzD7KX9I2nW4vYJQHpSR4zxkAnmOfZAdjBiqhnfXPXnrNHuSlBLPScFjDLiMOdWoPDIt2ifY9bE+9NSY4b2YyDFI7VS3Q0KtTtNieup6L/gzGZRzybL7xMuh7VLE9ohtcJs2O87Eq5q6HOl6S1CwHtOE7SG88CKfp9opihvP9XAFLrXSj2hSYzJ+IJ3Uuyk0eFhIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HFHzaniLyc9sqIhGbXxftavMA5LKfEhbLeJOtBqpVK8=; b=wZAgV+MlBJUn87GAeJR0RJcnXcxVU+Mig3rvFChKm6JpnuuTveEKxoEZpXMSw/1JHczejTETOyLkdwyPV16prGGyIuAUHXeyN4bO8AN4vCDOM7JFy5cHcdwr4mqG3Szrxoq6r8ezSpfz10rurZ6WrxiuOAhdq+pBT136knaRCQc= Received: from DS7PR03CA0346.namprd03.prod.outlook.com (2603:10b6:8:55::9) by SJ2PR12MB9190.namprd12.prod.outlook.com (2603:10b6:a03:554::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 16:28:49 +0000 Received: from DS1PEPF00017091.namprd03.prod.outlook.com (2603:10b6:8:55:cafe::97) by DS7PR03CA0346.outlook.office365.com (2603:10b6:8:55::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.17 via Frontend Transport; Wed, 9 Oct 2024 16:28:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS1PEPF00017091.mail.protection.outlook.com (10.167.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8048.13 via Frontend Transport; Wed, 9 Oct 2024 16:28:47 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:46 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 9 Oct 2024 11:28:45 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 9 Oct 2024 11:28:41 -0500 From: Radhey Shyam Pandey To: , , , , , , , , CC: , , , , , Abin Joseph , Radhey Shyam Pandey Subject: [PATCH net-next v3 3/3] net: emaclite: Adopt clock support Date: Wed, 9 Oct 2024 21:58:23 +0530 Message-ID: <1728491303-1456171-4-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1728491303-1456171-1-git-send-email-radhey.shyam.pandey@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: radhey.shyam.pandey@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017091:EE_|SJ2PR12MB9190:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a9199dc-71f7-42c1-1409-08dce87f73c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|7416014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: sG9JTK5CrDbZKOnjcp7SLhj7JXavHCnVrTnCaZpTt38nXB2eCCR0Hrh1n5Pi2TuBOJBaGL85bSAKxtQfNjh4LkvBRMQLtslR0O0Hd2HmyusqjNxTSTiPNEHILMLeufRM2wzwypniG/SSzz9JtXJM+qaxusj8l4gps7SLkPASDEaJMv6k3rA8LKCbo5MaZZz1D+PEmetZfXHtFZJLpMgWPfMOQky1163E9PxddDd51aORhnKW7oXu1TOZd3CZaPcjk2q4BtJVbJcu+CV+uW1/li+7r9/svwqTN1rPNOtbQ9J1F9PEfGY+1t/2EhOBiThWSfw9SYr2rsCzO+h2QhSYcBCM6qkgc1jVL5Qaf3VZ+QeyyaU5Kljr25vz0QZhfgpF/5JCMBgCgz2JFE8gFITqZbDFYNHIGN1i/O+YLeGFYnbr4GBF0YsPPiEQZPb71ezdHoTU4VAVhniAVxOvEDPYioAhdrlZTCF4TaCVB0gRwKdc94J2MvAJCxOOACmh/jQJ/bPzjHV3YHzxT2axIXoV9kBPDZQEEWjAdzYex+Cn9jg6ABlTQXBcWJiNI4dG5bqEKowubva+MEuWc3pCvzWvItmY8dneGWwaEoLrtOaUw5PvJ0YWIwmJUE8rbVd/fbZyhp8uNrvECU7mstLvZY80HfDU/5rG53azrns6lwlkY9yzRAib57z5Jbmq6WMjp0bCIHDxTHiup2kS0wrVWLvmQhXyaqJpUCyMYedCAZC9wVJzOZlX/Fe+FbpJqR73rC6Jp6f4CdUsRIj+FFPFIzAqIJpIUarZKW/iAm5J6njAfRQ7Q8V2F6fiZSTNCpJ5ZJAUTYJStYgyVKiWxw/cYploB7erDlGeb4iWFqkVs++dQGHlSNLd3abFOTSFm6zKmqIdVRdq6KKtKjantwFS6qI5BUsUYPKEe4UgV37ZVlv/ev9bQarmR1y8r0KbqHDM/3e1aE66caJuOMydMU60pr3lGrHyQBv8VMCS/n8JPVqId8ekx9YeEDibZioSJUFiTRLka8M8uOnehntBo1pJFbVMM9UFreZwAoETKMOOTvEeWxafzQ7h+jOrjkjZZSPHiAXl3D5tNXbfrDFMxiopFpS4+ZuUGOD/Iu9co0uBuhtcccQYcGyg/SmecN2NKSlIy8zTsdoOt0aCOQK8j9eRRzfXEYXhvVXHzplvUVF83qo92km+5Vlln4Mnn4nEIO56uXVgxFBGXv8aXTJyBH6Zx+5nr5nDgIbVDYIGIHBTqdbue+jt8joy2bVWhg20fZ2ziKyqMvUZB2oDHU5ZCWFiQEpPDnEug1/m0SjceSnBfzLPsFAkjJr7RulQsdjTd8PizUicLD+9Z2POEY1Akq4LbDIUK0aCUYqkA7ZOHFUmZyupuCHMlu+IBd1kTyqhZNdYNxpl X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(7416014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 16:28:47.9147 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0a9199dc-71f7-42c1-1409-08dce87f73c5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017091.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9190 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_172902_042087_10B212D4 X-CRM114-Status: GOOD ( 13.80 ) 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 From: Abin Joseph Adapt to use the clock framework. Add s_axi_aclk clock from the processor bus clock domain and make clk optional to keep DTB backward compatibility. Signed-off-by: Abin Joseph Signed-off-by: Radhey Shyam Pandey Reviewed-by: Simon Horman Reviewed-by: Simon Horman --- Changes for v3: - Remove braces around dev_err_probe(). Changes for v2: - None --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 418587942527..ecf47107146d 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -7,6 +7,7 @@ * Copyright (c) 2007 - 2013 Xilinx, Inc. */ +#include #include #include #include @@ -1091,6 +1092,7 @@ static int xemaclite_of_probe(struct platform_device *ofdev) struct net_device *ndev = NULL; struct net_local *lp = NULL; struct device *dev = &ofdev->dev; + struct clk *clkin; int rc = 0; @@ -1127,6 +1129,11 @@ static int xemaclite_of_probe(struct platform_device *ofdev) lp->tx_ping_pong = get_bool(ofdev, "xlnx,tx-ping-pong"); lp->rx_ping_pong = get_bool(ofdev, "xlnx,rx-ping-pong"); + clkin = devm_clk_get_optional_enabled(&ofdev->dev, NULL); + if (IS_ERR(clkin)) + return dev_err_probe(&ofdev->dev, PTR_ERR(clkin), + "Failed to get and enable clock from Device Tree\n"); + rc = of_get_ethdev_address(ofdev->dev.of_node, ndev); if (rc) { dev_warn(dev, "No MAC address found, using random\n");