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
You need to sign in or sign up before continuing.
  • linux
  • drivers
  • net
  • can
  • dev
  • dev.c
Find file BlameHistoryPermalink
  • Marc Kleine-Budde's avatar
    can: dev: add can_state_get_by_berr_counter() to return the CAN state based on... · 9beebc2b
    Marc Kleine-Budde authored Sep 28, 2023
    can: dev: add can_state_get_by_berr_counter() to return the CAN state based on the current error counters
    
    Some CAN controllers do not have a register that contains the current
    CAN state, but only a register that contains the error counters.
    
    Introduce a new function can_state_get_by_berr_counter() that returns
    the current TX and RX state depending on the provided CAN bit error
    counters.
    
    Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-1-9987d53600e0@pengutronix.de
    
    
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    9beebc2b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7