@popcornmix:
firmware_revert13 doesn't fix the problem for me.
log from #0130 (CEC NOT working):
http://sprunge.us/MQhB
log from #0130 with firmware_revert13 (CEC NOT working):
http://sprunge.us/LdEb
Difference between #0130 with altered firmware / without altered firmware is: with your altered firmware "kodi" doesn't show up in my TV's CEC sources, even after a reboot. Instead I have an item called "Recorder 3" showing up (which I cannot select and which never before has been there, I only have my AVR and rpi3 connected to my TV)
So I installed #0112 again (without manually reverting config.txt (that "logging_level=0x200000" line) and / or the overwritten bootcode.bin etc from your firmware_revert13.zip, if that somehow matters) , and CEC is working again for me. I ONCE had to select "kodi" as CEC source right after fresh install, then no matter if I turn the TV off or not, CEC stays okay for me. <-so might be, I ever had to select "kodi" ONCE as @
MONSTA wrote, I am not sure about that.
log from working #0112:
http://sprunge.us/iCfN (though there seem to be a lot of "error code -1", but it's definately working for me, I turned off and on TV almost 10 times while writing and no more CEC issues for me...)