Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9111788pxu; Mon, 28 Dec 2020 06:57:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpKBrxbPv465cXjLUchtqAHsTaAdg/ne3sLsu73aBQGnNi8+VI9JHD7rk4U3V4esS9sGb8 X-Received: by 2002:a17:906:1291:: with SMTP id k17mr42121259ejb.288.1609167460352; Mon, 28 Dec 2020 06:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167460; cv=none; d=google.com; s=arc-20160816; b=xC4lzqmA3Ki1ahMX9UF+z66AA+9+H6M4gS41+Xx+789ZZiKjhAoIuttqWTc1RhAaFQ QsgqRT5pa+v0ULBP+91UoxvfxX4q1yLJMWDL6ZSUrJm0v7NbTE4qqQOStL97IMHz7BXX FrHi35ppGx4VEvAzMuldMkAj5o3JCSsVsdW4YYqZOcp1XaWldUEaqBpYWETyPeE2WvI2 4gLDGe8uxmQQP4q0uP+mSlMRHQ+b4rdCHDpf7NfV/b7kB4jCXzW09QEruOywA6sMSSe5 1V7g/kFls0qcCJgAQxdZiKLSnjJTHjQe0XBz5bVRkcokU/vkUy+Mkuauyoqq5O99K4UZ r8gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xee7N92WWa/AzhNER+jDL0s4fjtEHP25B+x9rF8l7gE=; b=IIgfgKIJTQlDRV3vowBaIpWXyGijUG85s0wACps4LaJCHOxg0nQQKbUundAP2k2hz7 +YmDNG07k6RmNcKbW5uT3PWms9VKXgoJ5Yuaoulkd2Elp1UHQRwHud2IVJWi+gz+DOh1 z+fwhW+OxDwYAQdKe+6s6bQVKivc2DT3XhkESZN1/732A4Vhtd7xzp2AXoK0OQp/pCz5 25pN/40/xqldczNf+zCwallsEc7qRHZHgRj1jSlEnbRjLbaaLXSCT9vq+KGENngwGjPz /m3odnxZlv3BefYS0X3Bez5dbyGfxr1wEIP4bZMJKFZDpRkAzJsXAByTTsfEOZNmmHO/ d+Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jG8NRM/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si23878290edu.567.2020.12.28.06.57.17; Mon, 28 Dec 2020 06:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jG8NRM/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441466AbgL1ORX (ORCPT + 99 others); Mon, 28 Dec 2020 09:17:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:52378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441429AbgL1ORR (ORCPT ); Mon, 28 Dec 2020 09:17:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0E7620791; Mon, 28 Dec 2020 14:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164997; bh=Zb/f2CW08khvlm2AKI02eYmtEkyBjFDohoUzB3svI1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jG8NRM/yfcVYP7tmfveUaqYOXgoYriHOTP7XppjZFIh4uEtO8mqog2gGq8MW/M5To vRnY8p3rYEDqm90gFW4sZHGo0aUFJbGqONypAfx/QqmaQsq9djj/11Ht0SQMUCqRyH SjfvsEriw7/GwGTShlxVzgQl+7VmPlXL95turOaM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alan Stern , Zhang Qilong , Sasha Levin Subject: [PATCH 5.10 372/717] usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe Date: Mon, 28 Dec 2020 13:46:10 +0100 Message-Id: <20201228125038.830977493@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Qilong [ Upstream commit d6ff32478d7e95d6ca199b5c852710d6964d5811 ] The pm_runtime_enable will decrement the power disable depth. Imbalance depth will resulted in enabling runtime PM of device fails later. Thus a pairing decrement must be needed on the error handling path to keep it balanced. Fixes: 6c984b066d84b ("ARM: OMAP: USBHOST: Replace usbhs core driver APIs by Runtime pm APIs") Acked-by: Alan Stern Signed-off-by: Zhang Qilong Link: https://lore.kernel.org/r/20201123145719.1455849-1-zhangqilong3@huawei.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/ehci-omap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 8771a2ed69268..7f4a03e8647af 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -220,6 +220,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev) err_pm_runtime: pm_runtime_put_sync(dev); + pm_runtime_disable(dev); err_phy: for (i = 0; i < omap->nports; i++) { -- 2.27.0