Make sure your TV is connected to the first HDMI port (on the RPi4/5 PCBs that's the one next to the USB-C power socket).
The commit you linked was an attempt to support CEC on the second HDMI port as well, but it was incomplete and caused more problems than it solved so we needed to revert it.
so long,
Hias
Thanks, indeed I had the HDMI connected to the other port. Changing it solved the problem.