Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • X xcap-capability-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
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
  • xcap-capability-linux
  • drivers
  • net
  • ethernet
  • intel
  • e1000e
  • ich8lan.c
Find file BlameHistoryPermalink
  • Bruce Allan's avatar
    e1000e: fix test for PHY being accessible on 82577/8/9 and I217 · a52359b5
    Bruce Allan authored Jul 14, 2012
    
    
    Occasionally, the PHY can be initially inaccessible when the first read of
    a PHY register, e.g. PHY_ID1, happens (signified by the returned value
    0xFFFF) but subsequent accesses of the PHY work as expected.  Add a retry
    counter similar to how it is done in the generic e1000_get_phy_id().
    
    Also, when the PHY is completely inaccessible (i.e. when subsequent reads
    of the PHY_IDx registers returns all F's) and the MDIO access mode must be
    set to slow before attempting to read the PHY ID again, the functions that
    do these latter two actions expect the SW/FW/HW semaphore is not already
    set so the semaphore must be released before and re-acquired after calling
    them otherwise there is an unnecessarily inordinate amount of delay during
    device initialization.
    
    Reported-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
    Tested-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
    Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    a52359b5