From: Stefan Richter Date: Fri, 17 Dec 2010 21:22:33 +0000 (+0100) Subject: firewire: net: set carrier state at ifup X-Git-Tag: v2.6.38-rc1~444^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c16714704bb35165e5b85d927873dcc643772648;p=pandora-kernel.git firewire: net: set carrier state at ifup At ifup, carrier status would be shown on even if it actually was off. Also add an include for ethtool_ops rather than to rely on the one from netdevice.h. Note, we can alas not use fwnet_device_mutex to serialize access to dev->peer_count (as I originally wanted). This would cause a lock inversion: - fwnet_probe | takes fwnet_device_mutex + register_netdev | takes rtnl_mutex - devinet_ioctl | takes rtnl_mutex + fwnet_open | ...must not take fwnet_device_mutex Hence use the dev->lock spinlock for serialization. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed