Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unipi] Avoid hang on reboot after updating EEPROM firmware #1127

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 24, 2024

  1. unipi-kernel-modules: Allow forced deinitialization of drivers

    in the unipi module. This module cannot be unloaded at runtime,
    because it contains multiple drivers running in different threads.
    
    Force unloading it will cause a system hang, similar to the one
    observed if it registeres led drivers twice and rfkill attempts
    to unregister its' triggers during reboot from the devices created
    by them.
    
    Changelog-entry: unipi-kernel-modules: Allow forced deinitialization of drivers
    Signed-off-by: Alexandru Costache <alexandru@balena.io>
    acostach committed May 24, 2024
    Configuration menu
    Copy the full SHA
    20b4e5c View commit details
    Browse the repository at this point in the history
  2. rpi-eeprom: Unload and deregister unipi modules prior the EEPROM update

    to avoid any interference with flashrom as well with rfkill
    unregister, and prevent reboot from hanging.
    
    Signed-off-by: Alexandru Costache <alexandru@balena.io>
    acostach committed May 24, 2024
    Configuration menu
    Copy the full SHA
    4925a8f View commit details
    Browse the repository at this point in the history