From patchwork Fri Jun 21 04:57:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13706798 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2045.outbound.protection.outlook.com [40.107.243.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40C2812D75C; Fri, 21 Jun 2024 04:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945872; cv=fail; b=inT7y9EC+IEds/EzlBvS5loNxbCYQJr2BrTiwi5N6qvsN/qR4Y30+rvTE3sLlUOi67nYX0lmzKhS3VK2qgmakVqL1+QcO/DKQlZBIgJQjyQodz+Xsv2Wj9XEYYjm+eOc78Yx5KZBMQgrlNT4L5Q3GqYnGwg9A7WexUCAqzUvhVE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945872; c=relaxed/simple; bh=ffkqLdBfq2fqlXlNwgWxVL8nQxw0tpEiCW/KLnNH73g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tpwj7u7Csabk/QgXyWOdoWMBlM3j0y0Ny89R8WBBT8qhXtmFkX39vcp6DP6C0GiwXDM/M2dNchZPIkvel+6qo51A8XuJIgse15YEANKgV5AF5Q4TNqDkYW3GvofheO8XnHBBRmraKAdk95wkKeb8cmeY/CzYQlDnzR4FesuXW40= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Q8JgFBv/; arc=fail smtp.client-ip=40.107.243.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Q8JgFBv/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNt4PI+0/qiXiQh/aVx3opPW6s/qrDOyI09FE1hK2mS4OqV2E5KSHZNoIs1yIZgbT9vtQKALidxrjpIsiw078038EUP5xWzxu2NZ9ckZxs6XkeULkoLugAp6HI0nGPLDsZCg06SuVHfIXnNSKvcUN0zM+PA6uW61i8/6tst3kY3sGnSWJ5h8tagVzfg+xd+UwjyRCaGZZb1GkzO+sbhul/7KT+3nPeT3pB/k0XVD3ZleQbl8erawcQz2X++9HnUevovXm5PK8F2+bpDOG/HiQEEEa7LJMFw4OCw935OvCojPXZX/1NToOaxL35/NSeqr25xn58lWL2t3ZPDCJmAVdw== 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=B34uQO2cQgqVztamM4y+DM/0CUbtzsgsqDKKWoBgJL0=; b=COEwxM2cnzw3N92tkobeEf7q1M1zdX98H7VcUW004M5mHG3rXyS9oW5Gen8rKJwf+XI1KcwIwbBUoya3FvNJeRgfci2LMOITDZcfksl9bG2TRbTCS/UmfCrEizFOUrv2axP3NgAtQ68ILlLZGHpVMS9b+eymW4Q0SDwWBqiKzKYexhRliBHUzpD8tUDLciDgt3kSHlTCJ0El2xLkNncy7WfwU/il7AdIm3hBQh4MPx4evG2CCCSqQdgeJvvVjF4mXNdacHzioHW1hxm3r7OMr/RL63MmPyOSddS44Z/eOhOhpHGnOaQnvzXt/PL4nQ41sNJ3neu4cKx64N+ZT2dfPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com 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=B34uQO2cQgqVztamM4y+DM/0CUbtzsgsqDKKWoBgJL0=; b=Q8JgFBv/8ZTPWSNTwiqeLzKACoFJK1aoY4jAl2HK8RqWmBKKYafQS+Y4tl5y7FIjEOHktgKD06NPUQJ9ugp7FlDasmc4DaHO/SI5/vI2xHqUHdjizrUSvzy018l3kDyPwMST5+vRMfXntACOl0HE1OfvoxPxHEpLk2KV8a2JUtU= Received: from MN2PR17CA0020.namprd17.prod.outlook.com (2603:10b6:208:15e::33) by DS7PR12MB8290.namprd12.prod.outlook.com (2603:10b6:8:d8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.22; Fri, 21 Jun 2024 04:57:47 +0000 Received: from BL6PEPF0001AB4A.namprd04.prod.outlook.com (2603:10b6:208:15e:cafe::46) by MN2PR17CA0020.outlook.office365.com (2603:10b6:208:15e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.36 via Frontend Transport; Fri, 21 Jun 2024 04:57:46 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB4A.mail.protection.outlook.com (10.167.242.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Fri, 21 Jun 2024 04:57:46 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 20 Jun 2024 23:57:46 -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; Thu, 20 Jun 2024 23:57:45 -0500 Received: from xhdvineethc40.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; Thu, 20 Jun 2024 23:57:41 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v7 1/4] net: macb: queue tie-off or disable during WOL suspend Date: Fri, 21 Jun 2024 10:27:32 +0530 Message-ID: <20240621045735.3031357-2-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> References: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4A:EE_|DS7PR12MB8290:EE_ X-MS-Office365-Filtering-Correlation-Id: d4a4057c-2ea9-46a9-d964-08dc91aeb178 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|82310400023|1800799021|376011|36860700010|7416011|921017; X-Microsoft-Antispam-Message-Info: C5kYIhBeq1caFcMrvHJuicNs71W3fiknabk6+9Nzvov44FRZsbqByOpT5pSuZ0ZXB5QAjc2N8UOJEn2wGigqn74FcNOFOEjbF/7tMSoB/pnchjTQiYluslmqtIOyDz1zfK/v0CJqBmXPGqPsKVlc1NQUB0+r16LhVlSlTZPksWT/lPWjYPLEb5z/mTBNhcrVBCOYohqcc2oifNQClCTRHVyNJ+0vX8eda3HIvOVcPVkncm7iZnIst94pwxfvohhOLHPunyoy63tMtYK6VuAx9sEnbHOmLEmrKCD1Pdr/v/zzwAq9XG+gLVbhczwIHTK3BaNEewuuJN5q47sLig4ESzgS4Ic4RlK18F+hx4ZSObMdDZqn65uKaakvDVc1Nrhg1sfdsHdHCJQ0KM7FoDdjcfYK8j8f2+3Z7IHByXfmP7hZ6Q+d+Pmm0XWVoT2hjUX4B9+vAUzR19Yx3pNBM0MspSElfHipnZMNKed5yGEPWZrHT8Qv+6ViNyMz1R+TgIGV3eXQPmXz8yHzTCNv+iQ3ZBjyveKMKXGmBzC3hW4DYtiEd/ij5bgzPx29YqGNVzGFZJTdbUndr7ZzRVaTaj5bD1iSIgZ9I3lBn6Bu9nRxOlE7gtw0YJrNbvqbqVAdeTW3CF1AMATtRTT1k1dHf3lpI7Dk18gtu6vTcwEDUUBVinz+as7/oOxobZM8owe1ZyBnW7EDD3dmBhXo9LcfFqgxhnCoHMwQ5ZAlLzh66FvF+XmKsBCXv0zoT+p6drDEUj5tYk/na0CpnFytZJ/xIPvvm1A13cNph14jvCSzqPyYP/GXJOrMzuhVNmXK9GeQYiULZY9472kbOtbhseQ56w0UKj1KpZSfA9Wk2rWlKDaGOCpYpd2lz4haYVVFKLrkLG7URo9J+VO2JQT6EovohFgDJP8c4zTnAmRtzdl8WZvzsTa77GPZIW7juoX6JfjC/BNeiLRO50sEMFWQO2ZwQ2An2PiRmLFAlyq0xFnFWxqT3cyr+6Knp7yY26gRKHeOByoAixqGMcyXDE8PerMiI8h8lSaGtWyI0+YTJ5o1eIBu5+Cge5cw/abJnRkZakq9+RR59AtPelsA59bFnX8a/uUfgsBw85cSxDaoviZa1rvEVSLB+Xi6MU4FK+DYYPc10ktzc9z3CfvACADs2D1twKhvf+Zen+jTAh+3KRj3eJRig5Cix5SkBE76Ko0HyAhr6dX6vNr03fQPC0WQH/OA+2MoMMpajX6GbiuGwSTy8Nc/YLHV1ftYcysxFHV3gv78xZd8Z+ofM0tVr2BvUObemEN7QRBM7spnJ7/sbk/wQGDwqbw67+88aSLwZysBjIndyC7WHWwtvMHJ9FzJTSrDFL9N0jmL4eHTUwNA2B7GFE8d3nSyeuZ6mpbSoAofjMIxn32OYrudxTXSC9XhNL4wMmbPHaxMxDssPECoFmoBd1Cnpb0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230037)(82310400023)(1800799021)(376011)(36860700010)(7416011)(921017);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 04:57:46.6810 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d4a4057c-2ea9-46a9-d964-08dc91aeb178 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8290 X-Patchwork-Delegate: kuba@kernel.org When GEM is used as a wake device, it is not mandatory for the RX DMA to be active. The RX engine in IP only needs to receive and identify a wake packet through an interrupt. The wake packet is of no further significance; hence, it is not required to be copied into memory. By disabling RX DMA during suspend, we can avoid unnecessary DMA processing of any incoming traffic. During suspend, perform either of the below operations: - tie-off/dummy descriptor: Disable unused queues by connecting them to a looped descriptor chain without free slots. - queue disable: The newer IP version allows disabling individual queues. Co-developed-by: Harini Katakam Signed-off-by: Harini Katakam Signed-off-by: Vineeth Karumanchi Reviewed-by: Andrew Lunn Reviewed-by: Claudiu Beznea Tested-by: Claudiu Beznea # on SAMA7G5 --- drivers/net/ethernet/cadence/macb.h | 7 +++ drivers/net/ethernet/cadence/macb_main.c | 60 ++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index aa5700ac9c00..50cd35ef21ad 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -645,6 +645,10 @@ #define GEM_T2OFST_OFFSET 0 /* offset value */ #define GEM_T2OFST_SIZE 7 +/* Bitfields in queue pointer registers */ +#define MACB_QUEUE_DISABLE_OFFSET 0 /* disable queue */ +#define MACB_QUEUE_DISABLE_SIZE 1 + /* Offset for screener type 2 compare values (T2CMPOFST). * Note the offset is applied after the specified point, * e.g. GEM_T2COMPOFST_ETYPE denotes the EtherType field, so an offset @@ -733,6 +737,7 @@ #define MACB_CAPS_NEEDS_RSTONUBR 0x00000100 #define MACB_CAPS_MIIONRGMII 0x00000200 #define MACB_CAPS_NEED_TSUCLK 0x00000400 +#define MACB_CAPS_QUEUE_DISABLE 0x00000800 #define MACB_CAPS_PCS 0x01000000 #define MACB_CAPS_HIGH_SPEED 0x02000000 #define MACB_CAPS_CLK_HW_CHG 0x04000000 @@ -1254,6 +1259,8 @@ struct macb { u32 (*macb_reg_readl)(struct macb *bp, int offset); void (*macb_reg_writel)(struct macb *bp, int offset, u32 value); + struct macb_dma_desc *rx_ring_tieoff; + dma_addr_t rx_ring_tieoff_dma; size_t rx_buffer_size; unsigned int rx_ring_size; diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 241ce9a2fa99..9fc8c5a82bf8 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -2477,6 +2477,12 @@ static void macb_free_consistent(struct macb *bp) unsigned int q; int size; + if (bp->rx_ring_tieoff) { + dma_free_coherent(&bp->pdev->dev, macb_dma_desc_get_size(bp), + bp->rx_ring_tieoff, bp->rx_ring_tieoff_dma); + bp->rx_ring_tieoff = NULL; + } + bp->macbgem_ops.mog_free_rx_buffers(bp); for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) { @@ -2568,6 +2574,16 @@ static int macb_alloc_consistent(struct macb *bp) if (bp->macbgem_ops.mog_alloc_rx_buffers(bp)) goto out_err; + /* Required for tie off descriptor for PM cases */ + if (!(bp->caps & MACB_CAPS_QUEUE_DISABLE)) { + bp->rx_ring_tieoff = dma_alloc_coherent(&bp->pdev->dev, + macb_dma_desc_get_size(bp), + &bp->rx_ring_tieoff_dma, + GFP_KERNEL); + if (!bp->rx_ring_tieoff) + goto out_err; + } + return 0; out_err: @@ -2575,6 +2591,19 @@ static int macb_alloc_consistent(struct macb *bp) return -ENOMEM; } +static void macb_init_tieoff(struct macb *bp) +{ + struct macb_dma_desc *desc = bp->rx_ring_tieoff; + + if (bp->caps & MACB_CAPS_QUEUE_DISABLE) + return; + /* Setup a wrapping descriptor with no free slots + * (WRAP and USED) to tie off/disable unused RX queues. + */ + macb_set_addr(bp, desc, MACB_BIT(RX_WRAP) | MACB_BIT(RX_USED)); + desc->ctrl = 0; +} + static void gem_init_rings(struct macb *bp) { struct macb_queue *queue; @@ -2598,6 +2627,7 @@ static void gem_init_rings(struct macb *bp) gem_rx_refill(queue); } + macb_init_tieoff(bp); } static void macb_init_rings(struct macb *bp) @@ -2615,6 +2645,8 @@ static void macb_init_rings(struct macb *bp) bp->queues[0].tx_head = 0; bp->queues[0].tx_tail = 0; desc->ctrl |= MACB_BIT(TX_WRAP); + + macb_init_tieoff(bp); } static void macb_reset_hw(struct macb *bp) @@ -5215,6 +5247,7 @@ static int __maybe_unused macb_suspend(struct device *dev) unsigned long flags; unsigned int q; int err; + u32 tmp; if (!device_may_wakeup(&bp->dev->dev)) phy_exit(bp->sgmii_phy); @@ -5224,17 +5257,38 @@ static int __maybe_unused macb_suspend(struct device *dev) if (bp->wol & MACB_WOL_ENABLED) { spin_lock_irqsave(&bp->lock, flags); - /* Flush all status bits */ - macb_writel(bp, TSR, -1); - macb_writel(bp, RSR, -1); + + /* Disable Tx and Rx engines before disabling the queues, + * this is mandatory as per the IP spec sheet + */ + tmp = macb_readl(bp, NCR); + macb_writel(bp, NCR, tmp & ~(MACB_BIT(TE) | MACB_BIT(RE))); for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) { + /* Disable RX queues */ + if (bp->caps & MACB_CAPS_QUEUE_DISABLE) { + queue_writel(queue, RBQP, MACB_BIT(QUEUE_DISABLE)); + } else { + /* Tie off RX queues */ + queue_writel(queue, RBQP, + lower_32_bits(bp->rx_ring_tieoff_dma)); +#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT + queue_writel(queue, RBQPH, + upper_32_bits(bp->rx_ring_tieoff_dma)); +#endif + } /* Disable all interrupts */ queue_writel(queue, IDR, -1); queue_readl(queue, ISR); if (bp->caps & MACB_CAPS_ISR_CLEAR_ON_WRITE) queue_writel(queue, ISR, -1); } + /* Enable Receive engine */ + macb_writel(bp, NCR, tmp | MACB_BIT(RE)); + /* Flush all status bits */ + macb_writel(bp, TSR, -1); + macb_writel(bp, RSR, -1); + /* Change interrupt handler and * Enable WoL IRQ on queue 0 */ From patchwork Fri Jun 21 04:57:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13706799 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2073.outbound.protection.outlook.com [40.107.95.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6E5B1422D6; Fri, 21 Jun 2024 04:57:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945878; cv=fail; b=KlcEDYRuGz1J+JprsUU59z+2fM4Ly16qyTxHSz+RWSo9xFPS8/j7SF00HCBr6UjoyfkhQZjp1SjNAY8/zPrhSP12ZqrdA4SnDwmZv2ODzFX0YZqgjmCKnHUQ5ORh2tf5CPjrbCpEenEEXr3RQUYIKHl3GWI9OTsFF8xKKmfSv6o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945878; c=relaxed/simple; bh=c9//7KBKsuH5+IUhfBJzhCb1fw21P1RreQw5z6GuW40=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Mn5CeDizh2/JrSo2OwutnWjBr7jh0TKtAPc81UKnFC4EqgZYcaJQPR2hRVqF6mb4y9Ms66Z4ia+v2Y5An7j0Hx/Y0mU44LS3k0OXPFm/r0gWPCV7oGqMNuDdmlY14VUPVTWMk6sIPrDC0+bVXJhKh9QCTAxibx968A5fSy/mfVA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=pkOAzQ7b; arc=fail smtp.client-ip=40.107.95.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="pkOAzQ7b" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LuR605NDm9tsNIvF0oGIhjSsfdlMekp5sX73TiDJ8r8xuR3z6ZHdh5uMGzZFfQNpkh0X7ebcjG+t74NHThdjpztCcGQvolkl4JYeqDBYWQ80EgS1QS2vPOZ8VYAUTdjPrWKwz4vUWklZUjcTBT4RKFjGfXp9JxhSSGuPJoF5sQ+GhQJe4xWFMAXk3EnCGmX0r7SmWF0hnATC4sJxKVb2g3O4pD2ingHc7fexOXhDg177nVQFah5GT8bbyvTz6KnHl8H8QD3h/Oid+VdUgjqi9LmJkN2STk8QQvsSFmtDMb7zoRi+0c4cYSm/tH+3Q7KO+EckQTIE/JzhAkJQDh7o4g== 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=Wk/lU7HHUtKZYvFVMBoHhyBzyKqnierFbLy8XZl42ms=; b=YGoyEcTJHDNWUqJmBHCdbMApJj+HkQ5sY0uRvhlA3ieuzfvOoPQbKKaGIssOW8PDCCZUNaJSrjbdWs2nfX46XObnaP6VrIlj9DmYbDoDOCAbl19lS4sem43gK8OxXW7fLznV+9+1xpyqll8rnqLhU7tHdfNeQDYnn8aW4eYXiNw/nSvjGCx36+JQh/FExB9PbTfGcc3+Du7W0m7zr8VHI0es8IDJM5StHFDI2clkHsXxDs0hi4rFJHacZZtLN4bOFyWDP2qkABXo/KDO6JUIx24VI0elkAK2XNiKoxTwLatWe+LGx+qnA9DJ/KEYSuB2aPmVoXhkFAOtdDxIH+jakg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com 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=Wk/lU7HHUtKZYvFVMBoHhyBzyKqnierFbLy8XZl42ms=; b=pkOAzQ7bOA938Ft2MAdYiE6rNn2rOSVIovL3S5Z6J8WcboOSsHAT//1Bd1NnZOu1/FVqyoBQoqRmdSN2RibuZmuxqfBi0N/0DtTNLxw90jZSjxF29Xd9ciBegfWJTP9NrBPP8cVC1iZHrURhNfB7PJb9MAONacNyAr2WrUrFev0= Received: from BL1PR13CA0252.namprd13.prod.outlook.com (2603:10b6:208:2ba::17) by SJ0PR12MB7035.namprd12.prod.outlook.com (2603:10b6:a03:47c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.20; Fri, 21 Jun 2024 04:57:51 +0000 Received: from BL6PEPF0001AB4E.namprd04.prod.outlook.com (2603:10b6:208:2ba:cafe::bd) by BL1PR13CA0252.outlook.office365.com (2603:10b6:208:2ba::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.32 via Frontend Transport; Fri, 21 Jun 2024 04:57:51 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB4E.mail.protection.outlook.com (10.167.242.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Fri, 21 Jun 2024 04:57:50 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 20 Jun 2024 23:57:50 -0500 Received: from xhdvineethc40.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; Thu, 20 Jun 2024 23:57:46 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v7 2/4] net: macb: Enable queue disable Date: Fri, 21 Jun 2024 10:27:33 +0530 Message-ID: <20240621045735.3031357-3-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> References: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4E:EE_|SJ0PR12MB7035:EE_ X-MS-Office365-Filtering-Correlation-Id: 36c89e9d-2ca6-497e-a41c-08dc91aeb3fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|82310400023|1800799021|36860700010|7416011|376011|921017; X-Microsoft-Antispam-Message-Info: W41Bp//KlJdWgL6uuw4wk5pnfbbkbsd8l7uFXxSPGpnad7Qnl4nx+6WcTL+0QJHmK7tQ4xOa+fRZ5OcAME8PtU/M1fg60C6TosApKVbtShc1I/XtPeD+zHf0nfJVtKyDLgCh1dPEJIAonup+ILl2JgMXvQz3H/Kq+WQgreCm5cz8ZuPw73NADjxBQnXQy601y41nSCY6mrllOPx6wQiJAWAJnw/f/BkFYRK8s/px/nVaNTELXrWl8aPT2fDPJIaKdi+dxB1aRC1fVSZfHILgJQ088CwRJumB/qUKXyKfnw0b/+IL9xq1wk9YC2eXqXegf2XtIpRaBFVu15zF3EGxnZnNzSBqJcIsO3yT6ywOTmAHqwe5vBBl0Tb184c/u18sTw8ORqVAcqiDvIlv7RAjkV4E74Hpzbz83Nd6cY6TRTpWb7eHqVELgkDjiOQ+xoxEGKZjF60xgxeu75jD9k51KJitRGH80KCQiytiqA7DtPWt8Tc9dyLIXEwlOinNRgWryMlixCU2kzl759gETznL020/SD0XkIR38XwV8ODsme+iOZBBefvi+ruwt+dV5h4ipywae8tALbsG9rYw+5XtrKEHAbG3cHZtcGYtKU+GrsbSCsVmD09fREdmBJ+JyiqpjGj3kECNanu+e7PMQDwcJ02qlpbJ7/7/yaNYkDujkF9QG+SzLClygIqzxlDPtaNZIRhopCiRFXz9IYnF5F2elQRXXEMWQuD4QLOT24Ke4K0ViN7nE8+auxtYPKn5LjHIdEtEYr4KxvkefMZ8k+BOM28+P3YPGqut2//xN/joT5m4kYoL/LLa8/zutnBMtOwtuHPdz5xVxWA6p8Ap6ZspBRYSJiTEYhzBzX6c/DaIeOF52lu2sKlluQ4xFmiMXNqSmZhG5SVrApbndJBFvqM5cyA+c8U5IpezPpDZBZikSj23f7AXhLy3sacJqmSw7UuGg2n6Qs6ROeDLsjASUTGfEjxRyr61DDW0Flb5HH/E7pqHYGUrHFchnWRvGtqd9RGCNU/K0MKb7ulkEIojdhwtBlBMNgLpA2r5X/da2CxpD1oO+ljeygnuoy3liPjf1rbVZ1REL3BKDd6rbrMYIK7WevWS07u6dFW5ZCX33Wb2JBmyCbcDPbPDbWoZoyqr1T2mw8ehxsLuaZfVqX6rGc9WWdtK28RGN1uV8ynqgWioIX/jVuqL+lGWtptBZjPMn7qeN78qxd4vW9DYAm/Dk/Pwo74sv8if3hBtWNBlou6Dz1L3z1h4SI0NCmstsxxkppp9EgbL/ppluDaTUybWei3KufU0W4qEeb/MuXgo/0yvrcz9gzRlTzjvbUu1p/cJrmW9m6Ajr8juDrolj9DBJ98M5g73HhUeI4MauCkTdT5ZQemoT+pV/kVsJg1EMrbY7rJZqUxITq0nvIASQBf2FHkzucYaUjn82TauERW++jzuCFk= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230037)(82310400023)(1800799021)(36860700010)(7416011)(376011)(921017);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 04:57:50.9027 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36c89e9d-2ca6-497e-a41c-08dc91aeb3fa 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4E.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7035 X-Patchwork-Delegate: kuba@kernel.org Enable queue disable for Versal devices. Signed-off-by: Vineeth Karumanchi Reviewed-by: Andrew Lunn Reviewed-by: Claudiu Beznea --- drivers/net/ethernet/cadence/macb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 9fc8c5a82bf8..4007b291526f 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -4949,7 +4949,8 @@ static const struct macb_config sama7g5_emac_config = { 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, + MACB_CAPS_GEM_HAS_PTP | MACB_CAPS_BD_RD_PREFETCH | MACB_CAPS_NEED_TSUCLK | + MACB_CAPS_QUEUE_DISABLE, .dma_burst_length = 16, .clk_init = macb_clk_init, .init = init_reset_optional, From patchwork Fri Jun 21 04:57:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13706800 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2069.outbound.protection.outlook.com [40.107.243.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C75D4148841; Fri, 21 Jun 2024 04:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945880; cv=fail; b=sTS7mQlOC/hdGFMZ7JmN8T/FXve7nyfENZ+roePN8IXFiAiLXwWGv07odEkr06UwBsImT+BQYuONW9A/pFXL55S3JWmCL38FZLiQquLJ+xOeHmA/eJwjG2AnLG+sdrCy1LvpeYFrIEWNMDZjT/TuuyWWJclnf8NQwo3gh3FrWko= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945880; c=relaxed/simple; bh=rxBwsVuEMm4en+iudM93JFNsQmWJ/vOD6p4igVb6t5g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CHYW3Kyhful6qLYl6LmDc6eZHbPX2z5d1I8l62WyRYG1fBkdwBb/StmQ4IR/Ws2ff75NprTtxxNjBtPm0cTmc/Rr7dzXL7UfsJGpeg0Zt3aZTGLy+mfsPELo2nKjDsXsfZCpud6+1Fh82iqC2EboIudu7ZW7Mt+HHAESnWXt4NQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Bmr7B3Th; arc=fail smtp.client-ip=40.107.243.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Bmr7B3Th" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cbJBuVA53wVF5UzjbqKAVmIIcwbmkk616+XYb7jhG3oj1UwzbH6ebu9vabJ9ZNYnocinc2b6R6ZyxHtSlvkvk1rZtOaZF7TGBvo65VHFFwB0akr1UaNpWvKAM1MMX4ixTOLyLaQICvRTIONlISXPSSshfMkQ8XWKHNOSvDvgxO/2rF8k5pnjQUPgtBM/Wm7/supUuGx2mqHc1qUf7zt6WVNY4v06n8OgxPHx+Es3rWdZ7ADB2l1nQ4PgNJCJRcUdoPskSIPpR6CoeD7iWHbzxD/qXfYG3rYqgXQCpYa9HxSURvZjJCZfAciheUIhm+GlDZ1pcHZXMzD60W3vOGkKDw== 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=wvg3jpW2lh2t3pX9aK6gtQZCKnwwi0XkmXf86dtFZRM=; b=QE8yu1EnO4iP/HA0TQkJNwzoY+vijrnuMYW6IUJzZC1bxsmyHKtx2BDCne3yvsZDN++hKaCNqZ20Ri5zAmBJhl7lEsmvGHxHgzPR1K/ZV2KHUCrGtRT9rImGB6GIaILENl7RD/xed/Fw6DVN8ZgySHT8JsspdOTlqrUkXbwV2S6qZG3TSAkwQXQFj+dZFNSvdOz8H9rTtXJv849glJCvo7x62ovCqbe+AF0GHhSvD7fdDmKZVYDEpvY/ME3MZ9zdASOJ/ZAZXPpaofowYp9/Nq6WmSMWip+nspfY+rCPHckY0Km7AFIOFt5PpN3hggJmwSw4kQiVr0+FHM+/dV4Jyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com 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=wvg3jpW2lh2t3pX9aK6gtQZCKnwwi0XkmXf86dtFZRM=; b=Bmr7B3ThumG8oWhshOMtHN4FHmMRJnUjV+OD/hG17uu/kkWGxzfiVYCvDQGBf9PDXM6xd4h+SqfiryCYmnM0vtBoWwa8V7e3V1QtfYKHLLsFs3dU0dTTO2v4HrqQmVb8jkTU266MuBOv7Gcr4GWB7J9ZEmRAxKbpp9rFkI5AeFI= Received: from BL1PR13CA0267.namprd13.prod.outlook.com (2603:10b6:208:2ba::32) by MW4PR12MB7239.namprd12.prod.outlook.com (2603:10b6:303:228::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Fri, 21 Jun 2024 04:57:56 +0000 Received: from BL6PEPF0001AB4E.namprd04.prod.outlook.com (2603:10b6:208:2ba:cafe::3f) by BL1PR13CA0267.outlook.office365.com (2603:10b6:208:2ba::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.32 via Frontend Transport; Fri, 21 Jun 2024 04:57:55 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB4E.mail.protection.outlook.com (10.167.242.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Fri, 21 Jun 2024 04:57:55 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 20 Jun 2024 23:57:55 -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; Thu, 20 Jun 2024 23:57:54 -0500 Received: from xhdvineethc40.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; Thu, 20 Jun 2024 23:57:50 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v7 3/4] net: macb: Add ARP support to WOL Date: Fri, 21 Jun 2024 10:27:34 +0530 Message-ID: <20240621045735.3031357-4-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> References: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4E:EE_|MW4PR12MB7239:EE_ X-MS-Office365-Filtering-Correlation-Id: 95ed7aba-13d9-4dfa-6e3f-08dc91aeb6cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|36860700010|7416011|1800799021|376011|82310400023|921017; X-Microsoft-Antispam-Message-Info: mE51oVk/JuDy/C0udJQSSifq36PHnGywcwwZVnymJBlTEUwj0H0sgaviJn75pJ5zuecUmpsAVMgnr1MWfwajxgJkF6FBWNFjjQRv/cEXBLzRDyM+nDVlX9VuyhJLC86HHXgCDVFPQmhmLoXY+HgBalY8quT0rf/rVGT7Npcvi8vditbNQIdeJ1MPd8YQU0OL+s3Q/QJk9h+gaPPI7gENoo7OZ06XSLiHuPFgxzg8fp2pSCGl015M30n0/5grExsDEkFx5OSE+UAcggXS4dQonAnlwuJ/gFsIjRatn2EKZDwO/3MHmxJv5/FHuuB+8abL2zcPainWvOPxfX7GpDp3gMvCjwfC8VtBGf3wqc15RC9nQwPn2mxJU7RRZ87jT4CuSHQULNpfUa4KwOGRwoAcwvtINKt34ZPJwsH5HnnTF6HF2QVQ/CwhHx13gGZjuYZQ3iap798oOxQJjuJkRKc5nOLE9fR4y/yOORI6Stje/iRsWbh1f4KkWVBNPMzlkmsqsKko0MbHZuKLtImIf7E3a5NV275EOQrzL31+vy87TbFtWIQOWnqdxHnccGnk7iPvSFTdIx0tBlH9ToR8uSsex4f+frHVGL5tz9gqb9rqieDyEkF2vQoYP53SEnQMax4kNapbNpnJX27YA896aRJyix9cMT6SchSfUdbQ/JwCpzQUV3AvwSdbDfYh2uSty3n4f4wzmxG5CnL97g4NpF7QBsslxcplc4DpEdepMj0rhKySNHtLv/f9BdyqUT8P3pvGnN7W4l6EBL2sh6ZPvwwOXfBroUrI3xzNXwAK1VBhYvUJK+YgD9mabvG5cCxIcrjW8/hIW+U8tPtwTEJDuflWesPhenZ8ADod00e942Ruyvvg4JRi1344S8IZ6u3NA0nfW4rSWTrT3O9tkYHYqTlOFWsOXuIOuLJ1GTWOH54iYGklv+t4/6yVWhPnBEeJSTpanO+RxO+S4h7fXpeDU4myM7eHvyxe0DK6uUru4XhAlL9vnsH3YcptjOPBYX7FUT1y0iIrEwTu7fa4JzTj2RNUeBe0zss84R9vfKopM8OPBPkRO/rShhX+lGhR62TZ8tA3Tq68E8uF7Nzn6Hknv+yKfqNJgeHI6aiVYSd1wthwGSAn0AKC2tOr1HY/KlIZZoZ1ybLW9s/8rZ66H+JYjMcIE9XhSalsMyMFrX15CpIOWfoBQpjOxvtF9A7govgNCz+pB7cUfyoO8pUmioz9UfF3rEOTY8NdgPZRCxrlS9lXNFZfJOXN0OFNhUE7CS1QrJQett65H9X3YFY1mWlHtsWAYfHO0w8rDW4r6ffWDA9L8Ly3wEXdLd9UhBkbHwVs7+hh62w0GxEBBwmpJjh6J86lDcExoa6E9gshurAX5wniCYLvQQuF9Gkysjtq9Wlesd5EbtWgZNvv/xLhTBJXmjLcub7YBxw9bsE9JOsJyGwPg2I= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230037)(36860700010)(7416011)(1800799021)(376011)(82310400023)(921017);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 04:57:55.6371 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95ed7aba-13d9-4dfa-6e3f-08dc91aeb6cf 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4E.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7239 X-Patchwork-Delegate: kuba@kernel.org Extend wake-on LAN support with an ARP packet. Currently, if PHY supports WOL, ethtool ignores the modes supported by MACB. This change extends the WOL modes with MACB supported modes. Advertise wake-on LAN supported modes by default without relying on dt node. By default, wake-on LAN will be in disabled state. Using ethtool, users can enable/disable or choose packet types. For wake-on LAN via ARP, ensure the IP address is assigned and report an error otherwise. Co-developed-by: Harini Katakam Signed-off-by: Harini Katakam Signed-off-by: Vineeth Karumanchi Reviewed-by: Andrew Lunn Reviewed-by: Claudiu Beznea Tested-by: Claudiu Beznea # on SAMA7G5 --- drivers/net/ethernet/cadence/macb.h | 1 + drivers/net/ethernet/cadence/macb_main.c | 58 +++++++++++++----------- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 50cd35ef21ad..122663ff7834 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -1306,6 +1306,7 @@ struct macb { unsigned int jumbo_max_len; u32 wol; + u32 wolopts; /* holds value of rx watermark value for pbuf_rxcutthru register */ u32 rx_watermark; diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 4007b291526f..cecc3d6e630f 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "macb.h" /* This structure is only used for MACB on SiFive FU540 devices */ @@ -84,8 +85,7 @@ struct sifive_fu540_macb_mgmt { #define GEM_MTU_MIN_SIZE ETH_MIN_MTU #define MACB_NETIF_LSO NETIF_F_TSO -#define MACB_WOL_HAS_MAGIC_PACKET (0x1 << 0) -#define MACB_WOL_ENABLED (0x1 << 1) +#define MACB_WOL_ENABLED BIT(0) #define HS_SPEED_10000M 4 #define MACB_SERDES_RATE_10G 1 @@ -3278,13 +3278,11 @@ static void macb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) { struct macb *bp = netdev_priv(netdev); - if (bp->wol & MACB_WOL_HAS_MAGIC_PACKET) { - phylink_ethtool_get_wol(bp->phylink, wol); - wol->supported |= WAKE_MAGIC; + phylink_ethtool_get_wol(bp->phylink, wol); + wol->supported |= (WAKE_MAGIC | WAKE_ARP); - if (bp->wol & MACB_WOL_ENABLED) - wol->wolopts |= WAKE_MAGIC; - } + /* Add macb wolopts to phy wolopts */ + wol->wolopts |= bp->wolopts; } static int macb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) @@ -3294,22 +3292,15 @@ static int macb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) /* Pass the order to phylink layer */ ret = phylink_ethtool_set_wol(bp->phylink, wol); - /* Don't manage WoL on MAC if handled by the PHY - * or if there's a failure in talking to the PHY - */ - if (!ret || ret != -EOPNOTSUPP) + /* Don't manage WoL on MAC, if PHY set_wol() fails */ + if (ret && ret != -EOPNOTSUPP) return ret; - if (!(bp->wol & MACB_WOL_HAS_MAGIC_PACKET) || - (wol->wolopts & ~WAKE_MAGIC)) - return -EOPNOTSUPP; - - if (wol->wolopts & WAKE_MAGIC) - bp->wol |= MACB_WOL_ENABLED; - else - bp->wol &= ~MACB_WOL_ENABLED; + bp->wolopts = (wol->wolopts & WAKE_MAGIC) ? WAKE_MAGIC : 0; + bp->wolopts |= (wol->wolopts & WAKE_ARP) ? WAKE_ARP : 0; + bp->wol = (wol->wolopts) ? MACB_WOL_ENABLED : 0; - device_set_wakeup_enable(&bp->pdev->dev, bp->wol & MACB_WOL_ENABLED); + device_set_wakeup_enable(&bp->pdev->dev, bp->wol); return 0; } @@ -5086,9 +5077,7 @@ static int macb_probe(struct platform_device *pdev) bp->max_tx_length = GEM_MAX_TX_LEN; bp->wol = 0; - if (of_property_read_bool(np, "magic-packet")) - bp->wol |= MACB_WOL_HAS_MAGIC_PACKET; - device_set_wakeup_capable(&pdev->dev, bp->wol & MACB_WOL_HAS_MAGIC_PACKET); + device_set_wakeup_capable(&pdev->dev, 1); bp->usrio = macb_config->usrio; @@ -5244,7 +5233,9 @@ static int __maybe_unused macb_suspend(struct device *dev) { struct net_device *netdev = dev_get_drvdata(dev); struct macb *bp = netdev_priv(netdev); + struct in_ifaddr *ifa = NULL; struct macb_queue *queue; + struct in_device *idev; unsigned long flags; unsigned int q; int err; @@ -5257,6 +5248,14 @@ static int __maybe_unused macb_suspend(struct device *dev) return 0; if (bp->wol & MACB_WOL_ENABLED) { + /* Check for IP address in WOL ARP mode */ + idev = __in_dev_get_rcu(bp->dev); + if (idev && idev->ifa_list) + ifa = rcu_access_pointer(idev->ifa_list); + if ((bp->wolopts & WAKE_ARP) && !ifa) { + netdev_err(netdev, "IP address not assigned as required by WoL walk ARP\n"); + return -EOPNOTSUPP; + } spin_lock_irqsave(&bp->lock, flags); /* Disable Tx and Rx engines before disabling the queues, @@ -5290,6 +5289,13 @@ static int __maybe_unused macb_suspend(struct device *dev) macb_writel(bp, TSR, -1); macb_writel(bp, RSR, -1); + tmp = (bp->wolopts & WAKE_MAGIC) ? MACB_BIT(MAG) : 0; + if (bp->wolopts & WAKE_ARP) { + tmp |= MACB_BIT(ARP); + /* write IP address into register */ + tmp |= MACB_BFEXT(IP, be32_to_cpu(ifa->ifa_local)); + } + /* Change interrupt handler and * Enable WoL IRQ on queue 0 */ @@ -5305,7 +5311,7 @@ static int __maybe_unused macb_suspend(struct device *dev) return err; } queue_writel(bp->queues, IER, GEM_BIT(WOL)); - gem_writel(bp, WOL, MACB_BIT(MAG)); + gem_writel(bp, WOL, tmp); } else { err = devm_request_irq(dev, bp->queues[0].irq, macb_wol_interrupt, IRQF_SHARED, netdev->name, bp->queues); @@ -5317,7 +5323,7 @@ static int __maybe_unused macb_suspend(struct device *dev) return err; } queue_writel(bp->queues, IER, MACB_BIT(WOL)); - macb_writel(bp, WOL, MACB_BIT(MAG)); + macb_writel(bp, WOL, tmp); } spin_unlock_irqrestore(&bp->lock, flags); From patchwork Fri Jun 21 04:57:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13706801 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2066.outbound.protection.outlook.com [40.107.93.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8951416727B; Fri, 21 Jun 2024 04:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945887; cv=fail; b=PFY7TZQsoiVg4e/cI7rV7rbAi9Oqw1eShodIhN0cEezG9AbZBR/rOVnBmZWUSw3fGv/jGfFcJ6217jv9bgeTTmavXj4W2C7/OpuTTHC+/GU+tMXiOgopoj12sxwrjKNJAbRSHPnJr9oXgwn/WkCtLyGDNkCAMJisG25ucoJcrPI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718945887; c=relaxed/simple; bh=JkXez2qJZvQa49DEDAn0mAxBd0XqLq3AT+iQ1SqxX0s=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dIo2PGSh1krSIAvTjw8y7zHPM2ugsQvgQhjPf5dJQXwInGy8vWRjIZ/WbINyia/YQnVKNm+73YxCGRhQVUELuh5Pr72pCsOG7zDmvL+eCh2zzY72cS/Ft1FNAp/b9STMP/R+2beWE7diMlMu5fVCSygtxBVOZcjzYQmp5iPSpEg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=WRTZBXlD; arc=fail smtp.client-ip=40.107.93.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="WRTZBXlD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QgN7AmCS/pkcFiHmMsRfNwmy40NYRvu69Xdt4suQAZnPWooshx8V8qVaNwKNvafvandDZdkaIXCPIVxuSC5EvoqFadupqRTHWIpr9FRGKzwusSoOoW3p0WP1quCYHi3vRaXCS0h4dHoD71rMAtclWDv3BefnlZ4J1sOoafxAjewC/30rDiCqI0TFyMnkHPKdAKP6GB/3giUmB+aWswMIyBs3IvDQXJN/o6bq+Ht02pNknl9ruMAMWyAbubxp2LeoI08ovSGvjWM48NZ0CFeEqACl/ln2DPCqyhkhv58wvQCXGhYO7Jq92TRpuySLfaqtPQDW75e/snnPDWK9PdAM1Q== 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=65IL+f5STpJuNlS+ntBsjZ4BhYTF37B+zPjZiTWIns0=; b=kS925SONByHWm80v5UxsNU2qijATkf+wr/Tlj0ehCiJsc9qnlTvkcof7Li2h2pLBvT4q39ygA8mqwWsVUo4KRNrxEBZPOYczw7R8Wqvg4Rtab9NRQceKnV7J23N+0qxFuFQLri7XIIdb6rfLYm1mDeuijJpEQ1iqkUjBCrzec0ttaOvORuchWn/+UpChrR4QgbUwD0OBVi7cUPLOOaoNL1eTSGgJhtEKZCCGvkMhQAFRvp+29AxjpXHjZM14R12XfORFa3YaRvlJnRtMVmYh4luhzYHEaU7JNeUgANoMQzFXLwNdCUbygpBDDh1b9hCPT02YxaVVfv652pTQaT3+4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com 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=65IL+f5STpJuNlS+ntBsjZ4BhYTF37B+zPjZiTWIns0=; b=WRTZBXlD71Max+1P0Mm8Uk9m78ve79X5Fd3Efry5v4sIkFVmG+HwfmLDlDHfqxIMve5rLEoH2AhwofQwM2+jziHjhRPVbIZPP25hxtuuUtyp/6QfjlKaP2dqSg7PUoURewihpc3FpIa/oErw6EQOnSVqDq4IT9zP8IHfhmuLdao= Received: from DM6PR02CA0117.namprd02.prod.outlook.com (2603:10b6:5:1b4::19) by DS0PR12MB8271.namprd12.prod.outlook.com (2603:10b6:8:fb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Fri, 21 Jun 2024 04:58:00 +0000 Received: from DS3PEPF000099E1.namprd04.prod.outlook.com (2603:10b6:5:1b4:cafe::7e) by DM6PR02CA0117.outlook.office365.com (2603:10b6:5:1b4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.36 via Frontend Transport; Fri, 21 Jun 2024 04:58:00 +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 DS3PEPF000099E1.mail.protection.outlook.com (10.167.17.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Fri, 21 Jun 2024 04:58:00 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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; Thu, 20 Jun 2024 23:57:59 -0500 Received: from xhdvineethc40.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; Thu, 20 Jun 2024 23:57:55 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v7 4/4] dt-bindings: net: cdns,macb: Deprecate magic-packet property Date: Fri, 21 Jun 2024 10:27:35 +0530 Message-ID: <20240621045735.3031357-5-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> References: <20240621045735.3031357-1-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: vineeth.karumanchi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099E1:EE_|DS0PR12MB8271:EE_ X-MS-Office365-Filtering-Correlation-Id: 750161dc-3f4d-4e4f-70c1-08dc91aeb98a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|82310400023|1800799021|7416011|36860700010|376011|921017; X-Microsoft-Antispam-Message-Info: tB7le451YSeuVBVHv9jne304cEed+MYhbBdf7k06vPSTiFFwsCirt7VPRNX/qx48PE46PImLakweHINcRMFTwoz8m1e5NbYNHfOeOyXMhyQ7kgxUHlVWx0TuEuqhIFv6UA3+B0eGzisjLOXaniAYRtxyPHN8B43fOsdHyCXuyYfxS6Fx3AhxtSpIvhoRuh+KF3dZAlCsfM1UQEV/KBju8sc84TK2DL4alKX6vIbIzGD+uh05EwNjn9i+jM1XBDBImDcqDTXoRjzXm2qn7wk8dEDZrsRtJ8h3IQMCJ3/5Jjq59/y5BTD2YAWv5bUvR8H/2+bAYlSGUJ0rZoZU3ghk2h7jNtJA0RyKQja5DsdspA35uEsLXXESaw2vME3tOEygM9GnU+FoBP76loytTgVe7ysoOP56ST+3tjxr/aBQdpjGsreSPC7ZM4Nwb9eNB7Ohn/I4ziW1pR8D1cCEIy2cYreulFpXOaIk8iYQYRKmlJrDF+VwiC61msgSEuQwTTq/7io8hvoBX7lK8SDFlap6xllVBKI0RVM08Ia+rvygTlIRJxsbWDIm6k/B0iCOAK2Vbr8MznfNzy/znY1R1Mh5214JIv8OegKZLB0Wp8E/R8MrancaXmpPzDqYMxAEV9qWLMmOAYEsiBCs+IKBvcw2nEa9llpsDDvmYQxEU2/MbKx9sxR8oAhO92iEh3BiXowHiKaXbYJJK+zr+ioDPWAFvdDs1Qv44RgvYTSje2R+lFt9984NyrzdiJWnW7zmBsrxnXyjM7iiCWTH6F5vwjRtW+yb91r20GcVQIM//mSdmR7N59PMN33BOPAw4od/Fv3fZuopBCGsg3sIVJA9gU+Qy300EszIyHvsUzyGzOxMglPt1vOCDF3yMd0iqrIkIRK+xPBheW784J2ciNz9i8jGbUDmeU7cqIRgT5eSIU/WjhdM1GnNvOuBsTMyEErx6HDvNP2AlvxWsaDRtATlNpNpPTTkBDPIpjhCM930NtvioOMMOv+KNISzU9pU8g/pHf+EbdQisZQvNUqpPDUkxd/AkpRPZdatlY97XCqru5kyCaUBiZezt6hYVketeq6z9ZnP0230YBSh9yRZJTFXN7DyfCIjtI0Ogdf5rsgcP9Zn1mmLiGMii4Meeoueks4z6O+aeyUVX6pc2TOVf145w/KazNVbGLN9yzQQL8dNwbDvYWt21jQPi30VADmohi2B/iBZ7ZYpAsUstyZWrdTya/zGs6a9ThMe099wzQnTc921+FZsV63CnX+niI2CmfhtcxuFwNEYI4ePDzNVdRafoLtNRHkPk6u1KInBtrdz4Rl1/u3rfQFRw9Q7B/m0E/ajDHzz5QPRdze58PhWoiowSxJQSAex3pGsYQy4oyQbDu7yARwadhpcuGl/TjxaOYzfl6FHFPUO43IxPCno3tjQ82IPBVitf9mLzdMrwQ9bDw6H8gk= 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:(13230037)(82310400023)(1800799021)(7416011)(36860700010)(376011)(921017);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 04:58:00.1868 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 750161dc-3f4d-4e4f-70c1-08dc91aeb98a 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: DS3PEPF000099E1.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8271 X-Patchwork-Delegate: kuba@kernel.org WOL modes such as magic-packet should be an OS policy. By default, advertise supported modes and use ethtool to activate the required mode. Suggested-by: Andrew Lunn Signed-off-by: Vineeth Karumanchi Reviewed-by: Andrew Lunn Acked-by: Krzysztof Kozlowski --- 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 2c71e2cf3a2f..3c30dd23cd4e 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -146,6 +146,7 @@ patternProperties: magic-packet: type: boolean + deprecated: true description: Indicates that the hardware supports waking up via magic packet.