[RFC PATCH 2/2] net: phy: dp83869: fix mii mode when rgmii strap cfg is used

Andrew Lunn andrew at lunn.ch
Thu Apr 27 05:04:03 PDT 2023


> > If you say so. I was just thinking you could give the poor software
> > engineer a hint the hardware engineer has put on strapping resistors
> > which means the PHY is not going to work.
> 
> I understand now. I will update this patch to add a print if the MII mode is not
> valid with the configured "dp83869->mode". Would you suggest using a dev_err()
> or a dev_dbg()?

dev_err(). And you can return -EINVAL when asked to set the interface
mode.

	Andrew



More information about the linux-arm-kernel mailing list