]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: airoha: read default PSE reserved pages value before updating
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 1 Oct 2024 10:10:24 +0000 (12:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 16:54:28 +0000 (09:54 -0700)
commit1f3e7ff4f296af1f4350f457d5bd82bc825e645a
treecbc4b3eedcfb816765907442140c3e3d9b48a9c0
parent7d68b6f664a0a0f3f5afd3e6d9fda2a8bea05890
net: airoha: read default PSE reserved pages value before updating

Store the default value for the number of PSE reserved pages in orig_val
at the beginning of airoha_fe_set_pse_oq_rsv routine, before updating it
with airoha_fe_set_pse_queue_rsv_pages().
Introduce airoha_fe_get_pse_all_rsv utility routine.

Introduced by commit 23020f049327 ("net: airoha: Introduce ethernet support
for EN7581 SoC")

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241001-airoha-eth-pse-fix-v2-1-9a56cdffd074@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c