From: Matt Carlson Date: Tue, 15 Feb 2011 12:51:10 +0000 (+0000) Subject: tg3: Restrict phy ioctl access X-Git-Tag: v2.6.37.3~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8d5b85f2cce50980de6d36dad4e81ab44f53bd0;p=pandora-kernel.git tg3: Restrict phy ioctl access commit ed199facd070f8e551dc16a2ae1baa01d8d28ed4 upstream. If management firmware is present and the device is down, the firmware will assume control of the phy. If a phy access were allowed from the host, it will collide with firmware phy accesses, resulting in unpredictable behavior. This patch fixes the problem by disallowing phy accesses during the problematic condition. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed