]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: sun4i-emac: Allow to enable netif messages
authorMichael Weiser <michael.weiser@gmx.de>
Mon, 14 Nov 2016 17:58:06 +0000 (18:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:05:54 +0000 (22:05 -0500)
commit1acb1fb29737447d9f04c5abf80e33d730399efc
tree9c635b21a18f21c06d2d6e347a879ba55d0233ba
parentaad2187bd37158fd97ef00f69eaae445b9c63cb0
net: ethernet: sun4i-emac: Allow to enable netif messages

sun4i-emac has the ability to print a number of diagnostic messages using
dev_dbg depending on message level settings implemented using netif_msg_*
macros. But there's no way to actually enable them.

Add the ability to switch diagnostic messages on using either a module
parameter debug or ethtool -s <netif> msglvl <flags>.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c