From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751360AbdKIPRK (ORCPT ); Thu, 9 Nov 2017 10:17:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:60078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbdKIPRJ (ORCPT ); Thu, 9 Nov 2017 10:17:09 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 051E6218EB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dinguyen@kernel.org Subject: Re: Suspend to disk with usb connected fails to detect usb(reset) during resume To: Ivid Suvarna , Alan Stern Cc: USB list , balbi@kernel.org, gregkh@linuxfoundation.org, Billy Araujo , johnyoun@synopsys.com, Felipe Balbi , Kernel development list , Laurent Pinchart , Oliver Neukum , Johan Hovold , Michal Nazarewicz , Vincent Pelletier , Jerry Zhang , John Keeping , Krzysztof Opasiak , Abdulhadi Mohamed , Matthew Wilcox , Janusz Dziedzic References: From: Dinh Nguyen Message-ID: <4ff09187-7ee7-78d0-82e2-bb3f763f181f@kernel.org> Date: Thu, 9 Nov 2017 09:17:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/2017 06:29 AM, Ivid Suvarna wrote: > On Tue, Nov 7, 2017 at 9:19 PM, Alan Stern wrote: >> On Tue, 7 Nov 2017, Ivid Suvarna wrote: >> >>> Hi, >>> >>> I am trying to support suspend to disk(hibernate) on Hikey with 4.4 >>> kernel. During suspend, I could see the usb devices getting reset and I >>> can access them properly. Message can be seen as below: >>> >>> usb 1-1: reset high-speed USB device number 2 using dwc2 >>> usb 1-1.2: reset high-speed USB device number 3 using dwc2 >>> usb 1-1.2.4: reset high-speed USB device number 4 using dwc2 >> >> You might start by asking why the devices need to be reset during >> suspend. I can't see any reason for doing this. >> >> Alan Stern >> > > Yes please. Could you explain as to why the usb needs to reset while > suspending? > This scenario is also observed in normal suspend to ram. > > And why the USB gets disconnected on resume from hibernation. > I checked the register dump of usb in /sys/kernel/debug and all > registers after resume have zero value. > Registers with zero value is indicative of a clock not getting turned on, at least that I have encountered with DWC2 on the SoCFPGA platform. Dinh