From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 34EE43546EF; Wed, 1 Jul 2026 15:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782921558; cv=none; b=VWUPEFaB0K/8zbn0ZS/M9oaqp/hzXa1cUfIyu3lq8AwY84uq2Kf8kBOD8nol+YyQEMOn7kElKjaoJXqMSZYUdfnMCFR4OHNmhUOuZqsvxqKI3pSjDpxo6iqHltJdXWG2l2IgkuRxHnNBWkkSXwo2t6aSyAc6rLFPlNmbWJ+vARY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782921558; c=relaxed/simple; bh=EVVHUEAGMBiAkNXRvqQ0md7sIb4G+gir1ZkuPwyWUxc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QyY7C1ru8NFeTk1woVWw0glBKZTMoES6qWRXLDwHNW5z/Txhp5qwJ/xw/Fbvm8tl6yzW0lFnm3cZHTIcVXx6iV78jzC47zHsC037y1LFBDmL1M6G7OW5TfI0cyiqhvC03/f46nI54lN92EWzjZGaWrS3FlvUsRDcZ5423LA8+pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Yhd/Brw+; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Yhd/Brw+" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id DAD681A0DB9; Wed, 1 Jul 2026 15:59:15 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id AF1F460288; Wed, 1 Jul 2026 15:59:15 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 41DD9104C967F; Wed, 1 Jul 2026 17:59:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782921554; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=IrhSpt2aptNeyN+BmWYKYU3AotvUPsK1MLmZ8vMBUas=; b=Yhd/Brw+qzMOk/ThPDQ8kuuedq7tNCiVB/g4QuEjKc2Hy79tKEwatAdwgK2RQ6ibECCCvr iyEU8+O7VkygKevmkF9rKRI8nSoChxgpHQUA/uZJtfga6/f6CMR/6o+EZ2HNtufaeTUgAS w9KvO4S4XhDSQxKMSow5E0Ti5+ZytCyC4jkaBu4LTW0lM61znQUNa0AKNlMYpv0OpcvfGg +VraXv61xwa8GFfgmRlckA39eibnCctfuEW2+58mEv5hqEJoAet2Bd3/J5nzQ5wS9u2eV2 hJJX2BQfs0QggWq9csfMlrlS8uPT/HxiA3vhN3CMIpvHXBJK15zMctbQ/nRikw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 01 Jul 2026 17:59:04 +0200 Subject: [PATCH net-next v3 01/15] net: macb: drop "consistent" from alloc/free function names Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260701-macb-context-v3-1-00268d5b1502@bootlin.com> References: <20260701-macb-context-v3-0-00268d5b1502@bootlin.com> In-Reply-To: <20260701-macb-context-v3-0-00268d5b1502@bootlin.com> To: =?utf-8?q?Th=C3=A9o_Lebrun?= , Conor Dooley , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , Claudiu Beznea , Paolo Valerio , Nicolai Buchwitz , Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Beno=C3=AEt_Monin?= , Tawfik Bayouk , Thomas Petazzoni , Maxime Chevallier X-Mailer: b4 0.15.2 X-Last-TLS-Session-Version: TLSv1.3 Since commit 4df95131ea80 ("net/macb: change RX path for GEM") those functions have not been only allocating or freeing consistent memory mappings. Rename from macb_alloc_consistent() to macb_alloc() and from macb_free_consistent() to macb_free(). Signed-off-by: Théo Lebrun --- drivers/net/ethernet/cadence/macb_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index fd282a1700fb..d677a93b9d72 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -2646,7 +2646,7 @@ static unsigned int macb_rx_ring_size_per_queue(struct macb *bp) return macb_dma_desc_get_size(bp) * bp->rx_ring_size + bp->rx_bd_rd_prefetch; } -static void macb_free_consistent(struct macb *bp) +static void macb_free(struct macb *bp) { struct device *dev = &bp->pdev->dev; struct macb_queue *queue; @@ -2711,7 +2711,7 @@ static int macb_alloc_rx_buffers(struct macb *bp) return 0; } -static int macb_alloc_consistent(struct macb *bp) +static int macb_alloc(struct macb *bp) { struct device *dev = &bp->pdev->dev; dma_addr_t tx_dma, rx_dma; @@ -2769,7 +2769,7 @@ static int macb_alloc_consistent(struct macb *bp) return 0; out_err: - macb_free_consistent(bp); + macb_free(bp); return -ENOMEM; } @@ -3157,7 +3157,7 @@ static int macb_open(struct net_device *dev) /* RX buffers initialization */ macb_init_rx_buffer_size(bp, bufsz); - err = macb_alloc_consistent(bp); + err = macb_alloc(bp); if (err) { netdev_err(dev, "Unable to allocate DMA memory (error %d)\n", err); @@ -3202,7 +3202,7 @@ static int macb_open(struct net_device *dev) napi_disable(&queue->napi_rx); napi_disable(&queue->napi_tx); } - macb_free_consistent(bp); + macb_free(bp); pm_exit: pm_runtime_put_sync(&bp->pdev->dev); return err; @@ -3235,7 +3235,7 @@ static int macb_close(struct net_device *dev) netif_carrier_off(dev); spin_unlock_irqrestore(&bp->lock, flags); - macb_free_consistent(bp); + macb_free(bp); if (bp->ptp_info) bp->ptp_info->ptp_remove(dev); -- 2.55.0