From patchwork Wed Jun 5 10:24:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13686554 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2089.outbound.protection.outlook.com [40.107.223.89]) (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 D2DFC18C335; Wed, 5 Jun 2024 10:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583120; cv=fail; b=WsddA95uT/m5NtVq+bOT/c1E0a0W66EktaqVng7zhhk4cNJhxZVKinoe+y6pWZwLXXUTMN+yPJf7pqHFrPIMdOo3DlcwS7nWmcCGp2xpqkP3H1vFppvsbxtqlVqieA1mKe5h+ttDVHFt008KXuHd58O5+D63+43vTpJmqRLJ+i4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583120; c=relaxed/simple; bh=ffkqLdBfq2fqlXlNwgWxVL8nQxw0tpEiCW/KLnNH73g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MXifgEAt+keFB2tXIRUCKWf6bLtfsrgzXWSdYkFdq0jWWdS0Psfuo41bI5ur8DTp8XA+5HcQpKdPoqESXRchvtQpoyFNX7Pni0CfnRIfQr/TRsSJn7pAl0g5kM2j8xpkDlqr8yoFs72g13H278hpraqm/+Tj8Ft2czNidJHg+5E= 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=gxDndkwq; arc=fail smtp.client-ip=40.107.223.89 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="gxDndkwq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fpl70aQqxbHwOcfiveBfLc1g6Ft61AKsSOIIt1a9198+yxV8vwFmhD2FbxVrHg+cdrBAUng2LpkluQW0RPAJkAAnzML0I/KjV6JcEQWudn6ckKzqBoKb01D5laCWjwmsyExhkyKOCIRv4S37pl9b7dI3OIG5/4P3phk/2chqKoveGI+u/xTnlL1qvSFmnHaYf7Z6gpdmU4JKXnMjmGsoq5+0ghYLccCxMMw3+qt42KSEDBrOsjoc3Uc3Wghae9e3ytXCL1kQ4jUApfrDvesFEOayjwLoHBLfTeZdxI2fNtHq4mYQRNB8qAmNzN8up5tPJogX3El65DntWrnpKlnXGQ== 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=jy0T4eGp/hZmGl+jDclYJKwP0YlSakniclgs0+w3PCiIcA9QD7QYSn6bxmW86+G6hoBaMSY/nfUtJ/W29Q6dcz1cKUNpRN3u+UgXwW0uXMYU0VAC64H8RAhznBjHLhLBS5Sg4pidpes1LllezpV9OokiI7nUOM03xo/LiBv9ZEMdos+i58UE+LeOevuGMgZR8EnL5/8bzVodzdRLfIaaKzPN4A4pLucSaKDrXizU63OYg3rmHWnDMt4RDWn81fy1w+YI/KpF55Ynbs0Kw0YbwAXI9EJ0SqrJTlhzS9/lu0mM/BpOuwCEwU3CSD3oz4sbF6FnkoPsqfzX4qlJlihh5g== 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=gxDndkwqKNqv1wmZ6ejdRLjRO8fyjtreSmhr6NXnoKi5GC372ARDrBV+WkEq/ySDgUdBVNRAmTXXy2BIYdXAdrCGDbxKN6hp4kVHstRzJynoLLwSFRD2sGYj4lyezxoGiLdGAOFnDegRMxdZYt1l+UUlHC+xZqRv1k5EryH89no= Received: from CH0PR03CA0090.namprd03.prod.outlook.com (2603:10b6:610:cc::35) by MW4PR12MB7465.namprd12.prod.outlook.com (2603:10b6:303:212::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 10:25:16 +0000 Received: from CH2PEPF0000014A.namprd02.prod.outlook.com (2603:10b6:610:cc:cafe::73) by CH0PR03CA0090.outlook.office365.com (2603:10b6:610:cc::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31 via Frontend Transport; Wed, 5 Jun 2024 10:25:15 +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 CH2PEPF0000014A.mail.protection.outlook.com (10.167.244.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 10:25:15 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.35; Wed, 5 Jun 2024 05:25:11 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 5 Jun 2024 05:25:07 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 1/4] net: macb: queue tie-off or disable during WOL suspend Date: Wed, 5 Jun 2024 15:54:54 +0530 Message-ID: <20240605102457.4050539-2-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605102457.4050539-1-vineeth.karumanchi@amd.com> References: <20240605102457.4050539-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: CH2PEPF0000014A:EE_|MW4PR12MB7465:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b628694-01b3-4b9f-edbb-08dc8549ca6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|376005|7416005|1800799015|36860700004|921011; X-Microsoft-Antispam-Message-Info: lE3y3BwuMME06vDvpjsyYGBMFqVuaQl+mCZmD1wN3yXy0uN+ugsC8EwD1qwzQq8RLh1l5/BsSWR9LD70FsjBnTVaOHgfpcLl2Aqh9Mb6/tKA25eYjxJEGP6cw+D8h75nYlcJ0vqIn+GbiV1Ze44YLMKTCvWopUlNMSB5V/pE8J5+rd+2mIhh5BIU2TeMr6UC3/vXGc7mHrNgm/XAbuLHRDM+gvhoFuJP+5Gu80+LoH0W1F2oywJzxULfmZgn/WJ04jiD3ONQ0hCXD6OnwHV0+38W/jh4G/Oewz2pSAHs3x8NtHKx99du1yYK8j0LGemnXve4Qh7Y+1tx5d7oXTCrf+Kkb3hLCdp3MqANHesIwSX6Ams/Ze1WbM7I9qR0I4JeQARuqpqbdSchLXELbeYPgLV0aZu2+kAjNsCTgB/Bg3/cwWp9PdbAiqlZRoZUd0g20ekBTFRS8+/89XdZHwY5BRcs6yKUhDs1Ia2Bfhczaug1PMNDqrZPplXrsf1ZcCG0/bAPX31Zx9c/5MnF2PQ0V3IYkgX1ApStQ2hZ7uN6FkhkGpZ/6OKvw2OvJxGbtmcVHhn7MpAuOxxzIY9NcEOxkVyyW4MWgT3PUKpp/TMhHR0UFEBvFh+lAIt+a1O5BImDdIfp53IC02gXznACCFJHHyjaVK837mSHlVzmmJl5wVMr/U3kWvF+3cnOuxOJCEGOndrVL8FatGglELQgY8k0sPFaDHwdhe7Dqewf59C7R//nvWHqr35+SzSctixut8FK3vI5y8BUzDIgSceavdmjhTtCcWkBM1NCXJTn82e46wbK8qDfC8FWBovER8nsRwJBMmNcBqz/s7pExNKVNGnPydXbH1JKgoQqIqKVd6Iku8pxEy//qAV91gHeVTvEy3TQC0rz3/7rLiDiq/kRR7Pm9CCBCHVw+fldkjKHWnSSrcaRHl+17K4wh2tcf7bEWGpYGsxlPa8U66VJy8OIBm+e4L68fVpyk02VHo3vv60pYzFxtgXt8EQ/Vy25d9ZjuM73a26geUSyCLQU77EPCs+c+/yh4k5nbA145uP9GibA5TWKiEZ0mrV7lSXd1br9McH23EdmjnhHfm125XZlpczsRM3QCTIW6hNUUdZT6KJk7Gd0rKyDzixCDAI3klc5ws4GzwnuN/9/9pRICLTe1yzSgLIE6L/nutOuZo5BiGFYSQS0RJYTOqMUm/9KVxOMWnCKUOziPze2Q/yHZbVyE9kq8O8FoBpqSSAY0AfWIbUpk++/DcExoSdIij26qEwR1PVVRKBopiqrhEX79eP9MYZ8MQo5Nyb8SaKHXWr+CTZFQy7ZViDjAfeXGXDdjlrR2TfHSqUlnY0n45+hwGABhMCga+AGA9fZhT81Ifdrx87YZXrOwEJMGWYLMGM5NR7A3Fg5 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:(13230031)(82310400017)(376005)(7416005)(1800799015)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:25:15.2485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b628694-01b3-4b9f-edbb-08dc8549ca6e 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: CH2PEPF0000014A.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7465 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 --- 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 Wed Jun 5 10:24:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13686555 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2068.outbound.protection.outlook.com [40.107.243.68]) (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 BD1AC1946D2; Wed, 5 Jun 2024 10:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583121; cv=fail; b=JqtnwzjSlIek+DnC6Ezxk3oQEX2PnsESwFWiuLxeDBXaYHrVTpPzH1in7lX9G979yywH3k8OA6YfnhQdwOFpcuc2LI+cctSnzmw7Q956GmVal5nm7F+rRI5S+MSQH0vJAFMW89P9U8ZTnn6Gel5N9T/BwrW1QOg1lgDUpJYPN5s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583121; c=relaxed/simple; bh=XkvGZ4z9JyJtatCY67LiCJHMnr4s82VSMC/95qmkROY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rIROg9zHjz+8mPL8izwdYE7dI0CdCWI52J7gIdpmkZsA+ebWQYMEc83mUVXbyxvU2O2V36VPBGs3XgBeavZsZFJPiwqVUJQQrYbky1q1mMIMVZkVBXv/fHQpkwBiRnAlDSJVOGmjjcHkOYhFpYIEIUbbupt/VCVqwg8haxKwWd4= 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=OG7lVFoS; arc=fail smtp.client-ip=40.107.243.68 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="OG7lVFoS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bIWNdu1mdfGWf+3F3fWJjnxVZ0ZGghREmIWTkk0xHvw0wlvi0i419vKTOVvH1rIpPShJFo/Lof2OKwGYWEHvBB620ZmVIBFVQxwmwu2vsggR/yakiSXIBgUPknApDg1LPvhLBGagKH7cp+fnQKDqUfOMvHWKaGv2bvZq796Ta5zCrqkdOTLmQHonsKXDEJ/sitskEo6G0f1M3jWe95alMDR8ixr1wnh95oq4Y9HppbA94HU4cdKxpPa8+7Yp08lfPBFVIHxyj1sVQsswrbfCj4RlyQZ1VMZ3i6fTEkfdn5JQ7nqzAGDqLnJEOVUaA+1YjILaV9Xf+9p+Thq2Zn6yaw== 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=/asj8pYTs580x0ZS0Vc/pnHSqYHgHw0IpaY0j11lw98=; b=fovtq7YM2NvqnggPZZoSfWtKSJKkXUqTWFh3NBtoGr0DYsFQo34jgSB2bh5/K0jkxuY6qLVvciSBBSwS15AzsK2Qc56hfbnT917yzAchFnUvag0OUsjyEUIk7A/FdezNUR8o1pVWOln36hQoelQ9RT5oNcd4WLWmrTX4qTxhShV2XvIqf5YGkPavvRk4zUCFYzW/Vzo4wU6UdLevJqKjHxh7bzeGtZrZTIgYfSmiFNF9DQBGrBqaAuByPcTsBn4hGRe97T5FEjTJWK8utMrElojBr4G8k+a/Iwj/gSErBBmQtlWzpd2UZ5FfI7aJJ7UbqCAX9qrqxoF8WHJjSw3+YA== 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=/asj8pYTs580x0ZS0Vc/pnHSqYHgHw0IpaY0j11lw98=; b=OG7lVFoSuHzG2QWxrZpL2LgQG1rcObz+yXy0VodlyYBozpcfAkQz7zkUgX9qUBWlp2fjkNoKu5fkLWHeWIQfLoHNQl6BWBGwSc4HTOW3eF6IQ+JbC3jas5Yt0/0SXbzYhpX0P8nYWFkt8VpP6wKMtSdy0qG2jKecsvUoU4R/3wo= Received: from CH0PR03CA0087.namprd03.prod.outlook.com (2603:10b6:610:cc::32) by PH0PR12MB7096.namprd12.prod.outlook.com (2603:10b6:510:21d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.32; Wed, 5 Jun 2024 10:25:17 +0000 Received: from CH2PEPF0000014A.namprd02.prod.outlook.com (2603:10b6:610:cc:cafe::ed) by CH0PR03CA0087.outlook.office365.com (2603:10b6:610:cc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.30 via Frontend Transport; Wed, 5 Jun 2024 10:25:16 +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 CH2PEPF0000014A.mail.protection.outlook.com (10.167.244.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 10:25:16 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.35; Wed, 5 Jun 2024 05:25:15 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 5 Jun 2024 05:25:11 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 2/4] net: macb: Enable queue disable Date: Wed, 5 Jun 2024 15:54:55 +0530 Message-ID: <20240605102457.4050539-3-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605102457.4050539-1-vineeth.karumanchi@amd.com> References: <20240605102457.4050539-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: CH2PEPF0000014A:EE_|PH0PR12MB7096:EE_ X-MS-Office365-Filtering-Correlation-Id: 850e41c2-1056-4ad9-709c-08dc8549cb13 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|36860700004|1800799015|376005|7416005|921011; X-Microsoft-Antispam-Message-Info: JtiTaSBNQu0wivYwI1JVqR/5Lrs7BYi52NISkYdsBT5RfQOy2dCkjQV5MYhx3qvPZbCsd4IDQwv8+OOkJcYCixsX+AkAzTCQlJOcsa4Lzt8d2hjNataAU7S84ZKG/xslXg5RDEqPAvK2gHg8HJnWwJgN1e3gIp2/Gw+tRrsue0MUZVry2SRfQSiHJtZX93dCsix4r1lmBv6a4pkhpiG/+Z0b/HP0aNl3r2yurxbuR/I/0i5txR0363lVzBnoG8cuOXVqybcEHemtF9VZCuTFOuwZw4WHDJ0ZE+YR5u2FAZjprjKSSkyfAgxbO2sWtWlbtQv15hiEobiylILT5PNXTU4D4pYE5Gc5d+BpMLmD6sA0jUBRTfuTVzl13j0ncsDNczpsySl+YIQp1WIeW/0YpMXkXRTgx4scjfdKdf0EhaCylWpjrUD97jjgCgxNDYrweaLndl9GmeoUenSeJEXtuclqRGqnSEXo5PTEUI7aG0kY42Oi2R4HHM3wSfDcX+6oGFZSIwUhQVYI9F5QD4hCNj6T7Bzg1wwQ8Z1WfEbNX1y07y06FPxFCkzShbZYKfaOFBMCwCtrtn/j3Xzem5vkF7jjcna5O+Mk1sIQbQN138xZ9G3TkwS53ozMZtymsnby9P7e9/qYtM8sc24f+NbNdB/TSS/UaRUtZwU+O/7UREGlukPIB4feZwU1JC1sHu6jA1Vs7Cue3LFS7zYMnfWad8Pzv51oYLncV1+SNHHGR/HjMdsKcp70HuN6Af5gfnjxz+VV4mspGACT6EL9D7TyfCHBCpz+p12eOi8ynrtLCuhbe89M/A13tOTWw53Usa/9KZjuTylbcaANULfk30rCgAPa5QQ8QhuZKNNau6IWr21uxXXW3XBnVBd3+DkcR1sHbam/mzHuxT2MJTRph209+O4SSm6ejRss9d7GPf3xGr4jVwtVSSKCrfwZA55gcVA65MJ/5cGZ3SYS0xbDCez8+stzHjWuYtHICRqzLYvAeh5pYWIcYnGgjVKUv0KbgC/oGRQXko3fVr8WURQwiNTSI5MSeOJmohwUjkBCIbadLA81oundFmOGCdm3nMgG+huhqrzmnKnUqBi0R64uPdbRqBIds2ze0HxjqMLrk4Fu60bSLXyNwU51bq86AzniCJv2YwpwhJTZjaG7WjEQUsDo+Kkt6+WZjTn5CY5OBaFLMPd8D/C3cR80EiFtr14cGpmGrQkOB2VVSkKobpXPn+8Upf5Y2LQIV30nv+14KzXyjS2HOuFyLQLNjyccW3WP6c7TJYGXkriAd+YrH0sFVMUkdrogiTzVLFoepbBHUZ45HF9gMguIuI0L4/f6J2s2IUBgv01ojxb2r4jBE5POqho061va21AXPfze+1bvMTuEgR823xYFb/2qGhOdh3l6n4DC 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:(13230031)(82310400017)(36860700004)(1800799015)(376005)(7416005)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:25:16.4517 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 850e41c2-1056-4ad9-709c-08dc8549cb13 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: CH2PEPF0000014A.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7096 X-Patchwork-Delegate: kuba@kernel.org Enable queue disable for Versal devices. Signed-off-by: Vineeth Karumanchi Reviewed-by: Andrew Lunn --- 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 Wed Jun 5 10:24:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13686556 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2068.outbound.protection.outlook.com [40.107.223.68]) (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 DDEAA192B78; Wed, 5 Jun 2024 10:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583126; cv=fail; b=kdjV1eE7MX4zACxl1sdFZI55secfW8kvmST3KvsiWK3EpDqDzgZwtJemcG3VAcUMOIpFuuQFu8cTIIb2VONXf/DZzAlSbQJBt+1WQcY4wj7hAx0S1O2qqhCApuL+EgfF18kqVXBDKrOremun0jG6/c6NdpAZhy5E0YwizGRBdKU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583126; c=relaxed/simple; bh=P7Xa4RQruexyyRzBwhNfiYAZdJGXGmyvHHNlf29iROE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Iou/lnXdaMO/Ac8AKAddgDRbhVTo1VNlz1GIDNGCpEIWbQR0KjzuMLiVk3cNOtH2Z2ouEN3yT7IBizwE/Dz6/PZJgfBAHrofgFauopcuR+kH7xCHU0HUNfdJt05tJtpdmy89bokgAypgbDyolURXmCz1lEf4ldkCpogja1XaV+s= 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=1fwshQEm; arc=fail smtp.client-ip=40.107.223.68 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="1fwshQEm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVSLd1shVmqBIcussW9gesZ4bExHJnTX20+tvEgQ5EOz10vAy5/7WJAKM7ezjBo5uAK/+wzdefILNnxxFGGgrKJsmrM4WkgJBEzSMs2s4WnXHywhA/2LbGiIHjf2M3YDjoSEQLInlqGwLjMHfBJwtrY2TkA50BR0H0YDtcw3lFfThH+OlVcJ83FnrcLUXvvc7fQfrSsWq1g9ZPLpaQ9azhJ2HrtS/QaUt/kQih8vL+ixv66qhcKWC/C8Oypa8RDVtnoLdJkbtZGzp4sPbNsaS38uaz1idKRvF5cRTvMZxLDp2VnrCu9HCQ6gVaXm2xyP/VXe3sIMSpzTbbiiNJ+GxQ== 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=8YDSvEHgHWBIHS2oUhFWyS3cIeoJH4fBkyG4ggnFFXM=; b=UKvloEQwY/Z3ZAKsjsxE8jFUflSf9qrPVu8AK5m7zfpcmHNyxT6P4L8R2G7MYqYlTBCLfmy8wiRpGcMyH3EPk2d4kRP59QgfxJ4qy6htzhVNM23mx2oFL2nRhg13U/srnvlZAZCs5YHoSr3goMENJ1IWZtA+6dzz/6+69/iawD8rA1psM6z7Kh6thTCf9tozLe//cPgJU6T4iHnUvmxKBWIqUhkJMkzzk1L7FsuUSrJDMyfeW5i1ZBsZxdQT+RNgpvXZFEuhar2hDO9g2sBiLtf+v21AkoY9EmBaBw06Evi+23OzQ54a6jDyDUGGAeDvVMiNoXceYhJ4Gxh4E0afqQ== 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=8YDSvEHgHWBIHS2oUhFWyS3cIeoJH4fBkyG4ggnFFXM=; b=1fwshQEmY0N81ZXm7FSfcyBHzBmoxzfW58hVZkS0Ex6HuXwfFGwBmMwQIlv6qurZypu5JhDsqhW7JtZwW2eFa36MbnT4HrFk3XN3AZY68H2Eastn9AQDnzlkNV/0Po4W/DuxdPd31fIF5AIgvOzDuxpbLTT20ETuxvq/VNYFqVo= Received: from CH0PR07CA0002.namprd07.prod.outlook.com (2603:10b6:610:32::7) by MN2PR12MB4272.namprd12.prod.outlook.com (2603:10b6:208:1de::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 10:25:22 +0000 Received: from CH2PEPF00000145.namprd02.prod.outlook.com (2603:10b6:610:32:cafe::a) by CH0PR07CA0002.outlook.office365.com (2603:10b6:610:32::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.16 via Frontend Transport; Wed, 5 Jun 2024 10:25:22 +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 CH2PEPF00000145.mail.protection.outlook.com (10.167.244.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 10:25:21 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.35; Wed, 5 Jun 2024 05:25:20 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 5 Jun 2024 05:25:16 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 3/4] net: macb: Add ARP support to WOL Date: Wed, 5 Jun 2024 15:54:56 +0530 Message-ID: <20240605102457.4050539-4-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605102457.4050539-1-vineeth.karumanchi@amd.com> References: <20240605102457.4050539-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: CH2PEPF00000145:EE_|MN2PR12MB4272:EE_ X-MS-Office365-Filtering-Correlation-Id: d91fc176-9844-4ac0-3fd4-08dc8549ce40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|82310400017|7416005|376005|36860700004|921011; X-Microsoft-Antispam-Message-Info: LG4+rNFdCzmnDWI4fekxkqq9aJ+tS9NUTU7jj3GDWSu0sTjvBVvNj021VI0Rgcm5rMxqIw3dArPTKIf2oimcq52jOpPQtu05v0ySVSSDZ+4QClC6sA5UZShaMYeEghlIPfhQhqeD16EoGYpY8rzgUpkTSpaGWHT+GBzvuqRKr3IX13FagMIr0OvBkD1RTWamUOk9fiTPmVib7G0MizL33mwwcEGGBN+AmqG0skCC5XbJlfhM4DvHDTH8hepHTOeul6jBsx+BhXGYKEV9C6GBZFELs6aaFmXfuaVzfvkkWDCO6EBoOS5o4cH+yneRXtCZ7ZbJGLK6zMGw+oqs6+xEqHf/3jxuSr2GJl92XcVsnjz4Y9yCtJ/rP23N8W7cM18J7gvkxRQIG4QfvTeU7PJet0keH0rbP3xGsxQL3umsjDEoE9C3tv5oxD2Mnw5dZCdY+OA4JKQyIVybhcKDyf+96T242S1BlOcWsnkMfTYcGmINWTqem+KQ3jbwY6uOQthlxqF4MkF3wdFWsYF63EJM4OVANh5OQ0Lls606w6hVh4UWeMuWhK84bToLtSjsmF7PaRJhoJk7iafl00j6BGqSlmG5bJNxS5twTz/7w2/kHxkGzMjzR2ePTZSOj200puLmOgdTzBwGLkl6gCJLJNPVPCOlRxo/MGfV8MFpbSZCbISQUEQBsG4Q4NhkijFqg1JlAED74Kk++5LxdLGxYQKnDPaGN3wFQnY27s+JkWbCKfsMGPTL/EiK454ngawqu7898K4aW4w6kj0cA7N/t61BzmsomfuYTUCGMp6xWuEPz1JQBTi4wd+hFCaA1BL1laxo0Zid4Tlf5DIt1YfDPVJ+Ism6n2VKqSa5IaKKUThcdcBRo+tv09HexFxixNhnuh5GHFblDdyJBi9uOS5dwhOKjgv3ad00L0X6DgqDAAqADfLUM0gaiwkIt8Yd2ymeSFr1DZE2nG971UmX7NBvsYqe+rXCvWutd2n7eLDhCux1LKjhGnoI/y3MNpeKPmQfc6mPiMpEObBB82qkC0KGzjCSgIxIYo9ga2CP2ZnRXv38YG/6bS/wq6TYBEOqngNkcTUNpVGjo1y9LjSj9gpbaO5ZKqz7BYncvpavC3IlO27vff/Q2C0+glNQNTVNglf7n0mWF2QZkGxumbSFzQySZhuG2DuLZJH20CmYnu53liQTZsZOgM8La/QfWHC9HoGx9g5WwTT0BbkCCD86rcjMugRdeXrxsp7BpuGK4oX9tlHQCT5UnqyktsQFJ69bfnpazEkYb3fNktvzR0XUpm1T5x667Fqna4wAgsZ0XdGf46Y0zzdB7as6FVmrjcmh1AZfsEDt/lR801S1JWA3L5Qyj3YOrVQLOEMSSBBIcNq6XFZurUKMTF1UNSFCmPOrGYmD9wD0 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:(13230031)(1800799015)(82310400017)(7416005)(376005)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:25:21.8254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d91fc176-9844-4ac0-3fd4-08dc8549ce40 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: CH2PEPF00000145.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4272 X-Patchwork-Delegate: kuba@kernel.org Extend wake-on LAN support with an ARP packet. 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 --- drivers/net/ethernet/cadence/macb.h | 1 + drivers/net/ethernet/cadence/macb_main.c | 50 +++++++++++++++--------- 2 files changed, 32 insertions(+), 19 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..7eabd9c01f23 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,9 @@ 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 (0x1 << 0) +#define MACB_WOL_HAS_MAGIC_PACKET (0x1 << 1) +#define MACB_WOL_HAS_ARP_PACKET (0x1 << 2) #define HS_SPEED_10000M 4 #define MACB_SERDES_RATE_10G 1 @@ -3278,13 +3280,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; - - if (bp->wol & MACB_WOL_ENABLED) - wol->wolopts |= WAKE_MAGIC; - } + phylink_ethtool_get_wol(bp->phylink, wol); + wol->supported |= (bp->wol & MACB_WOL_HAS_MAGIC_PACKET) ? WAKE_MAGIC : 0; + wol->supported |= (bp->wol & MACB_WOL_HAS_ARP_PACKET) ? WAKE_ARP : 0; + /* Pass wolopts to ethtool */ + wol->wolopts = bp->wolopts; } static int macb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) @@ -3300,11 +3300,10 @@ static int macb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) if (!ret || ret != -EOPNOTSUPP) return ret; - if (!(bp->wol & MACB_WOL_HAS_MAGIC_PACKET) || - (wol->wolopts & ~WAKE_MAGIC)) - return -EOPNOTSUPP; + bp->wolopts = (wol->wolopts & WAKE_MAGIC) ? WAKE_MAGIC : 0; + bp->wolopts |= (wol->wolopts & WAKE_ARP) ? WAKE_ARP : 0; - if (wol->wolopts & WAKE_MAGIC) + if (bp->wolopts) bp->wol |= MACB_WOL_ENABLED; else bp->wol &= ~MACB_WOL_ENABLED; @@ -5085,10 +5084,8 @@ static int macb_probe(struct platform_device *pdev) else 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); + bp->wol = (MACB_WOL_HAS_ARP_PACKET | MACB_WOL_HAS_MAGIC_PACKET); + device_set_wakeup_capable(&pdev->dev, 1); bp->usrio = macb_config->usrio; @@ -5245,6 +5242,7 @@ static int __maybe_unused macb_suspend(struct device *dev) struct net_device *netdev = dev_get_drvdata(dev); struct macb *bp = netdev_priv(netdev); struct macb_queue *queue; + struct in_ifaddr *ifa; unsigned long flags; unsigned int q; int err; @@ -5257,6 +5255,12 @@ 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 */ + ifa = rcu_dereference(__in_dev_get_rcu(bp->dev)->ifa_list); + if ((bp->wolopts & WAKE_ARP) && !ifa) { + netdev_err(netdev, "IP address not assigned\n"); + return -EOPNOTSUPP; + } spin_lock_irqsave(&bp->lock, flags); /* Disable Tx and Rx engines before disabling the queues, @@ -5290,6 +5294,14 @@ 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, + (__force u32)(cpu_to_be32p((uint32_t *)&ifa->ifa_local))); + } + /* Change interrupt handler and * Enable WoL IRQ on queue 0 */ @@ -5305,7 +5317,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 +5329,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 Wed Jun 5 10:24:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineeth Karumanchi X-Patchwork-Id: 13686557 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2078.outbound.protection.outlook.com [40.107.92.78]) (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 0DD54191469; Wed, 5 Jun 2024 10:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583132; cv=fail; b=q0WsxGp7E0eDcFGTMAu7J93HgfH4QOZPSjlPaHXK9d/dmxBvMsW2szpkIJu2s0N2Rdh1twFK3NaGmN3TS30354Da91KcPVC2ZPb++ax2wO1xKmChOsIuqfjTMmC7tPdGYOZg6MwILGSkufUX2Pb10tvufZXb1GP23qiMBU3qxzw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717583132; c=relaxed/simple; bh=CCqU4x7mkGbjoQREGgzs3KrteUuL9K18B7m7Y3uM4a8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=S1SipAhgVYCiWFX6F4WgW6lxSto54yvDZ7faqV7UEkM/xB8tldcf59gfWGIhTxmFa1XmZF05RvY5yZ8aCY9i/qoWyITljSLyIpaz0QhYikuQo6ZuOMn15SLZFaHmQhUEv0kU5DWOYObb9fq+kC/TndMolUnRyCsO/fOIVoCrOoA= 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=CWJ/CNP2; arc=fail smtp.client-ip=40.107.92.78 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="CWJ/CNP2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Aww4p7uAHQO9LhPkHIKjX0c8O1l8ttdSKroDpiLAMKTdZpdu5yc9Dm36NF4ollc6Y7HQy1Nfx2iWYCkFAHghhu1UpPyo6KoGUcon0B12mZ0qC7fA1dhQdXgyB+wKVBPphIJtv3tfictKhzKzeVEsVWKuHq2iU9xhBDocoebxc9SKPQigRzB6O+eNGjRf1cRftDNclnoe6IAD9MKOHFBvlDw6UC3JXbMtL8HJBaTzQ2NdfSweFDknF9PLnaTqHKD7RepYaIQheuau6csMgiunh3ulkVMa65XVFNxvD20GRVumSKuSyv82OxyBSj61DYozQaxqdP2OGZp1WrDScv4rBg== 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=tIAsN17kimib3Rc9Nt+u8IPzDOrqWVvYFyH6eUCXZkc=; b=gR/Ol1nsuxscL3ZQ6bW7vMnA53J5zzlXiMgBPp9uXjlyS0XCvLDJbwUBQzeV/UG5Lb1qSZc7vy2mUudSp5Wqb1z3cN3DMOtgjhHxZc5tNZj9zDwK3tUwU+hJ/hhjS+BNAI8fhF/wZn3w8ZG3JfiPdV3ywtBwk5uhjWH5s5HiC6tbT7vMz9gvhkmBUKqr+JkLXfZtLYuWEw3N54P99vdx+3Qc7gF4tnyN5UINQx6hEjaoiRR048TzlTOtcyQ7yTxog8zf9rTtr8BKnplZzSfCkZwjPmD5s1X1ub0oRJlN6swhA/yM2kcYbM936nkAMk26hPKBmT3omZR0PsDy7VILaQ== 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=tIAsN17kimib3Rc9Nt+u8IPzDOrqWVvYFyH6eUCXZkc=; b=CWJ/CNP2rNCQ1eKM9dR601oM910G+NBLUJR8J2PnI4g30+MdiO1aZ3ZqhDicVgPvymdAeZMdwlEVnCWgzNh2pwRByK4oup8nVvu0t0Yc1G3HRvON2ceHa4AeUhAyd3GqKD2EQpLpeM5DpKeWYEShWiFyYO8/9sG5PfbnHMIyhYg= Received: from DM6PR06CA0063.namprd06.prod.outlook.com (2603:10b6:5:54::40) by MN2PR12MB4045.namprd12.prod.outlook.com (2603:10b6:208:1d6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 10:25:26 +0000 Received: from DS1PEPF0001709C.namprd05.prod.outlook.com (2603:10b6:5:54:cafe::47) by DM6PR06CA0063.outlook.office365.com (2603:10b6:5:54::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.17 via Frontend Transport; Wed, 5 Jun 2024 10:25:26 +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 DS1PEPF0001709C.mail.protection.outlook.com (10.167.18.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 10:25:26 +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.35; Wed, 5 Jun 2024 05:25:25 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.35; Wed, 5 Jun 2024 05:25:24 -0500 Received: from xhdvineethc40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 5 Jun 2024 05:25:20 -0500 From: Vineeth Karumanchi To: , , , , , , , , , , , CC: , , , , Subject: [PATCH net-next v3 4/4] dt-bindings: net: cdns,macb: Deprecate magic-packet property Date: Wed, 5 Jun 2024 15:54:57 +0530 Message-ID: <20240605102457.4050539-5-vineeth.karumanchi@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605102457.4050539-1-vineeth.karumanchi@amd.com> References: <20240605102457.4050539-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: DS1PEPF0001709C:EE_|MN2PR12MB4045:EE_ X-MS-Office365-Filtering-Correlation-Id: 30fd454d-af37-48ce-c411-08dc8549d0c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|36860700004|376005|7416005|82310400017|921011; X-Microsoft-Antispam-Message-Info: 4GRFIQZ9DPPBpfKD5HWHvCoetFiKz0rSlM32IzOsvK/Es3FwX/4t2yt4tgaFnscy8qvoNIUMLcaYiFdLXoo7zBIJNKkL/wkykC1ZJ/uJFiYwadp++RxrlNMCDq5K3reeT7bBCL0T94c0jeOcPYjDDUcad0Dt6W4kpBkijZnnpoHELrcHcr0rvwHdq3p4qkHuyGYITDE1BVy988R202+TeXe13oYXk4Nc0jvqdxqBUKrDef19XFQ8UK+g7pwlVdB5FnglznJUj5fBrFxdLtQuXJhqRD8QU4b4Ia9e/gSRAEvQZO4U2Zqh16Q0CL162+E8oxd97WoaMV43h9weofTsSx+Ha3RTcaVzRgrf0QrSmMSeKI+89uCTPKYqt0VVIcHQw7EHnROzHxu44ct7HSvLmggTFaGZPxA6p6NmWmtG4sr56Br89zo+uJnbAjg6xEw62FRWOf8PFjRUPXPbXUkl/MFU5yG/2SnE+wjjMHA+y/Uee7W9bhzbafNKlBCQq6B5TMi30mb9k66cdIb+k+stfV9MnmwVvmTkciINUdq1Lih3OTmCVTjGA+pIO9AqUpSOIrLgMP1lRJZAThiO3spZsP5s9KxGsxe10exUu8bpvbLEAJg0rzHgqrVmrCbSVKj3+UGgtUkahN9CL3W1nRVSZXl5Tg2Iy/TnFs4iX3js1jYYAaTwRdy8+zIZv/4axa1Ak4BoyAM8Pnl2xLRiPHSmXnQ3eGdhgW0nqeFdQTtsmiy5QE2skhLV81RjsyGuwM1GWAfwiL2xbL6zBFzaEtMQyX809WaaM0F+Kg7IOhEUlSwpCULGRNxFo3r8zZDNVj4dnAZMa2O45duwdXB66z3IRroveelgyhzZ/ywiRH6G0QNIAA+hw1ScqI9/X4p2qmPuULpmnMk2uWb/Uw88FxZzncXXsCRBshWOHUVGsYGgts+eYdDSgVsf0qEdWctNX0HnDA/BhFG5KHpj4EmN7G+wLTrNzBy5PI99NfBrciJkCJE9FrJiavO9mlzExCvmjqE8zyP9PrbBsY/PX7Owb4MxkXRtPT1NYkuwzeu/6bj1eZkYJkZUcWpubmiFyW3Klwi3seUCuyzQK7kT8eqm8rWjbGgo2NcAtnuNWA3LAOyze8R/PsmqeudVWzHDAh+zESP8aUj/8JIvqOQmZXRYm/kBJBAFm92HlGu7+2j13s295qZRxvDMTVMKGdsoL2ls3egLJSmAQlColGiK+TVS2ucRaNzFv/y5XSsBaEQKfiyuckoEWpTHCjdyZsa7QGUIaoGsNraxtoSfiOoEY/DV+jGLLOl4XV8YmCx9fSE+1gpCzvGJKefcPtOI5/UDIbr4eGLg2V+e6c/5zighYHP73A/gug6o8DplV6/r20n+lfrXr2eqQ28x7X3769wGbZSs2E7EFxXlynXjRQsQcB4PUGOfS4bQcMS1B64H5C+FWGOLKdk= 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:(13230031)(1800799015)(36860700004)(376005)(7416005)(82310400017)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:25:26.0231 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30fd454d-af37-48ce-c411-08dc8549d0c0 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: DS1PEPF0001709C.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4045 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 --- 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.