arch/risc-v/src/mpfs/mpfs_ethernet.c: Fix compilation with CONFIG_DEBUG_NET
- Fix compilation failure "error: 'mpfs_phydump' defined but not used [-Werror=unused-function]" - Add debug dump of phy registers. Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
parent
ea321d86cb
commit
cc662453c1
1 changed files with 4 additions and 1 deletions
|
|
@ -2246,7 +2246,8 @@ static int mpfs_phyfind(struct mpfs_ethmac_s *priv, uint8_t *phyaddr)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_DEBUG_NET) && defined(CONFIG_DEBUG_INFO)
|
||||
#if defined(CONFIG_DEBUG_NET) && defined(CONFIG_DEBUG_INFO) && \
|
||||
defined(ETH_HAS_MDIO_PHY)
|
||||
static void mpfs_phydump(struct mpfs_ethmac_s *priv)
|
||||
{
|
||||
uint16_t phyval;
|
||||
|
|
@ -2601,6 +2602,8 @@ static void mpfs_linkspeed(struct mpfs_ethmac_s *priv)
|
|||
|
||||
mac_putreg(priv, NETWORK_CONFIG, regval);
|
||||
mac_putreg(priv, NETWORK_CONTROL, ncr);
|
||||
|
||||
mpfs_phydump(priv);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue