Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758966AbaGYGiL (ORCPT ); Fri, 25 Jul 2014 02:38:11 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:58878 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbaGYGiJ (ORCPT ); Fri, 25 Jul 2014 02:38:09 -0400 Date: Thu, 24 Jul 2014 23:38:07 -0700 (PDT) Message-Id: <20140724.233807.867041649917385199.davem@davemloft.net> To: hayeswang@realtek.com Cc: netdev@vger.kernel.org, nic_swsd@realtek.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, andrey.krieger.utkin@gmail.com Subject: Re: [PATCH net] r8152: fix the checking of the usb speed From: David Miller In-Reply-To: <1394712342-15778-15-Taiwan-albertk@realtek.com> References: <1394712342-15778-15-Taiwan-albertk@realtek.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.7 (shards.monkeyblade.net [149.20.54.216]); Thu, 24 Jul 2014 23:38:09 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hayes Wang Date: Thu, 24 Jul 2014 16:37:43 +0800 > 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 Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/