On Fri, 17 Oct 2025 16:18:27 +0100 Prabhakar wrote:
The number of CDARq (Current Descriptor Address Register) registers is not fixed to 22 across all SoC variants. For example, the GBETH implementation uses only two entries. Hardcoding the value leads to incorrect resource allocation on such platforms.
What is the user-visible problem? "Incorrect resource allocation" could mean anything from slight waste of system memory to the device falling over.
If it's the former this is not a fix..
Pass the DBAT entry count through the per-SoC hardware info struct and use it during probe instead of relying on a fixed constant. This ensures correct descriptor table sizing and initialization across different SoCs.
Fixes: feab85c7ccea ("ravb: Add support for RZ/G2L SoC") Cc: stable@vger.kernel.org