Received: by 10.213.65.68 with SMTP id h4csp881264imn; Tue, 27 Mar 2018 10:29:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Kh8hERWejr9qHLqg/Yo/nGNnNp9cHEzaJdybWoC/XmV1O69KgKBkkbW5CtRctWKzC7Iy0 X-Received: by 2002:a17:902:b58d:: with SMTP id a13-v6mr191253pls.225.1522171798989; Tue, 27 Mar 2018 10:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522171798; cv=none; d=google.com; s=arc-20160816; b=yOoUKcuGhbbqhXSx1rourPm4XRlsrUJIblrH2KWe+Zy9wXPOZgHjYuAeKVnkXQ0lgA gvcp+WKiXCUdlStDcvHw5USZFjy/Zuh/BvSg0aAlNuS55U6W9R9BPKqLAb+wF8x4Zd/G KfAT1fNNmmAtxSUIHrm420zxd+zWjdkd6aKWrBVeHfP2pRsdNkjy6iy20W85xkwpqGii Lh1/rz4pdmMCZaoW3NUZh8rh9FchAZS01pHa7/Pg5m/tXNNU1gGGwFmlHc/mk0j2N3w3 Qax0juKaMbtQejcFsl+hzVp1J79wGsFfPttGRmuq+2EkDOXfiEo2lAlNJINMIJMfV69/ l+DQ== 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=hQcciyp1HXLASsADsO/YpffB/Pvc5Ol2QCpVSpdkJp8=; b=vjHWz2S0LndpBOvYB+WnPvv3cbkzSAt+/PGoW9eZ5ySMKH6RuyidI+fWH8uP9fgB6w CSs89dVSlKEPQnAreXU5vO8bcIysFmNxQb6H4yXJLh8RAyktQfgxU40WNdvanP+UCaLl ITTc16gCjGje75tBed8PtAUMCu6IsbE6Ds6R29Fv7M/b+fT5tvzjdckX1Um9kaGDjuio QeBtOsIRvxw1JAQy7Pf88ObTi2qN73Iwx3zNpXfXgSK+x4eDvts04x1WL7uukbWgXiDA qOEQnfCbAGU1cWk8v8Sa7flEn4imbYIZ3Psom6RIP0/6DcL48XgEX03Zanm4cPT05QX/ b03g== 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 85si1099232pfo.234.2018.03.27.10.29.44; Tue, 27 Mar 2018 10:29:58 -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 S1754641AbeC0R1D (ORCPT + 99 others); Tue, 27 Mar 2018 13:27:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45826 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754739AbeC0Qgi (ORCPT ); Tue, 27 Mar 2018 12:36:38 -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 CF832ED4; Tue, 27 Mar 2018 16:36:37 +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.14 020/101] mmc: dw_mmc: exynos: fix the suspend/resume issue for exynos5433 Date: Tue, 27 Mar 2018 18:26:52 +0200 Message-Id: <20180327162751.216426681@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-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; } /**