Skip to content
GitLab
Projects Groups 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
    • 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-vm
  • Repository
Switch branch/tag
  • linux-vm
  • drivers
  • net
  • ethernet
  • freescale
  • fsl_pq_mdio.c
Find file BlameHistoryPermalink
  • Timur Tabi's avatar
    net/fsl_pq_mdio: use spin_event_timeout() to poll the indicator register · 59399c59
    Timur Tabi authored Jul 09, 2012
    
    
    Macro spin_event_timeout() was designed for simple polling of hardware
    registers with a timeout, so use it when we poll the MIIMIND register.
    This allows us to return an error code instead of polling indefinitely.
    
    Note that PHY_INIT_TIMEOUT is a count of loop iterations, so we can't use
    it for spin_event_timeout(), which asks for microseconds.
    
    Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    59399c59