Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • tty
  • serdev
  • core.c
Find file BlameHistoryPermalink
  • Ronald Tschalär's avatar
    serdev: Fix detection of UART devices on Apple machines. · 35d4670a
    Ronald Tschalär authored Feb 11, 2020
    On Apple devices the _CRS method returns an empty resource template, and
    the resource settings are instead provided by the _DSM method. But
    commit 33364d63 (serdev: Add ACPI
    devices by ResourceSource field) changed the search for serdev devices
    to require valid, non-empty resource template, thereby breaking Apple
    devices and causing bluetooth devices to not be found.
    
    This expands the check so that if we don't find a valid template, and
    we're on an Apple machine, then just check for the device being an
    immediate child of the controller and having a "baud" property.
    
    Cc: <stable@vger.kernel.org> # 5.5
    Fixes: 33364d63
    
     ("serdev: Add ACPI devices by ResourceSource field")
    Signed-off-by: default avatarRonald Tschalär <ronald@innovation.ch>
    Link: https://lore.kernel.org/r/20200211194723.486217-1-ronald@innovation.ch
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    35d4670a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7