From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8E74C3BBFAF; Wed, 30 Sep 2026 17:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790790308; cv=none; b=DEJ5a1F9KavW7LIizIVJ4I2KFXd142wCXPEghZvAYJrKbXeafIBM3wnXiePlXY+ftErnmJwmoSUE0r0GnpBB9L1mzmlfHQncVN5QWfbaV5xj1SrFMglqcoE4dFjhuSZRmf3SP+YTFc4qiVbRT1wH/BrqidXKGZuu9x77y2W2fm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790790308; c=relaxed/simple; bh=2oJIxQWNxvRw0UDkME14CEXcF4w8DzxyeZQb20Zrot8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RrUcasVDWUxpEjyDyxL8Puc6AdYyT1hSHYgSFoB7ProRGoEha7HP/AqzEp352uZVQT5R+ShO+TJy3w7ekERunuL44Fnz4GpOU2BlwRFO/SxCQyjeRfD4zlienp7Ci0tsAvMyTY03ClKeWl8T1j0UxOYqyDqeDCwYSouNsaTswfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yG8eJ9iu; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yG8eJ9iu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B98971F000FF; Wed, 30 Sep 2026 17:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790790307; bh=M+nevuqOevc8C4h6K+1S9jt+/akRC5y4vdM4YzbTJBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yG8eJ9iu5u6FqbAt83bdBK1EDJWfdyy+1m++BSj1v9jcUrhVLNOjnr0UWJri6bbS3 8QzSPOy9BCi/ITop8CWIlJ/VfzN5Kf4OCz5F8HmnGd72deKW71ZMEL6QGG1LGeL3BG N6pGUDjFa4mLVgGhSYO9/6VBUnrOdcPynP5pEDb8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kevin Hao , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 738/877] net: macb: Replace open-coded implementation with napi_schedule() Date: Wed, 30 Sep 2026 17:27:29 +0200 Message-ID: <20260930152430.616035538@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152414.738996857@linuxfoundation.org> References: <20260930152414.738996857@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kevin Hao [ Upstream commit dc3bd465ea36af7fd6f9197c05353effc616145c ] The driver currently duplicates the logic of napi_schedule() primarily to include additional debug information. However, these debug details are not essential for a specific driver and can be effectively obtained through existing tracepoints in the networking core, such as /sys/kernel/tracing/events/napi/napi_poll. Therefore, this patch replaces the open-coded implementation with napi_schedule() to simplify the driver's code. Signed-off-by: Kevin Hao Link: https://patch.msgid.link/20260402-macb-irq-v2-1-942d98ab1154@gmail.com Signed-off-by: Jakub Kicinski Stable-dep-of: e1406330d70e ("net: macb: initialize PTP state before registering clock") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/cadence/macb_main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -2020,10 +2020,7 @@ static irqreturn_t macb_interrupt(int ir if (bp->caps & MACB_CAPS_ISR_CLEAR_ON_WRITE) queue_writel(queue, ISR, MACB_BIT(RCOMP)); - if (napi_schedule_prep(&queue->napi_rx)) { - netdev_vdbg(bp->dev, "scheduling RX softirq\n"); - __napi_schedule(&queue->napi_rx); - } + napi_schedule(&queue->napi_rx); } if (status & (MACB_BIT(TCOMP) | @@ -2038,10 +2035,7 @@ static irqreturn_t macb_interrupt(int ir wmb(); // ensure softirq can see update } - if (napi_schedule_prep(&queue->napi_tx)) { - netdev_vdbg(bp->dev, "scheduling TX softirq\n"); - __napi_schedule(&queue->napi_tx); - } + napi_schedule(&queue->napi_tx); } if (unlikely(status & (MACB_TX_ERR_FLAGS))) {