Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9172268pxu; Mon, 28 Dec 2020 08:22:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkCrQO6ITlg/z9A+M7PiZu+FcfviCYZOKU5o3Q8rObVexNsXyO7U4P43bklgsHDVyvaxG0 X-Received: by 2002:a17:906:c7d9:: with SMTP id dc25mr43228797ejb.138.1609172524130; Mon, 28 Dec 2020 08:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172524; cv=none; d=google.com; s=arc-20160816; b=eWRiUZvnGVbdTULXkiuB+xjHM14EmdNsOt/jm9A1cgPoZWV6NdjBvttvXe9XNpbd7G A2RhicB4RR1Ur9OXDyTMP6T6iYZP7Nv4WosV3R6NGWkzgijKWaMaAcIf8lxsYExmfQLN nj/loTzRB9p9kmBkmQN8qzu+dqwaQ1F4egKx/vkhm9IxInuw4ZVI/gfQ/tKN40Kv/zjb TDjH6J2+MmHpy3t0WHsge8QQGGgwOfXGbx+zu3eO8E4o2pql/O0iqgZ0IWO4Fy9sKsz4 Cwbt8OsYXNATQUgLxjdoDLxPU/n+EAi7OwaEcSIhSMWQXgtvbmcgd0ajn1ynVEKZ+1jV xPHg== 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=TGbGOUA0oYZCahpRZQ1KdQbJYFRSpTV9Yhrxl/bLOrM=; b=fTbZeMBlbpuZWDJFKxoquw/CmnUqoOzVR3elKhJbttlPb49xcp82Aa8hmgNRURIW/f F+53FfaD0A4GZEUIe9oqYsJ058Q7U8y30mUGg6nDbL7Nr+nCZZv4h87lEWLVu+W1RUTL PbEYPCOXTkfDI+SpHVwgWppek54j9zFaqaUBcBnsztefsErjIMnDyMuoEAlB+mFFBNsD 2CwU2nKn18vQuxXnV2Ruse7L+9xZ/bm5z+95KgxpniGw9JlPQbkh5hE+799+EX0ejR2M fnnhokiGl+P+ZYgbd+iAZmmPvWTbaE61S3RC5BM6/culLJ3MWgG4JbLAS/JVXbcqz0UY CHtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xV5mP55m; 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 w14si18925621eje.646.2020.12.28.08.21.40; Mon, 28 Dec 2020 08:22:04 -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=xV5mP55m; 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 S1733001AbgL1QTa (ORCPT + 99 others); Mon, 28 Dec 2020 11:19:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:42886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732519AbgL1NOl (ORCPT ); Mon, 28 Dec 2020 08:14:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A7586207CF; Mon, 28 Dec 2020 13:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161241; bh=js/n0fm6os4CoVcjcCuaxZVTNlaKZ10A00fmQMp8Cak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xV5mP55mOmqZ43MzlUM/pyf+NwNfMg/gHqjBiXtDENYvjM0Nj5rNjR5izgEckeCF4 NCuVi3QAKEtnu5I4KXQlZaBA7p66I9140SCUIBT3kXlXCn1E0bye02Fu5dv6IVSitf 3ZubxjYvC32FqtYjh8nSt2EASLI/0P7TsS/rwhBI= 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 4.14 150/242] usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe Date: Mon, 28 Dec 2020 13:49:15 +0100 Message-Id: <20201228124912.093053648@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 4d308533bc835..a6b738139cd21 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -237,6 +237,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