From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexandre.belloni@free-electrons.com (Alexandre Belloni) Date: Tue, 21 Jun 2016 17:30:41 +0200 Subject: [PATCH v4] usb: ohci-at91: Forcibly suspend ports while USB suspend In-Reply-To: <1466472764-29114-1-git-send-email-wenyou.yang@atmel.com> References: <1466472764-29114-1-git-send-email-wenyou.yang@atmel.com> Message-ID: <20160621153041.GW5809@piout.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 21/06/2016 at 09:32:44 +0800, Wenyou Yang wrote : > In order to save power consumption, as a workaround, forcibly suspend > the USB PORTA/B/C via setting the SUSPEND_A/B/C bits of OHCI Interrupt > Configuration Register in the SFR while OHCI USB suspend. > > This suspend operation must be done before the USB clock is disabled, > resume after the USB clock is enabled. > > Signed-off-by: Wenyou Yang Reviewed-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbcFUPca (ORCPT ); Tue, 21 Jun 2016 11:32:30 -0400 Received: from down.free-electrons.com ([37.187.137.238]:36786 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751483AbcFUPbB (ORCPT ); Tue, 21 Jun 2016 11:31:01 -0400 Date: Tue, 21 Jun 2016 17:30:41 +0200 From: Alexandre Belloni To: Wenyou Yang Cc: Alan Stern , Greg Kroah-Hartman , Nicolas Ferre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v4] usb: ohci-at91: Forcibly suspend ports while USB suspend Message-ID: <20160621153041.GW5809@piout.net> References: <1466472764-29114-1-git-send-email-wenyou.yang@atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466472764-29114-1-git-send-email-wenyou.yang@atmel.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/06/2016 at 09:32:44 +0800, Wenyou Yang wrote : > In order to save power consumption, as a workaround, forcibly suspend > the USB PORTA/B/C via setting the SUSPEND_A/B/C bits of OHCI Interrupt > Configuration Register in the SFR while OHCI USB suspend. > > This suspend operation must be done before the USB clock is disabled, > resume after the USB clock is enabled. > > Signed-off-by: Wenyou Yang Reviewed-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com