---
name: "phy_sanitize_settings"
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/phy_sanitize_settings"
---

# phy\_sanitize\_settings(9)

make sure the PHY is set to supported speed and duplex

## NAME

phy\_sanitize\_settings - make sure the PHY is set to supported speed and duplex

## SYNOPSIS

**void phy\_sanitize\_settings(struct phy\_device \*** *phydev***);**

## ARGUMENTS

*phydev*

the target phy\_device struct

## DESCRIPTION

Make sure the PHY is set to supported speeds and duplexes. Drop down by one in this order: 1000/FULL, 1000/HALF, 100/FULL, 100/HALF, 10/FULL, 10/HALF.

## COPYRIGHT
