Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9183065pxu; Mon, 28 Dec 2020 08:39:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXdtz8ITygLVu5SmNFUSx/yX3ZywnfqKNQW+1V50f4Px4FJF54Oxtm7n8pr+0dvIzDHx+v X-Received: by 2002:a50:ab59:: with SMTP id t25mr42824960edc.364.1609173556133; Mon, 28 Dec 2020 08:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173556; cv=none; d=google.com; s=arc-20160816; b=UqjsQcY66fqkQNkHJ7kLZ8aXzzKrcJX1DK/EFmZ3m5AJS4qJBcQHBNys/edT/uiMo8 mfZv5Kj9wwkQAwcR7HE+vEJ6KUQ9UqGIDq2QgXQduwxi29kfbdiiEbTYeW/McVXZXZ37 4H3xyOywo6e+ZsrOitRan5SV89cQXf6vxosMASEFc3eRzbbHfs7DIFfGR+20ZGdJjq5W BsLdMA6W4Oeq0bPl8LnkUmHitnSkdNegHOVkql07IENxsTX6Wxs/pLtEwA0yqAewUxNF mGQ8m0Roo4klDtFRYDkHNTcGlJQ1SRdVCaEg4CuuFIn76/ssQ3A6pHp9zgRlJNVBpBFk 81fw== 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=FDP6ieoAy2dNjX2hbI5/zp0d6LLTKibW48WLRWG6b5Q=; b=S7KjHNe3YIT+uVImb067U6SJCV6sLjntpw+gr87cmpOIQy58oNVKBTfNifBSCxm+K+ J5QshNsyQ3aW/9R6amdR5zPb17uIVURvesCaer67PUcD5ZREI8qkc68UgRCY/0N/usAF b1Fg6dnFPBRzewc72xFnp1LySsz/ESwG2YPWzuMQy0NgMhx0wSdZXpejLuxJctoIhM0H PBjlF6SnudPCsSkB1J9Ihdx7qbJsRaSojecdIz8GBaScMNYTBlVsCWQoGaEAaEYAGgvw NJcGexTWqSU7/rwc5tY17XFHyQb3DAOp35x42opVmqoJf87hWRqeGqOiMeBtZi9YgP+E /heg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iBMfd215; 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 m15si20346837edp.363.2020.12.28.08.38.51; Mon, 28 Dec 2020 08:39:16 -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=iBMfd215; 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 S2441972AbgL1Qcs (ORCPT + 99 others); Mon, 28 Dec 2020 11:32:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:60156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730338AbgL1NEC (ORCPT ); Mon, 28 Dec 2020 08:04:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8B782208B6; Mon, 28 Dec 2020 13:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160602; bh=Jt5ah7W6jt8vYVVXZz8JhEpNRQ0h7d7odSb+gh5XBgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iBMfd215wwgqQb4Cgql6pSzRixZ+/94jbaGNmZ7ehU74iFRivppIwPVmD9d1I8617 M8kikKtYT4uY9tFpyagETWyeTGnF5XYr9TluYQiDajWe/OeZ+SZtUKlHaZAH666M3N NA87wMmyq6gAUT8OMWrxQOwsqjIFyUzYBjiQ+ujI= 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.9 106/175] usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe Date: Mon, 28 Dec 2020 13:49:19 +0100 Message-Id: <20201228124858.388195843@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 94ea9fff13e6d..9227a9ddac609 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