lkml.org 
[lkml]   [2019]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 4/6] net: dsa: mt7530: Add the support of MT7531 switch
> +static int mt7531_setup(struct dsa_switch *ds)
> +{
> + /* Enable PHY power, since phy_device has not yet been created
> + * provided for phy_[read,write]_mmd_indirect is called, we provide
> + * our own mt7531_ind_mmd_phy_[read,write] to complete this
> + * function.
> + */
> + val = mt7531_ind_mmd_phy_read(priv, 0, PHY_DEV1F,
> + MT7531_PHY_DEV1F_REG_403);
> + val |= MT7531_PHY_EN_BYPASS_MODE;
> + val &= ~MT7531_PHY_POWER_OFF;
> + mt7531_ind_mmd_phy_write(priv, 0, PHY_DEV1F,
> + MT7531_PHY_DEV1F_REG_403, val);
> +

Is this power to all the PHYs? Or just one?

Andrew

\
 
 \ /
  Last update: 2019-12-10 17:49    [W:0.150 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site