From: hayeswang Date: Thu, 24 Jul 2014 08:37:43 +0000 (+0800) Subject: r8152: fix the checking of the usb speed X-Git-Tag: cleanup-for-v3.18~174^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3cc465d95c32bfb529f69dee7841ecd67525561;p=pandora-kernel.git r8152: fix the checking of the usb speed When the usb speed of the RTL8152 is not high speed, the USB_DEV_STAT[2:1] should be equal to [0 1]. That is, the STAT_SPEED_FULL should be equal to 2. There is a easy way to check the usb speed by the speed field of the struct usb_device. Use it to replace the original metheod. Signed-off-by: Hayes Wang Spotted-by: Andrey Utkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed