Received: by 10.213.65.68 with SMTP id h4csp836624imn; Tue, 27 Mar 2018 09:40:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+a/PYwp+hiLHdpDuOcrAC6gRqwwSEty8RY/LMqj1OKc9IIDExDavgmgsE5C25XD/WBrOph X-Received: by 2002:a17:902:8213:: with SMTP id x19-v6mr25876pln.371.1522168846591; Tue, 27 Mar 2018 09:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522168846; cv=none; d=google.com; s=arc-20160816; b=HS/tcFlTk2Edqli8y2GHFvafD5seCMuOJ5fQFTUVvEtWHccfQGW3OEn8Xs5O3cMhIb PAFaq3gvxhzGbDG4w5EAgae9IQOKYl6hSG6wWxOxTgMnC+i/4PFt1XivRLKjb4YUQ8VK RGHSnXAErPeTL8YgPf6ztIg4WmK+N3225CJHEGAfmIEzKfYQk50VN/3uj0fhENl/Vswa JqnrlVeCotfsIXI/5QP+IiKU0pJeKCgwIUOIQyZuknY723S3VgOs3GLLNUEQ583eQA3O 7UNTtub0ng+DEEuUbmKliVzOsJV+s4EdTiCSsX4OgA+MMxmhh7plTg/pgupg51pVB99E D5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wtrbOzXzt9wxnf8OHlfPoi9Idcg4lLD8yNb/rdrSkK4=; b=Rov3i8CWg2YgmThoYAERc6a1bWo3fVA3Jx+0bsfK7f2fX0mgnrR/NA8Cf5AexemvL5 28aRIKbslw8jc8Cz8EqQhQkwDZzhUQVohmQ3fAd/0u1/Aep2JOBlSF4u4fW0jQgQ9UZB xwsZ9U2+KIxBf/M2VdRPfLL/o74fZnhMXV51XafGMXPkjcHF0/2AE4wbXX4Mrx7MlwVJ hc4plrETJWMXe8/AJzIGrYfC0wbuNw3aeQBuCjBneM2Tj+XLkDtxG0h8BPfVhTyGzNSj utQMBdM29/7CJFz+HW0GKiQ0nChn8cV37ySSRyc43iKWBBF2Ny09DQTeKqV51//HDXz4 gWvw== ARC-Authentication-Results: i=1; mx.google.com; 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 t28si1205032pfk.187.2018.03.27.09.40.32; Tue, 27 Mar 2018 09:40:46 -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; 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 S932218AbeC0QjS (ORCPT + 99 others); Tue, 27 Mar 2018 12:39:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47122 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932088AbeC0QjP (ORCPT ); Tue, 27 Mar 2018 12:39:15 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EBF28105D; Tue, 27 Mar 2018 16:39:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jaehoon Chung , Chanwoo Choi , Ulf Hansson Subject: [PATCH 4.15 020/105] mmc: dw_mmc: exynos: fix the suspend/resume issue for exynos5433 Date: Tue, 27 Mar 2018 18:27:00 +0200 Message-Id: <20180327162758.695430167@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jaehoon Chung commit e22842dd64bf86753d3f2b6ea474d73fc1e6ca24 upstream. Before enabling the clock, dwmmc exynos driver is trying to access the register. Then the kernel panic can be occurred. Signed-off-by: Jaehoon Chung Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/dw_mmc-exynos.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -165,9 +165,15 @@ static void dw_mci_exynos_set_clksel_tim static int dw_mci_exynos_runtime_resume(struct device *dev) { struct dw_mci *host = dev_get_drvdata(dev); + int ret; + + ret = dw_mci_runtime_resume(dev); + if (ret) + return ret; dw_mci_exynos_config_smu(host); - return dw_mci_runtime_resume(dev); + + return ret; } /**