]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ks8851: Inline ks8851_rx_skb()
authorMarek Vasut <marex@denx.de>
Fri, 5 Apr 2024 20:30:39 +0000 (22:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:29 +0000 (11:19 +0200)
commite454abe5cc1724c34a2265f1448bf5a9b611679d
treeaefc3c701870903c317b3e4cdeccea62f2730df1
parent499c993ca7cc53ace306fa9d545d033e94d18e82
net: ks8851: Inline ks8851_rx_skb()

[ Upstream commit f96f700449b6d190e06272f1cf732ae8e45b73df ]

Both ks8851_rx_skb_par() and ks8851_rx_skb_spi() call netif_rx(skb),
inline the netif_rx(skb) call directly into ks8851_common.c and drop
the .rx_skb callback and ks8851_rx_skb() wrapper. This removes one
indirect call from the driver, no functional change otherwise.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20240405203204.82062-1-marex@denx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: be0384bf599c ("net: ks8851: Handle softirqs at the end of IRQ thread to fix hang")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/micrel/ks8851.h
drivers/net/ethernet/micrel/ks8851_common.c
drivers/net/ethernet/micrel/ks8851_par.c
drivers/net/ethernet/micrel/ks8851_spi.c