---
name: "phy_read_mmd_indirect"
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_read_mmd_indirect"
---

# phy\_read\_mmd\_indirect(9)

reads data from the MMD registers

## NAME

phy\_read\_mmd\_indirect - reads data from the MMD registers

## SYNOPSIS

**int phy\_read\_mmd\_indirect(struct phy\_device \*** *phydev***, int** *prtad***, int** *devad***);**

## ARGUMENTS

*phydev*

The PHY device bus

*prtad*

MMD Address

*devad*

MMD DEVAD

## DESCRIPTION

it reads data from the MMD registers (clause 22 to access to clause 45) of the specified phy address. To read these register we have: 1) Write reg 13 // DEVAD 2) Write reg 14 // MMD Address 3) Write reg 13 // MMD Data Command for MMD DEVAD 3) Read reg 14 // Read MMD data

## COPYRIGHT
