From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754584AbbBOEJN (ORCPT ); Sat, 14 Feb 2015 23:09:13 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:37070 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754451AbbBOEJL (ORCPT ); Sat, 14 Feb 2015 23:09:11 -0500 Date: Sat, 14 Feb 2015 20:16:17 -0800 (PST) Message-Id: <20150214.201617.380649779582234752.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 Subject: Re: [PATCH net] r8152: restore hw settings From: David Miller In-Reply-To: <1394712342-15778-145-Taiwan-albertk@realtek.com> References: <1394712342-15778-145-Taiwan-albertk@realtek.com> X-Mailer: Mew version 6.4 on Emacs 23.4 / 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]); Sat, 14 Feb 2015 20:09:11 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hayes Wang Date: Thu, 12 Feb 2015 16:20:46 +0800 > There is a capability which let the hw could change the settings > automatically when the power change to ON. However, the USB reset > would reset the settings to the hw default, so the driver has to > restore the relative settings. Otherwise, it would influence the > functions of the hw, and the compatibility for the USB hub and > USB host controller. > > The relative settings are as following. > - set the power down scale to 96. > - enable the power saving function of USB 2.0. > - disable the ALDPS of ECM mode. > - set burst mode depending on the burst size. > - enable the flow control of endpoint full. > - set fifo empty boundary to 32448 bytes. > - enable the function of exiting LPM when Rx OK occurs. > - set the connect timer to 1. > > Signed-off-by: Hayes Wang Applied.