[PATCH] ath11k: pci: avoid unsafe register access during shutdown
Balsam Chihi
balsam.chihi at moment.tech
Wed Aug 20 01:14:11 PDT 2025
On Tue, Aug 19, 2025 at 7:36 PM Ameer Antar <ameerantar at comcast.net> wrote:
>
> Balsam, do you have a patch for this? I also have cards that require different
> bin files for each band. I haven't been able to figure out how to do this via
> configuration rather than rebuilding drivers.
>
Hello Ameer,
Yes, indeed we have to rebuild ath11k but once with the patched
core.c, not each time we add a card.
Then you can add text files named with the pci device address and the
path to your board-2.bin inside,
for each instance of the driver.
That way we avoid building the driver or the kernel each time we add a
wifi card.
I'm cleaning up the patch and I will send it to the mailing list if
you are interested.
Best regards,
Balsam
> Thanks.
> -Ameer
>
> ----- Original Message -----
> From: Balsam Chihi <balsam.chihi at moment.tech>
> To: Baochen Qiang <baochen.qiang at oss.qualcomm.com>
> Cc: linux-wireless at vger.kernel.org, ath11k at lists.infradead.org,
> jjohnson at kernel.org
> Subject: Re: [PATCH] ath11k: pci: avoid unsafe register access during shutdown
> Date: 8/19/25 4:50:47 AM
>
> >Hello,
> >I Have a question on the same subject but not related to the bug.
> >I have many identical PCIe WiFi cards on the system and I need to load
> >a different board-2.bin on each one (1 adapter per frequency band).
> >Is there any kernel built-in solution for that?
> >I could not find any, so I had to create a patch that loads a
> >different board-2.bin for each card based on the pci device address.
> >I patched ath11k's core.c file so that it reads a string from a text
> >file in the rootfs (board-2.bin path per wifi card).
> >If the text file is not found, the driver loads the default file
> >provided by linux-firmware for all cards, the original behaviour.
> >Please let me know if there is a better solution for that.
> >Best regards.
> >Balsam
More information about the ath11k
mailing list