Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2761194ybh; Mon, 5 Aug 2019 06:26:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYCkUvDl/Kiz+02Bfyn8uzAoKxsTYQhGvyUar0fMSyVJupcgCUlvBTbH1aR5k8XnsvZhLg X-Received: by 2002:a63:e610:: with SMTP id g16mr133209139pgh.392.1565011569357; Mon, 05 Aug 2019 06:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011569; cv=none; d=google.com; s=arc-20160816; b=MJj2w9avllsZ3ON1ZJKEkc1hIwY6FVqSDjOZudjLeKahufYkgF9gjs5xhtJ6TogSGG eUhZHqXuV+2MFSwda2pjUbZ3MGYD62A/f1Z2Ew9WBzXbDLvk9/xcgzuGtE2U+MxzfZ78 i8t99P18G8n8tI+btQaVKG9c3kI8VG84FbWvx7+YjTXSQHcZA9LgadTEvB960Q4hx4qk PNRVva6j9tSwDLit6QwOCMkhktiU/EWUi9FDpPQTxuylEi0b7Phh/6qZS+wLYiZACVyO Zu9aO2C88jqUW5M+IPyQJF2/WOE6iBJ5YYAddCzgB9g2O8ueY138F3jxaYIZFK4+I0aY Ag5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=X92B/LBI62NjwXpE7TwC4Wv2CbtXpzJiUiIl7EhXeDo=; b=Cp6ndNS9tbY4aDnfDy7v/yHHEDIOzWexj9VnLlkczhJ7Vy5A7oJzaki3OPjhYs28Gw dWdpgv4rbSbsT4TExq5jzGaAjwjRBCZuWr2UGq0qOHIcGfQn4y0i/5N2AqeQzPTPALhQ VTKYKSbmY5tXPm20xSHijtWhcB3letbmQJf6ElvvNBqxEopOMjdagRw+J2yZZzDioWQO mMec1d/poT6+W7FvOR437SmZA9aDxn6mqwK5m/j6x67s4mGp5lFdFwmfNfTqzUCuSDxD mp/+7if/mjud2y6DXE3aK2Yzb1rphNZNFZWeKiDHo5ntljgvwhHihMXPNF5cZwKLZEgE eQ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wT57fk8b; 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 n1si42882573pgn.77.2019.08.05.06.25.54; Mon, 05 Aug 2019 06:26:09 -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=@kernel.org header.s=default header.b=wT57fk8b; 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 S1730915AbfHENXy (ORCPT + 99 others); Mon, 5 Aug 2019 09:23:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:60594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730829AbfHENXu (ORCPT ); Mon, 5 Aug 2019 09:23:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 281AC20651; Mon, 5 Aug 2019 13:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011429; bh=V2Q70GTfv3oZzNZd5F8MMLlNY9oeJq+bcMPgLj65Nq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wT57fk8b5ZtA0+FcAchO2G1ETX8AquRgnRh6rt4eR+8DyjazsVjUFKIiejgGHDi76 qyv735LBVXU9IfjvXKq7CYjk2ipgNQ1bXARLp5oUQFG5B4/zOuKVDUuunpG4GNutMQ uZuE2efy5I8mW5Wp7VMMnwjX4CPi+hSGdqIrI1dQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Baolin Wang , Adrian Hunter , Ulf Hansson Subject: [PATCH 5.2 085/131] mmc: host: sdhci-sprd: Fix the missing pm_runtime_put_noidle() Date: Mon, 5 Aug 2019 15:02:52 +0200 Message-Id: <20190805124957.654638392@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Baolin Wang commit fc62113b32c95906b3ea8ba42e91014c7d0c6fa6 upstream. When the SD host controller tries to probe again due to the derferred probe mechanism, it will always keep the SD host device as runtime resume state due to missing the runtime put operation in error path last time. Thus add the pm_runtime_put_noidle() in error path to make the PM runtime counter balance, which can make the SD host device's PM runtime work well. Signed-off-by: Baolin Wang Acked-by: Adrian Hunter Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-sprd.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -405,6 +405,7 @@ err_cleanup_host: sdhci_cleanup_host(host); pm_runtime_disable: + pm_runtime_put_noidle(&pdev->dev); pm_runtime_disable(&pdev->dev); pm_runtime_set_suspended(&pdev->dev);