Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • 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-iv
  • Repository
Switch branch/tag
  • linux-iv
  • drivers
  • platform
  • x86
  • wmi.c
Find file BlameHistoryPermalink
  • Darren Hart (VMware)'s avatar
    platform/x86: wmi: Instantiate all devices before adding them · 6ee50aaa
    Darren Hart (VMware) authored Jun 06, 2017
    At some point, we will want sub-drivers to get references to other
    devices on the same WMI bus. This change is needed to avoid races.
    
    This ends up simplifying the setup code and fixing some leaks, too.
    
    This is based on the original work of Andy Lutomirski <luto@kernel.org>,
    but includes several modifications, many in response to review from
    Michał Kępień <kernel@kempniu.pl>:
    
      https://www.spinics.net/lists/platform-driver-x86/msg08201.html
    
    
    
    Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Mario Limonciello <mario_limonciello@dell.com>
    Cc: Pali Rohár <pali.rohar@gmail.com>
    Cc: linux-kernel@vger.kernel.org
    Cc: platform-driver-x86@vger.kernel.org
    Cc: linux-acpi@vger.kernel.org
    Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    6ee50aaa