Part Number: J722SXH01EVM
we are encountering an issue where the driver for the Wi-Fi module base on roadcom's BCM43752 fails to load on our device base on K3-J722S.
Here are the details:
The driver version used is bcmdhd.101.10.591.x_SparkLAN_v8, and this driver compiles correctly on both the 6.6.58 kernel and the 6.12.43 kernel with the same build method. The compiled driver works fine on the 6.6.58 kernel, but fails to load on the 6.12.43 kernel.
I compared the startup logs of both kernels and found that the logs are consistent at the start of the loading process. However, during the execution of the dhdpcie_get_resource function, the 6.12.43 kernel logs a message saying "BAR1 Not enabled for this device size(0), addr(0x0000000000000000)", then exits and retries loading the driver, failing at the same point repeatedly. After four attempts, it stops trying, and the driver fails to load. This message does not appear on the 6.6.58 kernel, and the driver loads successfully.
I also executed cat /sys/bus/pci/devices/0000:01:00.0/resource on both kernels to check the PCI resource allocation. I found that in both kernels, the size of BAR1 is 0. However, I am unsure why the driver loads successfully on the 6.6.58 kernel but fails with the BAR1 size of 0 on the 6.12.43 kernel. I have attached the complete startup logs from both systems, and the lines starting with [dhd] are the driver's log information.
Additionally, we have another device with an NXP iMX8MP SoC and kernel version 6.12.20. The same driver source compiles and works normally on this kernel. Therefore, the issue with loading the driver on the TI 6.12.43 kernel is likely related to kernel configuration or the PCI bus driver, rather than the kernel itself. I have also attached the log from the driver loading on the NXP kernel.
Please help analyze where the problem might be. If any additional information is needed, tell me and I will provide it. Thanks
dmesg_output_6.6.58.txt dmesg_output_6.12.43.txt driver_load_log_6.12.20@nxp.txt
