From patchwork Thu Jul 7 22:21:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 71628 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp126312qgy; Thu, 7 Jul 2016 15:22:39 -0700 (PDT) X-Received: by 10.66.139.162 with SMTP id qz2mr4298380pab.60.1467930155102; Thu, 07 Jul 2016 15:22:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d67si192232pfc.12.2016.07.07.15.22.34; Thu, 07 Jul 2016 15:22:35 -0700 (PDT) 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=@linaro.org; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932325AbcGGWWY (ORCPT + 30 others); Thu, 7 Jul 2016 18:22:24 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:36510 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932293AbcGGWVf (ORCPT ); Thu, 7 Jul 2016 18:21:35 -0400 Received: by mail-pf0-f177.google.com with SMTP id t190so9709532pfb.3 for ; Thu, 07 Jul 2016 15:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+0MK1iIKqqfaRFWEX7kP6DzFyb2HWKYt6WGWGi0OqwA=; b=dhch6uttKS95vvlJ0T2zXxBm4RdDEAN+REB4JTHZuR9Uw5Oc73nOA8Fs/8SJ6Mbfmv pVYZVDiRj4y1EOuI2e0tVneyafwxeO13XpefjPDLudgpvGRb9dqDvmijZZZSRdQ4Ttt2 kGQLnEoxEV1PoMUhsXtM4+a4+x3DdWJF9JiwQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+0MK1iIKqqfaRFWEX7kP6DzFyb2HWKYt6WGWGi0OqwA=; b=Dbdm4sV6PrfpPj8j6c45b+mzyOe96RlkCZkQVmmLd0legBYOrj32EkJiWZdXfxG/nz iyDzJ6WbWpvl0Hab//IqGRLLlf65ZKFK0U28aNZub0Jr1Depl8vi3qlw/uxU73HNwB6Z nFJgKGTBtNoChNnIHiLCCXXOUysuBHxRpYWdLbuRaihAlxBiB2ZhItUDzkmsV+KmRIk0 3X90e2EpSZRv3ecddt+dekJLbA5nIlXlcCQxxwIMSqtDe1wbICx4IaLLqAdS6mykj2H6 UUxRFXXoulh2Mrb+zbhR1GDwvD4kXCqdLmDmDHXrMWG2mJdALiobTjXLn6cODC/VVJYk djmw== X-Gm-Message-State: ALyK8tLyb6WwcSFDNlbiN5AK2eJcc22r4MKi1gFCZ9/vvhVHLYhvvodYX3bQRBaDBEGxu9/B X-Received: by 10.98.8.83 with SMTP id c80mr4060966pfd.11.1467930095087; Thu, 07 Jul 2016 15:21:35 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id j8sm6781807paj.22.2016.07.07.15.21.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 15:21:33 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Neil Armstrong , Arnd Bergmann , Felipe Balbi , Peter Chen , Greg Kroah-Hartman Subject: [PATCH v2 11/22] usb: chipidea: msm: Mark device as runtime pm active Date: Thu, 7 Jul 2016 15:21:02 -0700 Message-Id: <20160707222114.1673-12-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160707222114.1673-1-stephen.boyd@linaro.org> References: <20160707222114.1673-1-stephen.boyd@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We're not properly marking the glue layer/wrapper device as runtime active, so runtime PM believes that the hardware state is inactive when we call pm_runtime_enable() in this driver. This causes a problem when the glue layer has a power domain associated with it, because runtime PM will go and disable the power domain to match the 'inactive' state of the device. Let's mark the device as active so that runtime PM doesn't improperly power down this device when it's actually active. Cc: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.0.rc2.8.ga28705d diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 3889809fd0c4..89c1a02d69b5 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -80,6 +80,7 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev) platform_set_drvdata(pdev, plat_ci); + pm_runtime_set_active(&pdev->dev); pm_runtime_no_callbacks(&pdev->dev); pm_runtime_enable(&pdev->dev);