Received: by 10.223.176.5 with SMTP id f5csp998826wra; Tue, 6 Feb 2018 10:47:35 -0800 (PST) X-Google-Smtp-Source: AH8x225wHP2FK15RYU24Ap2Je7o55RCHxfN0m2FzEx3l/hQ5Pd5qtRqvhyNDDHidCNBZ50a2Az7z X-Received: by 10.101.101.19 with SMTP id x19mr2781741pgv.347.1517942855300; Tue, 06 Feb 2018 10:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517942855; cv=none; d=google.com; s=arc-20160816; b=GsNpxp8AyuiSmdwwun3du7yxGbYr5lYE5ZHT7JmNLb+ODPL2KuD50OYhk9gAGhiOwW J8d2xVbthmEPCHJZxgL9Fa3TsebA9S2wwIZkaXeMrkqblcNc5px5eeNo069KAefYz5rb cHx8EVK4r/JjwdRinM0XLtY/LxieGRScEUdLk28VT0Imbdm141rv7WdMwN4cYk4e26VF oBmmvrJm98R9DrkiP77qw6HNR7PqtVtKV57xSLnMAwSt+xJCjgZmPVwY56BS3jloAMho ozVE7kTk8DHTEVZuWwcXbPf9e4HN6HI2G8rKOLV1+ddEdtpCif5fy5toGLNWmfEuh+1F +cgQ== 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=kOCzxCGbNbJ4aTFbi1s+EXzzKQyd37L4/F4vTzawlyg=; b=R+MOyhYTce7nd6wjqpk9YfIOj3xVj3GZvb0J6NHVuvWzxUZJNpaY/LtpmwqxL4iYOZ RuvvMhBjosWd6jepUWS6WFfmF/59IyL0dYEzUYwu3Zo2EX7kbLyaTTbW50ECwzLskdLI unbfflV+e8f3KmwxqElBd+pp0sV5HgaOSDkFSS9yI/D3Km0OdAgUYPeVJVq+xG2u298o BL86XHs0nUxyIwTwQ8avbr4bov+ZZohDs7UV1GB8OnjAxxWfy9NlH3B90vPvSsZ0lxhx r47z8k4ntRkYIl0ViU7Azh9WkCWbLAjKlM8MIt/Mnns/nRho5QouUCg3EpvaRek13FyO 9cZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iZFNT4rs; 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 bf9-v6si364068plb.741.2018.02.06.10.47.21; Tue, 06 Feb 2018 10:47:35 -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=iZFNT4rs; 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 S1753253AbeBFSqc (ORCPT + 99 others); Tue, 6 Feb 2018 13:46:32 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:18568 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbeBFSq1 (ORCPT ); Tue, 6 Feb 2018 13:46:27 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w16Ik6pN031113; Tue, 6 Feb 2018 12:46:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517942766; bh=1Bv4WOLoAL2+xeOSE92bkQewHsYkoFfUcEYJYqEnMRQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=iZFNT4rszaBSvkQUVOnZckXaKEcEUuZ43u/PUxF//Ae8LT4U8zPgry1ppj2mzPYeS f9MoPBgK+kAGXzn6+YbwkmVV+4mbPu7b2WRF1uohXb/g+0TpizPuzpab0i5+/fTzP6 TSYx0K0EOZZOrfRCT28oREynTViKpCZ6MsCV2Gz8= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w16Ik5TN031825; Tue, 6 Feb 2018 12:46:05 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 6 Feb 2018 12:46:05 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 6 Feb 2018 12:46:05 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w16Ik5gl019599; Tue, 6 Feb 2018 12:46:05 -0600 Date: Tue, 6 Feb 2018 12:46:05 -0600 From: Bin Liu To: Andreas Kemnade CC: , , , Tony Lindgren , Discussions about the Letux Kernel Subject: Re: [PATCH] usb: musb: fix enumeration after resume Message-ID: <20180206184605.GA3992@uda0271908> Mail-Followup-To: Bin Liu , Andreas Kemnade , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren , Discussions about the Letux Kernel References: <20180127083403.928-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180127083403.928-1-andreas@kemnade.info> 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 Hi, On Sat, Jan 27, 2018 at 09:34:03AM +0100, Andreas Kemnade wrote: > 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. Do you see the issue with the v4.15? > So let's do a subset of what musb_start() does > in the same way as musb_suspend() does it. Platform-specific > stuff it still called as there might be some phy-related stuff > which needs to be enabled. > Also interrupts are enabled, as it was the original idea > of calling musb_start() in musb_resume() according to > Commit 6fc6f4b87cb3 ("usb: musb: Disable interrupts on suspend, > enable them on resume") The logic in the fix makes sense, and I do see the same problem with AM335x on v4.9 kernel, but it doesn't happen on v4.15. I haven't checked if there is anything after musb_start() which sets MUSB_POWER_SOFTCON bit. Regards, -Bin.