Received: by 10.192.165.148 with SMTP id m20csp3058910imm; Sun, 22 Apr 2018 23:05:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/h8JeiJ7Me37v6XrWHg9fshB1prcRXKc3j5n9EWgKfNaJudE0PUDe3RuxKN9J5iLVVmLnZ X-Received: by 10.98.200.152 with SMTP id i24mr18887253pfk.35.1524463544993; Sun, 22 Apr 2018 23:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524463544; cv=none; d=google.com; s=arc-20160816; b=ybgHqlk96Jtl4rtOro5jfYna7XZ7HS6bRGgUBe+JASXpRydC2+4FE0tItG5kAx23sr wobZOXfU1t5QGRTp5g2xELq4fEELe2tgQjRyqSVh5Xr7LYmirM+Jl7CciraoSPOmXfKa p2DOpPUMCdxDjQlJ3zYOLulNVbusCJaKqf27Yw2JDT80npi5IuWOFAW18rolDYeqSosm IP72OliI2LOfBuLSChTZ029oZ1NvYK6x3XpVyJ17KEevO34JcbmDauqupPXLxWdd4okF YUWo+x6BfI69/xmxgkLP85ECBR5XS6OjbXDsonAWZEVQH5PaLsdibmC5iFSS8MgdflNq nG5A== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=6qjWtx2a0cneWS9vsHoO86Ebhobg4F3fm31p5jzCHRs=; b=HFbmQOYGPdjS+at0OWOAt2g6GkH/WTgILBNyBv2RYSxo9IAnuCQJh75XYEOhZfV8So Smoi7ED9XKSUbmumnlMSl4hEGyG0f17zWZkvId0UWd5Nj6a/RhGiYcG9xx8eKJ99PY0B ExawAKtiyYMJ3Sqv8zM8x3e9SHgAp9nxHW2wv2gno4Dy9wH0SdTAvPqywa+MrDq/vCbg VwE/fw+990fztg0cFw345odslm6/lbdkhgnksTXzj7z51EFcBttlhhtSP4d9Q3ke8SYW kZpZy2zPofWD1vL+Eo78ge6n2lWVO/pfmkp79RCAe+ffBvPE+uwjXt+xSjwu2LHoO2JN 6Dsw== 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 z1-v6si9820182plb.558.2018.04.22.23.05.30; Sun, 22 Apr 2018 23:05:44 -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 S1753034AbeDWGEX (ORCPT + 99 others); Mon, 23 Apr 2018 02:04:23 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:47278 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbeDWGES (ORCPT ); Mon, 23 Apr 2018 02:04:18 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fAUaE-0005XR-V3 from Vladimir_Zapolskiy@mentor.com ; Sun, 22 Apr 2018 23:04:14 -0700 Received: from [137.202.108.125] (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 23 Apr 2018 07:04:10 +0100 Subject: Re: [PATCH] mmc: disable card sleep via device-tree To: Lukasz Majewski , Stanislav Meduna References: <20180422213126.32756-1-lukma@denx.de> CC: Ulf Hansson , Linus Walleij , , Rob Herring , Mark Rutland , Adrian Hunter , Fabio Estevam , Wolfram Sang , Chanho Min , , From: Vladimir Zapolskiy Message-ID: Date: Mon, 23 Apr 2018 09:04:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <20180422213126.32756-1-lukma@denx.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On 04/23/2018 12:31 AM, Lukasz Majewski wrote: > From: Stanislav Meduna > > On a TQMa53 module the mmc_sleep leaves the eMMC card in a state > that the imx53 rom boot code is unable to probe, resulting in > reboot hanging. Add a device tree property to disable sleeping > on suspend. > > For TQMa53 modules the exact commit to cause hang after reboot > (v3.10 -> v3.11): > commit 486fdbbc1483 ("mmc: core: Add shutdown callback for (e)MMC bus_ops") > > [The exact discussion can be found here: > https://patchwork.kernel.org/patch/8881401/ > "i.MX53 restart via watchdog does not work" > > Signed-off-by: Stanislav Meduna > Signed-off-by: Lukasz Majewski > --- > Documentation/devicetree/bindings/mmc/mmc-card.txt | 4 ++++ > drivers/mmc/core/mmc.c | 7 +++++-- > include/linux/mmc/card.h | 2 +- > 3 files changed, 10 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/mmc-card.txt b/Documentation/devicetree/bindings/mmc/mmc-card.txt > index 8d2d71758907..c3ee151edd7c 100644 > --- a/Documentation/devicetree/bindings/mmc/mmc-card.txt > +++ b/Documentation/devicetree/bindings/mmc/mmc-card.txt > @@ -12,6 +12,9 @@ Required properties: > Optional properties: > -broken-hpi : Use this to indicate that the mmc-card has a broken hpi > implementation, and that hpi should not be used > +-no-sleep-on-suspend : Do not put the card to sleep when suspending. > + There are boards with bootloaders that are unable > + to probe such card when rebooting. I would recommend to examine an option to reuse the existing host controller property 'keep-power-in-suspend', note that a particular host controller driver may ignore it. In general the problem sounds like a PCB hardware bug, and if it is eMMC card specific, please provide more information about that eMMC rather than about the host. -- With best wishes, Vladimir