]> git.karo-electronics.de Git - linux-beck.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)
commitb8ca3387fe94ad5a7142f0b3de5aedf7389234c3
tree9c635b21a18f21c06d2d6e347a879ba55d0233ba
parentf8be0d78be6e7f199116a5e644ee20ff0ce413f7
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