openhwgroup / cva6-sdk

CVA6 SDK containing RISC-V tools and Buildroot
59 stars 64 forks source link

API Change for phy_dev #9

Open mickflemm opened 5 years ago

mickflemm commented 5 years ago

On recent kernel versions: phydev->advertising = phydev->supported will not work since they are not u32 anymore but bitfields, you should instead use linkmode_* functions to manipulate them, e.g.:

linkmode_and(phydev->advertising, phydev->advertising, phydev->supported); linkmode_copy(priv->phy_dev->advertising, priv->phy_dev->supported);