]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Fix FE_PSE_BUF_SET configuration if PPE2 is available
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 8 Apr 2026 10:20:09 +0000 (12:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 23:05:05 +0000 (16:05 -0700)
commit02f72964395911e7a09bb2ea2fe6f79eda4ea2c2
tree54b4d4affcd0aef30650fc5d4350d24142a16220
parentbf9a38803b2626b01cc769aaf13485d8650f576f
net: airoha: Fix FE_PSE_BUF_SET configuration if PPE2 is available

airoha_fe_set routine is used to set specified bits to 1 in the selected
register. In the FE_PSE_BUF_SET case this can due to a overestimation of
the required buffers for I/O queues since we can miss to set some bits
of PSE_ALLRSV_MASK subfield to 0. Fix the issue relying on airoha_fe_rmw
routine instead.

Fixes: 8e38e08f2c560 ("net: airoha: fix PSE memory configuration in airoha_fe_pse_ports_init()")
Tested-by: Xuegang Lu <xuegang.lu@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260408-airoha-reg_fe_pse_buf_set-v1-1-0c4fa8f4d1d9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c