[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170811.143911.1295975110250079627.davem@davemloft.net>
Date: Fri, 11 Aug 2017 14:39:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: romain.perier@...labora.com
Cc: peppe.cavallaro@...com, alexandre.torgue@...com, andrew@...n.ch,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] net: stmmac: Use the right logging function in
stmmac_mdio_register
From: Romain Perier <romain.perier@...labora.com>
Date: Thu, 10 Aug 2017 16:56:05 +0200
> Currently, the function stmmac_mdio_register() is only used by
> stmmac_dvr_probe() from stmmac_main.c, in order to register the MDIO bus
> and probe information about the PHY. As this function is called before
> calling register_netdev(), all messages logged from stmmac_mdio_register
> are prefixed by "(unnamed net_device)". The goal of netdev_info or
> netdev_err is to dump useful infos about a net_device, when this data
> structure is partially initialized, there is no point for using these
> functions.
>
> This commit fixes the issue by replacing all netdev_*() by the
> corresponding dev_*() function for logging. The last netdev_info is
> replaced by phy_attached_info(), as a valid phydev can be used at this
> point.
>
> Signed-off-by: Romain Perier <romain.perier@...labora.com>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
Applied, thanks.
Powered by blists - more mailing lists