]> git.ipfire.org Git - thirdparty/linux.git/commit
net: airoha: Select default ppe cpu port in airoha_dev_init()
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 17 Oct 2025 09:06:19 +0000 (11:06 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Oct 2025 11:07:05 +0000 (13:07 +0200)
commitc71a7a861ef02aa2bebb18c2f3385aa3f19094e0
treefa72e1a1af02002ffa34d2059697a3ab8d7d6823
parent620d7b91aadbd4eb930895b07e34f0a155a9d3c1
net: airoha: Select default ppe cpu port in airoha_dev_init()

Select the PPE default cpu port in airoha_dev_init routine.
This patch allows to distribute the load between the two available cpu
ports (FE_PSE_PORT_CDM1 and FE_PSE_PORT_CDM2) if the device is running a
single PPE module (e.g. 7583) selecting the cpu port based on the use
QDMA device. For multi-PPE device (e.g. 7581) assign FE_PSE_PORT_CDM1 to
PPE1 and FE_PSE_PORT_CDM2 to PPE2.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251017-an7583-eth-support-v3-10-f28319666667@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c