Received: by 10.223.176.5 with SMTP id f5csp999907wra; Tue, 6 Feb 2018 10:48:47 -0800 (PST) X-Google-Smtp-Source: AH8x2240uXfyDdp6ciW2cawJwnhtQd97AOquJ8VtP2kleauwQ/4nWHC4Q3Xs5DtmMHwTsgnpEuF+ X-Received: by 2002:a17:902:b410:: with SMTP id x16-v6mr3411311plr.157.1517942927195; Tue, 06 Feb 2018 10:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517942927; cv=none; d=google.com; s=arc-20160816; b=H++3PvfPhdbFaRnVTgDXRKKFcWG9+opQNwPbuuqXDJwQYDfmsGGEi7S7GMEB7c9Qda 4L5XzSzrJbqlqBqggdk3a0MZvCO7KpAyNc2/g1s3kzks5GYaI/L/Te9E6bk3y3g0lYYn ENcq+vkpq2KJTyzNTodCrI+4cucmTNvQOqLcUbXj0d2EV6UHSSt8qEdIUwuAjZ79dbLO 0JT5m7Qvr6FKKZJnPCCSEXVlK7m+wZ4kASQwJG1wY5yyDIIkRRxGuailKK/yzQ6dgYwl pTDRYnZtlZ6l0wnHJHGIAi9sdblktM6LDHsSK0QJi91gumsxUfptW4wExfKNlm9ea4j5 JUhw== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=qp+7r5XgHo8xcFi9u4KYAX6R/JIwex+qNOxi/aTo2ao=; b=s/yIIjRNvz2O16kjLg2SKV9vPbODkgSrEwnN6KKSSJaBQe0iEIMn862+y7CsRPRRzg YIzj2soi9o+fvPPZ1R+IpO4JrN1ZMCNh0m5hQd0uE2nm9bc9S5msBGqX5WWJ6UutWkdo twlYt08nkHI8fS9BrzR/vlKj3kiuIH9JIOGayOUEr85Ke8yO4/LxaNDmwGAHm45ksY/9 RcAxKZpjduSdB4OPrO5AHYbpfzyUTGyEcAUE6PnLV2ss6pdm/9CI7zi4i+NSf0CbthH9 yen/PXTLr8njE9uhuvmmvgraK1K5t2iFNCpWfN5EldII/XmnKb8H/mM0gXGbFAAbvjMg 6WKA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n61-v6si1283259plb.67.2018.02.06.10.48.33; Tue, 06 Feb 2018 10:48:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220AbeBFSrg (ORCPT + 99 others); Tue, 6 Feb 2018 13:47:36 -0500 Received: from muru.com ([72.249.23.125]:56182 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056AbeBFSr3 (ORCPT ); Tue, 6 Feb 2018 13:47:29 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4A32A8030; Tue, 6 Feb 2018 18:47:55 +0000 (UTC) Date: Tue, 6 Feb 2018 10:47:25 -0800 From: Tony Lindgren To: Andreas Kemnade Cc: b-liu@ti.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel , linux-omap@vger.kernel.org Subject: Re: [PATCH] usb: musb: fix enumeration after resume Message-ID: <20180206184725.GD21573@atomide.com> 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.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 Unrelated to this patch, I also noticed that we now somehow higher idle power consumption initially when musb modules are loaded. It used to idle after that but now to get things to idle I had to plug and unplug a USB device once to the musb port. Regards, Tony