Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-vm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-vm
  • Repository
  • linux-vm
  • drivers
  • base
  • power
  • wakeup.c
Find file BlameHistoryPermalink
  • Strashko, Grygorii's avatar
    PM / wakeirq: fix wakeirq setting after wakup re-configuration from sysfs · 16669bef
    Strashko, Grygorii authored Apr 06, 2016
    
    
    Now wakeirq stops working for device if wakeup option for
    this device will be reconfigured through sysfs, like:
    
    echo disabled > /sys/devices/platform/extcon_usb1/power/wakeup
    echo enabled > /sys/devices/platform/extcon_usb1/power/wakeup
    
    Once above set of commands is executed the device's wakeup_source
    opject will be recreated and dev->power.wakeup->wakeirq field will
    contain NULL. As result, device_wakeup_arm_wake_irqs() will not arm
    wakeirq for the affected device.
    
    Hece, lets try to fix it in the following way:
      check for dev->wakeirq field when device_wakeup_attach() is called
      and if !NULL re-attach wakeirq to the device
    
    Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
    Acked-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    16669bef