Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348AbcL2DCG (ORCPT ); Wed, 28 Dec 2016 22:02:06 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:39741 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177AbcL2DCE (ORCPT ); Wed, 28 Dec 2016 22:02:04 -0500 X-AuditID: b6c32a2c-f79ad6d000007a0b-97-58647caa47de Subject: Re: [PATCH] Revert "mmc: dw_mmc-rockchip: add runtime PM support" To: Randy Li , linux-mmc@vger.kernel.org Cc: shawn.lin@rock-chips.com, randy.li@rock-chips.com, ulf.hansson@linaro.org, heiko@sntech.de, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Jaehoon Chung Message-id: Date: Thu, 29 Dec 2016 12:02:01 +0900 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <1482939288-14950-1-git-send-email-ayaka@soulik.info> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCJsWRmVeSWpSXmKPExsWy7bCmlu6qmpQIg6Yl7Bav7v5itPj/6DWr xabH11gtLu+aw2Zx5H8/o8WnB/+ZLRZt28ZkcefJelaL42vDHTg97lzbw+axeUm9x99Z+1k8 tl+bx+zRfHc6q8fnTXIBbFGpNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJWiDQ2N9AwNzPWMjIz0 TIxjrYxMgUoSUjO6Xx1kLHgnVnFn7S2mBsYXQl2MnBwSAiYS05YdYYGwxSQu3FvP1sXIxSEk sJRRYv6bSewgCSGBdiaJnTN0YRpe7DvLCFE0h1Fi6Yz77BDOPUaJy/d/sIJUCQt4SSya+Yyp i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xShxu38jG0iCTUBHYvu340wgNq+AncSGm/tYQWwWAVWJa1MaGUHmiAqESTxv dIIoEZT4MfkeC4jNKeAk8a/tCitICbOAnsT9i1ogYWYBeYnNa94yT2AEuhGhYxZC1SwkVQsY mVcxSqQWJBcUJ6XnGuWllusVJ+YWl+al6yXn525iBMfdM+kdjId3uR9iFOBgVOLhPaGQEiHE mlhWXJl7iFGCg1lJhHdvBVCINyWxsiq1KD++qDQntfgQoynQFxOZpUST84EpIa8k3tDE3MTc 2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQimD4mDk6pBsaJfrlM56RFOH9N/MUeWvjpqNaq lw5ea/aqdFy0M2TP+nfD7/Z308a5lovUNFp752+/e8CybOUpvsLyd4t3JK2/77lmis7SaUzL ZLQefSjO1r9xp9JMtzuo8H6QHY9+f8rjJ4rWLiJlwSVBmU1PAz/I5Cgsf3Wq+LPdjd3ZPEbV 2y/sKLawilFiKc5INNRiLipOBAA5zMXj0QIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161229030201epcas5p477aedb9fdfdfeac052bb3b994376d0c6 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20161228153516epcas2p253c6bc0371ab0df464573b63218795ef X-RootMTR: 20161228153516epcas2p253c6bc0371ab0df464573b63218795ef References: <1482939288-14950-1-git-send-email-ayaka@soulik.info> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2830 Lines: 94 Hi Randy, On 12/29/2016 12:34 AM, Randy Li wrote: > This reverts commit f90142683f04bcb0729bf0df67a5e29562b725b9. > It is reported that making RK3288 can't boot from eMMC/MMC. Could you explain in more detail? As you mentioned, this patch is making that RK3288 can't boot..then why? Good way should be that finds the main reason and fixes it. Not just revert. Best Regards, Jaehoon Chung > > Signed-off-by: Randy Li > --- > drivers/mmc/host/dw_mmc-rockchip.c | 41 +++----------------------------------- > 1 file changed, 3 insertions(+), 38 deletions(-) > > diff --git a/drivers/mmc/host/dw_mmc-rockchip.c b/drivers/mmc/host/dw_mmc-rockchip.c > index 9a46e46..3189234 100644 > --- a/drivers/mmc/host/dw_mmc-rockchip.c > +++ b/drivers/mmc/host/dw_mmc-rockchip.c > @@ -14,7 +14,6 @@ > #include > #include > #include > -#include > #include > > #include "dw_mmc.h" > @@ -327,7 +326,6 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev) > { > const struct dw_mci_drv_data *drv_data; > const struct of_device_id *match; > - int ret; > > if (!pdev->dev.of_node) > return -ENODEV; > @@ -335,49 +333,16 @@ static int dw_mci_rockchip_probe(struct platform_device *pdev) > match = of_match_node(dw_mci_rockchip_match, pdev->dev.of_node); > drv_data = match->data; > > - pm_runtime_get_noresume(&pdev->dev); > - pm_runtime_set_active(&pdev->dev); > - pm_runtime_enable(&pdev->dev); > - pm_runtime_set_autosuspend_delay(&pdev->dev, 50); > - pm_runtime_use_autosuspend(&pdev->dev); > - > - ret = dw_mci_pltfm_register(pdev, drv_data); > - if (ret) { > - pm_runtime_disable(&pdev->dev); > - pm_runtime_set_suspended(&pdev->dev); > - pm_runtime_put_noidle(&pdev->dev); > - return ret; > - } > - > - pm_runtime_put_autosuspend(&pdev->dev); > - > - return 0; > + return dw_mci_pltfm_register(pdev, drv_data); > } > > -static int dw_mci_rockchip_remove(struct platform_device *pdev) > -{ > - pm_runtime_get_sync(&pdev->dev); > - pm_runtime_disable(&pdev->dev); > - pm_runtime_put_noidle(&pdev->dev); > - > - return dw_mci_pltfm_remove(pdev); > -} > - > -static const struct dev_pm_ops dw_mci_rockchip_dev_pm_ops = { > - SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, > - pm_runtime_force_resume) > - SET_RUNTIME_PM_OPS(dw_mci_runtime_suspend, > - dw_mci_runtime_resume, > - NULL) > -}; > - > static struct platform_driver dw_mci_rockchip_pltfm_driver = { > .probe = dw_mci_rockchip_probe, > - .remove = dw_mci_rockchip_remove, > + .remove = dw_mci_pltfm_remove, > .driver = { > .name = "dwmmc_rockchip", > .of_match_table = dw_mci_rockchip_match, > - .pm = &dw_mci_rockchip_dev_pm_ops, > + .pm = &dw_mci_pltfm_pmops, > }, > }; > >