---
name: "genphy_aneg_done"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/genphy_aneg_done"
---

# genphy\_aneg\_done(9)

return auto-negotiation status

## NAME

genphy\_aneg\_done - return auto-negotiation status

## SYNOPSIS

**int genphy\_aneg\_done(struct phy\_device \*** *phydev***);**

## ARGUMENTS

*phydev*

target phy\_device struct

## DESCRIPTION

Reads the status register and returns 0 either if auto-negotiation is incomplete, or if there was an error. Returns BMSR\_ANEGCOMPLETE if auto-negotiation is done.

## COPYRIGHT
