backfire: Generic: Clean up output of AR8216 driver. (backport of r20773)
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Apr 2010 11:47:33 +0000 (11:47 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Apr 2010 11:47:33 +0000 (11:47 +0000)
commitf382721827ed43b70731359a3d267e80329cbaed
tree8ca2840dc70f9057fab22e57b5fcd2ba07dc53e8
parent4703844c5eb34f6f8496178b1c2f83953e5fc5c2
backfire: Generic: Clean up output of AR8216 driver. (backport of r20773)

This patch is rather a cosmetic patch. It fixes the following issues:

 * Demote the unknown device message to debug level to not spam
   the log.
 * Fix the version print of the unknown device message.
 * Output the 'attach' message only when attaching as switch driver,
   not when attaching as phy driver.
 * Correctly return NET_RX_DROP when dropping packets.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@20774 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic-2.6/files/drivers/net/phy/ar8216.c