Received: by 10.192.165.148 with SMTP id m20csp3557983imm; Mon, 30 Apr 2018 02:16:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpQivCA0TmA/sCjH5xik6XlL5/pl+6jhVAZgeY2ONhryV5D0PqgfGeKFUBWnZilT3iyQLnx X-Received: by 2002:a63:4003:: with SMTP id n3-v6mr9544644pga.13.1525079785893; Mon, 30 Apr 2018 02:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525079785; cv=none; d=google.com; s=arc-20160816; b=ESW/YJ3f/MBdkc1jUf8y65cufIFyR59WiYQbdx69Fl+vjtxF1pWPOAP/PHUQck5Kaa Fc+MpHRaGsdCWCv42po33daoT0/luLV1age/XBT2Z8W8KrGwnlXwW9zWNSVzdkFtfmbX CNpQ08G8yT5rtKMCr2m8PLXsCG8QlLsfng5Mf1XIc1xrUGDihGIL03YqS2jd56/swJg8 OBvK043QbWuXqb5q88RCWnIol58jO1m+UZBb+Tymxx/0XN5N+41xkghk/c0kv9vx4z1M B/vCcZssnEaRyoTV/r54lbZPi3MpyJRzU8UFdamBy9VR4tzOsiHmVlZFnmVHzl0T0wtg pkSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Y569uw2MJXmqn4JTWrAnQPtZnmBydM0pcm40VWuV04o=; b=kpRBlY+SDTcv6RxwZTFifpjoOZZwsrz8AXhWmkxbW6NqREiDKWR2QNke0pLz0ahfJ1 eVLXw4d3sStlPd9udwt0gBdDpa6vGsZEixKoyMmKjaHRfvnnsBeAF0js1JUbxQrubArF RJiXT4HvRct/O6bcAUzWmdtuFtEik1MN0a9BgyziB9+rHEnimaNPzP0YwFVeaaBBIocF P9o/DJ7Kc6e9v+KPW1UdLHrk3PhNf4pWuyNAI4HWIasXGx6MjQLFBYK+A31PJA7z8UaD 41+XJJe85JjwrtfesOxhIAvGYa5HBTUjIvy+Rk6EpIQlNk25Rya6AydKl9xZxLIiEb1f gdlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1fONAq/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si6864089pff.301.2018.04.30.02.16.11; Mon, 30 Apr 2018 02:16:25 -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=@linaro.org header.s=google header.b=a1fONAq/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753883AbeD3JNt (ORCPT + 99 others); Mon, 30 Apr 2018 05:13:49 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:33242 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753075AbeD3JNq (ORCPT ); Mon, 30 Apr 2018 05:13:46 -0400 Received: by mail-io0-f195.google.com with SMTP id e78-v6so9462856iod.0 for ; Mon, 30 Apr 2018 02:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Y569uw2MJXmqn4JTWrAnQPtZnmBydM0pcm40VWuV04o=; b=a1fONAq/V7uC7jiUr0crPeQATWxElto6uh5dZk8Q+EeuPOMaAOosPq7PSB8U5UZrqI C1OAgpna6Mc5BzrPPRCN6dI/Yk74OQGKTyU1zBO58TccU0OopvER7WVFWA7SEb0Q4S4H LnkycKgNU3o3biOQKzPDpqZkPsObojWs+/aKA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y569uw2MJXmqn4JTWrAnQPtZnmBydM0pcm40VWuV04o=; b=YNd/QluT+N8XBicKApLjaZpGBCpyS0Oxf7emBrerMTewqdVn453PelyxgEc7LDbZC7 nTy2v6/wg9UVUlGiKUiOsdcMKa5cwo4GJaU9rsuGcqfr8eR2LShnvvl887gYpFIOdU8z /ZJYBSOB3Fne14ZzBcWUlQQF79aP/zlQfLRhAUhuzY+dGqoX3AVtMi6QyxKDWts3FZak 5kF2Kqeu2fVXh+XqbOiWC0RzgmLP+4aL0zhhRFf8e6PZWGsn+Dj7eT89DQf1LY0/VQXq kb8gpOwMNXakGEkAsEIekbECuoOB2xILhx0HaL/woSqOMExv2l6wtN+H4EwcAyMr2m2i sn1A== X-Gm-Message-State: ALQs6tBXsWTW4oWGz9ju7SLwzZjehtGru700sV7qRV08ZxbYSlWMu/0b AYCGfqEGuxz0DBATQEtlu3JOF3/dl5P+9YchYF0KvA== X-Received: by 2002:a6b:cc02:: with SMTP id c2-v6mr11544969iog.304.1525079626217; Mon, 30 Apr 2018 02:13:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2793:0:0:0:0:0 with HTTP; Mon, 30 Apr 2018 02:13:45 -0700 (PDT) In-Reply-To: <20180422213126.32756-1-lukma@denx.de> References: <20180422213126.32756-1-lukma@denx.de> From: Linus Walleij Date: Mon, 30 Apr 2018 11:13:45 +0200 Message-ID: Subject: Re: [PATCH] mmc: disable card sleep via device-tree To: Lukasz Majewski Cc: Ulf Hansson , "linux-kernel@vger.kernel.org" , Rob Herring , Mark Rutland , Adrian Hunter , Fabio Estevam , Wolfram Sang , Chanho Min , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-mmc , Stanislav Meduna 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 On Sun, Apr 22, 2018 at 11:31 PM, 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 (...) > 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. As far as I understand this problem is not coming from the host controller itself, so it should not be tagged on to the host controller either. Rather the problem is how the specific system has integrated the host controller, the problem is in the fixture of this specific machine, as you say, in the i.MX53 ROM. In that case, I would say use this: if (of_machine_is_compatible("fsl,imx53")) { ..activate quirk... } Yours, Linus Walleij