phy_register_fixup(9)

phy_register_fixup9

Creates a new phy_fixup and adds it to the list

Usage

int phy_register_fixup(const char * bus_id, u32 phy_uid, u32 phy_uid_mask, int (*run) (struct phy_device *));

Arguments

bus_id

A string which matches phydev->mdio.dev.bus_id (or PHY_ANY_ID)

phy_uid

Used to match against phydev->phy_id (the UID of the PHY) It can also be PHY_ANY_UID

phy_uid_mask

Applied to phydev->phy_id and fixup->phy_uid before comparison

run

The actual code to be run when a matching PHY is found

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.