Received: by 10.223.176.5 with SMTP id f5csp1093959wra; Wed, 7 Feb 2018 12:33:49 -0800 (PST) X-Google-Smtp-Source: AH8x227fvPWYo+P2maNPdNpa4eKxUMA+5QkNxv/FdkSQflFaXl8r6IGKvKD6ZpvyVVUpvHOR68vW X-Received: by 10.98.94.71 with SMTP id s68mr7144101pfb.135.1518035628909; Wed, 07 Feb 2018 12:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518035628; cv=none; d=google.com; s=arc-20160816; b=YB80lSba3DjaCVVZY/U7cO4H1/9cq7K15KlFfvPHchc4FGSCGYiPQcq1STytDfjwRW 07SMasOlbRUao0Y9YlBxaL1Qn+tFCK65BsXok6wqkDewuhxZEdznrDxo8KdQJ520Azyt r9vSYQidPD4oK7CwyT4/HoxO7TBYCXEN3ChjrJOamXgJA/TDh8So/HnI5a/9I+hZKGvd rVUQG550FxAJKE3FAlHepTZBfrBfs7TilIkSR5q0cG0ahjGiHIoOoCGL63RE+RoT17lz 5kL5EkM8KDx39nIBr63EHOKmUap8VWwggwd2TSBNL1XfOl0jwXMwYJI3ZKbX448s2u77 NiAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=QKz/47yU5w56XD4cDGKn+wvmmstY24+CUoCPzXkZdu4=; b=f87Wm878+uzMJEZKnzZlXyIpMo/t8tX/UER+OVFMhUo7Yae2NfDbeJJU/fM90A0+LB TRdHmDoOXAGXzQP6MVFNeQkbB8eCGPSxoPKJEflScQDohdq9Dkg9S3Px6lpVlAdE64TT ZLnA7CBXjrsk7ZcOG9jI//UJblFiwGaEXvf94ksPAHu4A/sGGiPKD9poZuEqLgwEuf57 gtXX+cl1qwBbEaiYz8krE+AlsGlf5all9y5k59z4lXyiB1VcTqIH5aj9B5zxIUkH8xXI fQ93hF8gfqAeILMxWwa0fwr90O8o7zoKpAuqN1ctxjGkPpN63HaQpvHu7hQg2VUV2Xcx PbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vDfC7uvu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si1372691pgv.286.2018.02.07.12.33.35; Wed, 07 Feb 2018 12:33:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vDfC7uvu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932225AbeBGUcv (ORCPT + 99 others); Wed, 7 Feb 2018 15:32:51 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:40606 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932119AbeBGUci (ORCPT ); Wed, 7 Feb 2018 15:32:38 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w17KWK4A008161; Wed, 7 Feb 2018 14:32:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518035540; bh=US0dS+tEPrA57cj5/AG7fzvyCAsRBoTUdvb05KHFW/I=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=vDfC7uvuX6V3I6r12FKrWaXW40iLthuzr5Gw87dSZqBE+Vtoh4l2a+BKXKn7Z84FB VKMJymWEKDDFJ5M3v9idpq4Kk2JbG4mhCsVWg4g9aEUTn7N49DRr/QmDrHFokL2SQx SA6cc1Oz4Cp44BiPfr73Moftlx2CMnxyqYe5qZ4w= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w17KWKdd010033; Wed, 7 Feb 2018 14:32:20 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 7 Feb 2018 14:32:20 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 7 Feb 2018 14:32:20 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w17KWK3u028830; Wed, 7 Feb 2018 14:32:20 -0600 Date: Wed, 7 Feb 2018 14:32:20 -0600 From: Bin Liu To: Tony Lindgren CC: Andreas Kemnade , , , , Discussions about the Letux Kernel , Subject: Re: [PATCH] usb: musb: fix enumeration after resume Message-ID: <20180207203220.GB3992@uda0271908> Mail-Followup-To: Bin Liu , Tony Lindgren , Andreas Kemnade , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel , linux-omap@vger.kernel.org References: <20180127083403.928-1-andreas@kemnade.info> <20180206184725.GD21573@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180206184725.GD21573@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 06, 2018 at 10:47:25AM -0800, Tony Lindgren wrote: > * Andreas Kemnade [180127 08:34]: > > On dm3730 there are enumeration problems after resume. > > Investigation led to the cause that the MUSB_POWER_SOFTCONN > > bit is not set. If it was set before suspend (because it > > was enabled via musb_pullup()), it is set in > > musb_restore_context() so the pullup is enabled. But then > > musb_start() is called which overwrites MUSB_POWER and > > therefore disables MUSB_POWER_SOFTCONN, so no pullup is > > enabled and the device is not enumerated. > > I just gave this patch a quick try and things seem to behave > for me from PM point of view: > > Tested-by: Tony Lindgren Thanks for testing it. Regards, -Bin.