Jump to content

[Armbian build PR] - Op5+/HDMI-RX: fix spurious triggering of irq 5v while plugout code is running


RSS Bot

Recommended Posts

Description

HDMI-rx does not properly report if it is plugged out and says that it is plugged in all the time. The cause is the following.

There is an irq that is watching a gpio for 5v high.

During the plugout method for the driver, the driver resets the device state. If the irq that is watching for gpio 5 volts is not disabled during this time, it triggers on a transient voltage and sets the driver to run the "High"/plugged in logic. By the time the driver reaches the high logic, the gpio is low again, which resets the cycle by re-calling the plugout method.

This is probably why @efectn disabled the log in 0a0eb46 , because it's so noisy and spams the logs.

I don't know if this is the right solution, but I know it prevents this cycle by disabling the irq during the plugout code sequence.

How Has This Been Tested?

Tested on orange pi 5 plus

Checklist:

Please delete options that are not relevant.

  • [ x ] My changes generate no new warnings

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines