Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06324C433F5 for ; Fri, 22 Apr 2022 17:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=D/sI6KiA6WFhqi/PjYCxqjNoiHBO6e0XNLjhyQ2Bnks=; b=PcnR2IYK+cDpZR o2506m9L9Hz8z+9j2e2dGzfgZPj2uLjtpRuZVzvRZ94qpx3LI53cBGhfsZ+27E/AwQ/dC0SYNVxiL KBfHOYytSGSXXdSKW95l8Zvte/m0eLw9kPb0qg+RdBX+H2+HW/VFlCPhBf/EcQssmx9fc2Vy2yghl +LBkfXhmhVjCeBTxlytSiKJqeBAXl9TUE5MGbLcAETbknROyL29dqBNMQOnXBIA9DvXI3bjdQZqoq wxzX5AWH97o92z5f7fy91BRxOYznEvo2e0OVG4kQOCthLdNPX6KnmWvyeTTf8DtCmgukdf0FfWzYr SpzcawVgbfaLWOs8nutA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhwyN-001j2u-Fc; Fri, 22 Apr 2022 17:21:36 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhwrS-001frV-QY for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 17:14:28 +0000 Received: by mail-pl1-x62b.google.com with SMTP id n8so12253524plh.1 for ; Fri, 22 Apr 2022 10:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=lAqkZvINpgNz8/aD0yPnpAot6tZ2geN0RWeM0UzjlI8=; b=UL4sGjsKtItvqT6/gH3WoIcqP63X57bdRKAq3k7e9xfGhz/lzR7MTzjo8Zc+SkcM97 qgSoVtKPJsXPmwZsctAlVx2f2k9vGWllbxGSwy640oF7Pi5++MzpcK7/1zFOiBbI4WHn R13LypCLRiGNq7sJ0S1qT+8HRYjmJgO4snQSs1k7jvsFtePhImB61Z4h96LURZZj65Mw l0ibe4aRfMycih9LI8toV4dhPmyUJGDhdsOAaXa/JkyQuE5FIH4sUqfivnCNxiQLafrf bpHP9QvFMspYARGpp3EHa7QSnojLYiMPk1UtMoMwJSbuk208GuEPiQCjR37e+X2GJ2mP V7Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lAqkZvINpgNz8/aD0yPnpAot6tZ2geN0RWeM0UzjlI8=; b=LxsEZba5nJ6pdtmucQ8pPiZh+MNJgwB5riHhnVAAlK4a5+CI4ySWZ/XUaaBAdBYdgp e6AX761qfOnFoFPaA7pO1jb9PBYLM+J/yx4O58u6CbhC3G1vuJfmq+EPxRLVHdIlzvya NRvnVo/U/mAQyvMZvyRNFs81SZlqTA+2NRYarSskIhRvuNfpbAOp2bGx7S3JxEAvLYRp DB4vDtmybrToK2X3qvvibXSvuZQeHeBfs4KkVg5Ir/jTi+pK2CdS93rIVQz8qhBFEQIS QCGxFYYwMv2VWQk1teq3ITIQ2LkuF09tA+/lVE3IazdDUlMjcDy8RX3Qib5vROIqeOGT 1Row== X-Gm-Message-State: AOAM532ZQpvpUdN8ZeloY3TiJ+rTu12xM7obP9zqm6cFfpF1XbBv0ZY+ NhyVMvmlDN/aPKSOznvbj+k= X-Google-Smtp-Source: ABdhPJxb9NL+GJqHE1pa/S+qUMK1JNobr/j1j23uv7kEHBkHtIZoiZJMBlWACpzZNwsjvjY7YiexQg== X-Received: by 2002:a17:902:b10c:b0:154:a3b5:b33a with SMTP id q12-20020a170902b10c00b00154a3b5b33amr5491418plr.3.1650647663605; Fri, 22 Apr 2022 10:14:23 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id b13-20020a056a00114d00b004c122b90703sm3188794pfm.27.2022.04.22.10.14.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Apr 2022 10:14:23 -0700 (PDT) Message-ID: <767923aa-caf6-dea2-1504-2a15058df5e7@gmail.com> Date: Fri, 22 Apr 2022 10:14:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 1/5] mmc: sdhci-brcmstb: "mmc1: Internal clock never stabilised." seen on 72113 Content-Language: en-US To: Kamal Dasu , ulf.hansson@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, alcooperx@gmail.com Cc: f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, adrian.hunter@intel.com, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220421182803.6495-1-kdasu.kdev@gmail.com> <20220421182803.6495-2-kdasu.kdev@gmail.com> From: Florian Fainelli In-Reply-To: <20220421182803.6495-2-kdasu.kdev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_101426_926704_4CA2058C X-CRM114-Status: GOOD ( 18.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/21/22 11:27, Kamal Dasu wrote: > From: Al Cooper > > The problem is in the .shutdown callback that was added to the > sdhci-iproc and sdhci-brcmstb drivers to save power in S5. The > shutdown callback will just call the sdhci_pltfm_suspend() function > to suspend the lower level driver and then stop the sdhci system > clock. The problem is that in some cases there can be a worker > thread in the "system_freezable_wq" work queue that is scanning > for a device every second. In normal system suspend, this queue > is suspended before the driver suspend is called. In shutdown the > queue is not suspended and the thread my run after we stop the > sdhci clock in the shutdown callback which will cause the "clock > never stabilised" error. The solution will be to have the shutdown > callback cancel the worker thread before calling suspend (and > stopping the sdhci clock). > > NOTE: This is only happening on systems with the Legacy RPi SDIO > core because that's the only controller that doesn't have the > presence signal and needs to use a worker thread to do a 1 second > poll loop. > > Fixes: 5b191dcba719 ("mmc: sdhci-brcmstb: Fix mmc timeout errors on S5 suspend") > Signed-off-by: Al Cooper > Signed-off-by: Kamal Dasu Acked-by: Florian Fainelli -- Florian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel