I got this issue while upgrading from bullseye to bookworm
I opened this PR https://salsa.debian.org/debian/raspi-firmware/-/merge_requests/33 on salsa. It might do the job. I just tested the small if I added, I'd be glad if someone is able to make test in condition of this. Regards, Fabrice