From patchwork Mon Dec 18 20:10:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877636 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9vx0qxBz1ydc for ; Tue, 19 Dec 2023 07:11:57 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFJxo-0001Mt-Q6; Mon, 18 Dec 2023 20:11:45 +0000 Received: from mail-mw2nam10on2072.outbound.protection.outlook.com ([40.107.94.72] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFJxR-0001GB-Hf for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:11:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BGNyeQKmbpZV1mbDfELG3PMQQSjf7nQcHQzzARdw36UR9ZS1uBzWsYZ+fIy/1hHytqK6fZRrC/N/2/JR9pn/5pca3EOJUw+k81Y+/7o/Ffu3UHoZkGijiMEHs7LAeZ8oOXm4hOIHUeyxyB06Pa5ubdAWAP58+wKsYAwQpYTOkQ9I+YnVO4cDA0SeXwfQH2lmupjT1g+rlK8a1j7eYFXlTJ5D66prTtk2ljTUiKF7k4prap4/BpwF76e9wIEF8AZUgjDhCsZtqW5WCOOCtFU6zmF90h3oGIbO2UU57DhnuQcIXSLpq+0ZeuQTB/LLDKklYghVr3AZQ+J/pQdXJ7S8Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3zcRB2amBMgw9IZ+j8zbQBWgFh8eWRwQD3zd75AM3h4=; b=NcjCfvlGrqmJNgoFssU5ag1jLdHUkh9M4kcKcetEtkajgDC00qv2wkgp+aIZwsHsw5SIFaFQwqmjsW4F50SsgPmlfA1CQQDhWnkK74/gNzf3CxEYGR7EDR5UxqduQhAHooddNMM+YS3N6+3VfI/0t2BKp8a3eI/4TyOm7No5+z1H4mr8CVcPABYFc2q7CJNfr0vH3hk5k8cgHfRR+zPuGd9Zev1CKM944gQHmHYX2eVF2rswzA0k0P82fptCfWH/3aMIznHxSPW/hGiU7sYJSqHCLg0ILAwZ6rUS0yuUdW3MSAYnO4ImZsHCV9agsPGVrJFagB2mD4XcdmaZcjV4yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from MN2PR17CA0009.namprd17.prod.outlook.com (2603:10b6:208:15e::22) by MW4PR12MB7437.namprd12.prod.outlook.com (2603:10b6:303:21a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.35; Mon, 18 Dec 2023 20:11:17 +0000 Received: from BL6PEPF0001AB4C.namprd04.prod.outlook.com (2603:10b6:208:15e:cafe::95) by MN2PR17CA0009.outlook.office365.com (2603:10b6:208:15e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:11:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by BL6PEPF0001AB4C.mail.protection.outlook.com (10.167.242.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:11:16 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:03 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:02 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:11:02 -0800 From: Liming Sun To: Subject: [PATCH v1 1/7] Revert UBUNTU: SAUCE: mmc: sdhci-of-dwcmshc: Add runtime PM operations for BlueField-3 Date: Mon, 18 Dec 2023 15:10:49 -0500 Message-ID: <7315e47661ea7ae98ccffaee3c4d921c8de7ef07.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4C:EE_|MW4PR12MB7437:EE_ X-MS-Office365-Filtering-Correlation-Id: b64c008e-f8fb-4e68-8a16-08dc00057dd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JtbZoxy0e06R2hWpIC4F6c+Yx2KuIUSJfxZyVX85rH02CefR+CtBhuh7nIE98aZiqs4DeSReleZXzBoIBJE3ZG8Qf3vatf43sejXhAmRnaJeB/2sKmu/E8yPvQ+cI07/VUSBQajF2o6ZJEF2slqkJNNTiTVirwvNO/f7XBiyjuc9cbTYl6WvbSlol+QtrTL+BmW504tEXU+ZpYEzgmH8YnJ8Wutzc8WV5MnEbzcWK/8znCwaDdnD0WFoeOS22TPwjyinHy+gyv0D0rNyB6T84g4k2+jUwJlLnVYkZIx7j5X6s0OoGzx0NO1xSazBQAv+xjAttgns4mFf+C9gVpXboVxDmMlp5lTIZpPeC4BXft4PfuhAgTNrndBO+22CdXZ9o7HRvbs0Fz++0LVPRnQNmItTDGO/4RKsgsCvhEmAs6j9d9YPfoc18HQeze1fLYd8TSPTBEpd5HpFp4BMbZNe0Z4t8vTjx0lGl++nGB5hZcMTG/FYR8G5RaPbglfBWO2Ca7hK7DPfc2pUB/z2jfrcDcZFUU6ENEyl7wEdk0UBL3NdV03qYFj2RaQ+GU2AzrWHyfBcE76zuWKaEH5kokMfxzb4dlx/F4/aP/zQyy4yxvxEX6Zoy9YC+byQie1Rk0LpLeg2fP6iOIWf/sXUYtgxuF4A6gaukujXKgatjygDcnGHhSw54mibKrYLCqz6y8kDFZOZjqeuDtD7lPfoVr9f/hlxcRmWHB0qNNy3rOgYqlDQsuL+dIAMOvf3zAZsebhE5Nxas/o4EB3jwkSgawWxzm5JN4gp8NylnEW1qp1dwdCkDtndYzG3vb3Kt+a+p40N X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(346002)(396003)(376002)(136003)(39860400002)(230922051799003)(186009)(1800799012)(82310400011)(451199024)(64100799003)(40470700004)(36840700001)(46966006)(40460700003)(40480700001)(316002)(426003)(7696005)(336012)(107886003)(2616005)(26005)(6666004)(70206006)(4326008)(54906003)(6916009)(5660300002)(966005)(47076005)(83380400001)(36860700001)(478600001)(86362001)(8936002)(8676002)(41300700001)(7636003)(82740400003)(70586007)(36756003)(356005)(2906002)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:11:16.3916 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b64c008e-f8fb-4e68-8a16-08dc00057dd8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4C.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7437 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , David Thompson Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2046657 This reverts commit 3ec050f4050f804ad65d051796c95c49feb15efa. --- drivers/mmc/host/sdhci-of-dwcmshc.c | 103 +--------------------------- 1 file changed, 1 insertion(+), 102 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 188c5ae7efc5..87a831a752fd 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include @@ -75,22 +74,6 @@ struct dwcmshc_priv { void *priv; /* pointer to SoC private stuff */ }; -/* Last jiffies when entering idle state */ -static uint64_t idle_last_jiffies; - -/* Total jiffies in idle state */ -static uint64_t idle_total_jiffies; - -/* Total idle time */ -static int idle_time; -module_param(idle_time, int, 0444); -MODULE_PARM_DESC(idle_time, "idle time (seconds)"); - -/* The current idle state */ -static int idle_state; -module_param(idle_state, int, 0444); -MODULE_PARM_DESC(idle_state, "idle state (0: not idle, 1: idle)"); - /* * If DMA addr spans 128MB boundary, we split the DMA transfer into two * so that each DMA transfer doesn't exceed the boundary. @@ -474,7 +457,6 @@ static int dwcmshc_probe(struct platform_device *pdev) #ifdef CONFIG_ACPI if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { sdhci_enable_v4_mode(host); - pm_runtime_enable(dev); } #endif @@ -569,90 +551,7 @@ static int dwcmshc_resume(struct device *dev) } #endif -#ifdef CONFIG_PM - -#ifdef CONFIG_ACPI -static void dwcmshc_enable_card_clk(struct sdhci_host *host) -{ - u16 ctrl; - - ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); - ctrl |= SDHCI_CLOCK_CARD_EN; - sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); -} - -static void dwcmshc_disable_card_clk(struct sdhci_host *host) -{ - u16 ctrl; - - ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); - ctrl &= ~SDHCI_CLOCK_CARD_EN; - sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); -} -#endif - -static int dwcmshc_runtime_suspend(struct device *dev) -{ - struct sdhci_host *host = dev_get_drvdata(dev); - const struct sdhci_pltfm_data *pltfm_data; - int ret = 0; - - pltfm_data = device_get_match_data(dev); - if (!pltfm_data) - return -ENODEV; - -#ifdef CONFIG_ACPI - if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { - ret = sdhci_runtime_suspend_host(host); - if (!ret) { - dwcmshc_disable_card_clk(host); - - if (!idle_state) { - idle_state = 1; - idle_last_jiffies = jiffies; - } - } - } -#endif - - return ret; -} - -static int dwcmshc_runtime_resume(struct device *dev) -{ - struct sdhci_host *host = dev_get_drvdata(dev); - const struct sdhci_pltfm_data *pltfm_data; - int ret = 0; - - pltfm_data = device_get_match_data(dev); - if (!pltfm_data) - return -ENODEV; - -#ifdef CONFIG_ACPI - if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { - dwcmshc_enable_card_clk(host); - - if (idle_state) { - idle_state = 0; - idle_total_jiffies = jiffies - idle_last_jiffies; - idle_time += jiffies_to_msecs( - idle_total_jiffies) / 1000; - } - - ret = sdhci_runtime_resume_host(host, 0); - } -#endif - - return ret; -} - -#endif - -static const struct dev_pm_ops dwcmshc_pmops = { - SET_SYSTEM_SLEEP_PM_OPS(dwcmshc_suspend, dwcmshc_resume) - SET_RUNTIME_PM_OPS(dwcmshc_runtime_suspend, - dwcmshc_runtime_resume, NULL) -}; +static SIMPLE_DEV_PM_OPS(dwcmshc_pmops, dwcmshc_suspend, dwcmshc_resume); static struct platform_driver sdhci_dwcmshc_driver = { .driver = { From patchwork Mon Dec 18 20:10:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9vc6p4hz1ydc for ; Tue, 19 Dec 2023 07:11:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFJxW-0001Gy-2c; Mon, 18 Dec 2023 20:11:26 +0000 Received: from mail-mw2nam04on2042.outbound.protection.outlook.com ([40.107.101.42] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFJxO-0001Fm-3U for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:11:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0FslDGAaFawZiI3Lmg5X1dJyRdc3JCFZu1VF3u/+R3/3znlvkzobCD8dMKGK5/xXiUcDPXLE3saShWwSbTVpAk4FBtZxbZng1fa482bKCoBvG9IxR/MzXlhmgrAufhFWMsT3fT9N7GpkDQlyiaJ3fn/IsSPX4yWZOgt9Q0VoA1JTiUp2iXZJTHryfTdmbhMrGHO8qp1YSv0mHbq5fdWcHij3RjPxDd/yN8mlTtgbCHjw2LdCyfu+cRMjDIBoxZT2SFoOPMl9BjKpuxjtthDqozu+AYUImvzxL/7B7SzuZeLerEhvFY6BJHWYnBMVva/3OUkhiUGJpd1SBlYGOlMcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IKfezj2SaV/0OTIo6V92jkdyWczZnPJIjCkXwRetR04=; b=m7IYAgSj4swwzjR3FAq6moBmm5DZ/ajMr9uc42GzDwnlH5BpFrQjjS00CRIm+hlRTVERQDYszotXXtxdzOSikTtQ51z9crS7DHduUdb8+wBMumFgPz+PkXNtT8Ud/XgqFyMRunKntnZaHJ3sImCm0atlHqZX1sYy4aR3n92g6i7hZoaTht70Im2pn0fBQUpCnCWUvcNC3w/IGEXSHrtvRY7IJj6BCUyCqMgY6zK5BRGKI+VAOEedQgArRMDDF3kHNxntDTb5lgXIjcYA0UuYgIV6LvmiYJ0wfm0Zg5p3P9cBmbBzAzC+BberYpAz295PXbEFjvHv0mcFWhNdyf3WKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from CY5PR15CA0098.namprd15.prod.outlook.com (2603:10b6:930:7::7) by PH8PR12MB8429.namprd12.prod.outlook.com (2603:10b6:510:258::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 20:11:13 +0000 Received: from CY4PEPF0000E9D4.namprd03.prod.outlook.com (2603:10b6:930:7:cafe::c3) by CY5PR15CA0098.outlook.office365.com (2603:10b6:930:7::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:11:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by CY4PEPF0000E9D4.mail.protection.outlook.com (10.167.241.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:11:12 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:04 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:04 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:11:04 -0800 From: Liming Sun To: Subject: [PATCH v1 2/7] Revert UBUNTU: SAUCE: mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi Date: Mon, 18 Dec 2023 15:10:50 -0500 Message-ID: <91f64b57d12fbd09733f0e99b68c826681bf6f71.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D4:EE_|PH8PR12MB8429:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ae7bbeb-715c-4fea-7738-08dc00057bb8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rgMoiqrJ7aKN+qZKrm2yN4euzlIG/UitE03haDKkmIY4om7L1y4heassWOYoWPylF3zwBxuM9UwT5tsCi6pPMBSurQZPUV5hzaJz9U2ARDQ/lw2+o24/i30UaXVtbsab/LH4FhntDFGJt46499x82cnfd8XDlUyFUH4z3XzWW13caNL3VDGO15Y+JR1mHjE60D43eFo/yibYJ8yzyHBi2m7TtafzmUYt4fTJ5BMR68XdZ/58MjPUFx5fpUc8T2a+fk6VWEZpheRdaKsHwOisVw5dazfG1YAH6G3jObLfMgG29LUww/tXGRSgnrxX9aepHHpm3z3XQqxKjBpK3EaGFPvad51/jHyvuLTqcwP7mpehYFgHeVeoKle1cT+Db3JMBoOYzUzTortEuXZj/WxTOxQm4nfuJICCz6/y/T+pyAwS0c4xrwCBe2NmcMgDzYsEN00+ImsRXuxDjbtYPR403GY5sDL+NVsnfMs4fkV0ab8T7pOpOTtsIxLrZqRaXJYq4M1g0BdKcaMUgRA6MYXPZRBwhZDnAiP1/tBffs0bHCDJ5l3hBPZcrQCv2cahrq2GPmp789Qwo4hk5SF3gO9DNelFNJIoRVw2b8ZPh8gklQgtgwxFVpKXSl13hv5c4vWDphIxlqrzH5sBxBSfO7MyC5aMcwu64wOgdfZaQh3GbB3C5iLUhIFMbveLBcyEWs4RDnPlymqGvSzFZXSUpNIAqTZfp3JSLHmSyZH+Rg0MHzsdWYHDxvm2hZWtQ3F3s6jKsI3EWw0tSKu0iWphGIgp+6INJ6rUaNVkcT8Qjgzqjfi1Az2vFCLtu0z7HFPJ85Ej X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(136003)(376002)(396003)(230922051799003)(82310400011)(1800799012)(186009)(64100799003)(451199024)(36840700001)(46966006)(40470700004)(83380400001)(2616005)(107886003)(70206006)(6916009)(70586007)(478600001)(316002)(54906003)(966005)(40480700001)(426003)(336012)(26005)(8936002)(4326008)(47076005)(8676002)(7696005)(40460700003)(6666004)(36860700001)(5660300002)(2906002)(4744005)(86362001)(7636003)(82740400003)(356005)(36756003)(41300700001)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:11:12.9353 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae7bbeb-715c-4fea-7738-08dc00057bb8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB8429 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , David Thompson Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2046657 This reverts commit 9c34ae931985c2ab152755503caa5610c1277439. --- drivers/mmc/host/sdhci-of-dwcmshc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 87a831a752fd..b272846a91b7 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -376,7 +376,6 @@ static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = { }, {} }; -MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids); #endif static int dwcmshc_probe(struct platform_device *pdev) From patchwork Mon Dec 18 20:10:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877635 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9vj06ZPz1ydc for ; Tue, 19 Dec 2023 07:11:45 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFJxa-0001I6-Po; Mon, 18 Dec 2023 20:11:31 +0000 Received: from mail-co1nam11on2043.outbound.protection.outlook.com ([40.107.220.43] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFJxO-0001Fo-T5 for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:11:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HyNXgYSMvrMivmXyC07wViKWstqJrOObiyCaYYOdiEV1Q1H6eSDPDHJ/Tdxw5tZc2IgUkfSF+Gy7dvjIvOYNW2TFu98LrsHapgVvqAtHGFFewuJ2WfPpXLTO24UIVzJiuIFY8mcrm1/ZzguDGozbt08qQodVCkKJlAUQ44ikVq0Jyu4df2VFjxzlT3K5Fzb1pgJnsPGil2uXl3bpFLYFpEAQqQSdCGcYwEKMNyDkdaG5kQk0WzsgJC//E7u2tYdweU7Dc+voev3QVmx+1gGxekiaAM0klEP4x97zmx2F/wEAO1BeUmJncCNMMuYZH2UwhfgkdmsyntuX4RkBXWMX/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6YYLJfetgcBN+7L5/1Q3clQjWcTVz/TPiaWuG7OIDII=; b=admPfwYT8wX7jVhnVvOG2iQYW4pjou0ZOUZNAwN/ELdWMw8BGXqmg+wCi4tWPtEiUTL2NLsEmXApQ8xasMLgwJoKQJDYdTmXleM4sjVuKtcTVHt3Pif4XIgIWJ9rABc0HEoreFVTGSrgF0bBk7a7ff37cFw/8VC+GRZeVhG6Cwl2KM5ir7FJMTnC4SARfpDF8txmKDuQRCMkJYA449Gc4+HY73xXCxXOYv6MR5QtTzJ6mYrTiO1z56zexj49VYyApfSyhqpeZruPRkrCK/UjTOi0aXnE7TpQqMKxeaYsxuuM1rvQOjMXU64dnm/E1bpOKK7+nn10100WEWS2GqB3aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from CY8PR19CA0030.namprd19.prod.outlook.com (2603:10b6:930:6::21) by CH3PR12MB7715.namprd12.prod.outlook.com (2603:10b6:610:151::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 20:11:15 +0000 Received: from CY4PEPF0000E9D3.namprd03.prod.outlook.com (2603:10b6:930:6:cafe::35) by CY8PR19CA0030.outlook.office365.com (2603:10b6:930:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:11:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by CY4PEPF0000E9D3.mail.protection.outlook.com (10.167.241.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:11:15 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:06 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:11:06 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:11:05 -0800 From: Liming Sun To: Subject: [PATCH v1 3/7] Revert UBUNTU: SAUCE: sdhci-of-dwcmshc: Enable host V4 support for BlueField-3 SoC Date: Mon, 18 Dec 2023 15:10:51 -0500 Message-ID: <0412a5498a165a8a54c5c2d267dd912b2b1877e9.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D3:EE_|CH3PR12MB7715:EE_ X-MS-Office365-Filtering-Correlation-Id: 75391192-c6cf-4c41-1056-08dc00057cf8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Xcs2LwiQHXQJMTATZHxDK0sDmcYXYmV0AmPU3NgR+WG3xE0EVcGIsPcysHnpuRSCULZvH1CMkAPiyGw8SUZp/yRZ5o12rQNnppAA3idZv6lWyrj2UgNTLv0ZlJfc8XfLu38BBWJn1JSrMAKJdS/b9BrJfsaD50i/FiMyMnca1EvkHF2hj3lv1EQt/98m8mR9FBrqDxRUqH11c6+TBKCCW9LKzqYDxmtRMe26LBk08Xj4/tRgW8T1ByCu2Vav5yDoNHf8fH8Y/a9TvtIwNwgk1sv2GBs4SuUfR72ZGEpNIEyCKuKCP5S9ciCsr5Dy7TTGo0HEJZx2MgixV/UNfYI7bpfXOw58yIWT7X4kqxTPm8Zb46yvW9kRdpiYYLVNirf9FILtA3NdRbHykpBT1cJClZP3nKMLQSGGxH6XfP1ivtxOR7YSLkOgmqiDqLr/fXEbak/dmVJk2hr0YmZLCaPcOjaEYAJ7q195c159KCdqWq3qzbQEKpm4Gjn/nEWFSVu52ArItH3aIM2i7GxqAB5NrYp242XH7GSvzIDr6UMC1hoAGLlHnSnjtPEBMthfhD5DpqK72sHjDwZyK1rxynaXIKTe/Yk8ZvlmsOv2jx51Fq+eznkDq+eU9n9ITRvMfrJZwXwc7LGTBZqgDRjI1vd6z1H/V/9jlM5RFIecoWCR15jqJ/rpGZhfzHpwHKdFBjuyObMP9s9mNI65iiYGUDKTFOgP/jvpN+3p5FSL/ezwnQ1WUSfmNGRCOUuYpFJ2oiVKexp/3skLWJSUpksUBICRvVQKoOfFS6R5bT9iBW+uBTCEXWYCCz1MXDap19DEQ8dU X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(376002)(136003)(346002)(396003)(230922051799003)(186009)(64100799003)(82310400011)(451199024)(1800799012)(40470700004)(46966006)(36840700001)(40480700001)(336012)(426003)(2616005)(107886003)(26005)(40460700003)(82740400003)(356005)(36756003)(7636003)(86362001)(83380400001)(5660300002)(47076005)(7696005)(2906002)(36860700001)(8676002)(4326008)(70586007)(70206006)(54906003)(8936002)(316002)(6916009)(966005)(41300700001)(6666004)(478600001)(4744005)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:11:15.0298 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75391192-c6cf-4c41-1056-08dc00057cf8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D3.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7715 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , David Thompson Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2046657 This reverts commit a1aa43d62f5c39070040ba1949c4019d0c176675. --- drivers/mmc/host/sdhci-of-dwcmshc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index b272846a91b7..c31daf3628fb 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -453,12 +453,6 @@ static int dwcmshc_probe(struct platform_device *pdev) goto err_clk; } -#ifdef CONFIG_ACPI - if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { - sdhci_enable_v4_mode(host); - } -#endif - host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; err = sdhci_add_host(host); From patchwork Mon Dec 18 20:13:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9z22l7nz1ydc for ; Tue, 19 Dec 2023 07:14:38 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFK0U-0002Lf-Ic; Mon, 18 Dec 2023 20:14:30 +0000 Received: from mail-dm6nam10on2055.outbound.protection.outlook.com ([40.107.93.55] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFK0R-0002LX-Ro for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:14:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kT4QqscyzbbuA+Xjk+RoakcZsGsL+g4gCLZH73EN3950SIJAK4fpTlyJBwAmYRJsCjxpU3BQqQwMpcAH/0rhYGK23zRMaTMMP/WxFsJmRc3tZbqQvrCcdM1CoOUkKeulGlL5rIzwth7xHZJYZAuMiaKEM8eP83UWc5xSPw46ruwh4dVo2azJx+hKSMe177nlHit3qG7QgZzwff68ukd4meN+NGkGiz300b6h6vlJKY7/DDSdDZCKwPp0q3hreqPvCCVzbtvzlxjX4RzWksRReHVoModOfmOGkr+mO2p6ee60PycaIr2Wj4a6dv+RNTnlrektVRoXJ2//JM+oVwDYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DwCEM4k3APm3h0VFGcl6lnsPjJANvSGopC/Ahz2WknY=; b=c57x2O9d5bpHEBFVoyYARTKSpiBhvloekp3P6J9FnyBG+Vg+OJ2zE9rDtzCXL8A9WopcoExLnc+BBAJN69mGL34wZUyFVhLPHtRf3QAriGj0VpTLWvMhHrIXsIKc+1zdH9ZcmBRxAzmBsCxB5pBIAq3tOfLYz+njwpuoyEwtdjSRpuvscVA7+RVI2YUMDhNQtNmvFhmoS1oi8akmFL+mll/KtzkX2w3TqDNm2SXvFHZ/BLfJqny24d8vSOJcTDvaEBzUdA/G+2LfZ1u1w6EsTPZfqx4iXnuzzawe7CjIk95WbON/ee/SlnbQgyIsBSPTr+4fHjw3W1/extHmu4pQ9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from PH7PR10CA0016.namprd10.prod.outlook.com (2603:10b6:510:23d::8) by MW4PR12MB8612.namprd12.prod.outlook.com (2603:10b6:303:1ec::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 20:14:22 +0000 Received: from SN1PEPF0002BA4B.namprd03.prod.outlook.com (2603:10b6:510:23d:cafe::90) by PH7PR10CA0016.outlook.office365.com (2603:10b6:510:23d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:14:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF0002BA4B.mail.protection.outlook.com (10.167.242.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:14:21 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:11 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:10 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:14:09 -0800 From: Liming Sun To: Subject: [PATCH v1 4/7] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 SoC Date: Mon, 18 Dec 2023 15:13:32 -0500 Message-ID: <0667acd4d26b029c8ddec385157cb056bc5192c7.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA4B:EE_|MW4PR12MB8612:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bcd9045-fad0-4ed5-42c2-08dc0005ec69 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bML91WNxmpVCp4CZMNJajfnzaXaOyHauNX02yFyPKPz0iR+vlkDZ+pla4BDa0tXzZ8nHXjZLX2quaM2j9gGB9L9AlSmmSZnmC9rvK8jlFtR46Vk9Tc5cwAqOoMRlp/oqqIY91TCwtapRSANYZztBj6EJO4JapfWfxCmuWpYVXdYcuehpMgeu30gEeFSOzsDbTsUVVXu7NNwGC7/3qqevxIkLvud5E2V8RqF2xEVRh1OeqMnQ3UFAJ2WHSiuN6PVYzIYZoe8KX6KqCaHUe8HeJ0W8Fa9i6bJtt3+bPYGdivBKnaJduA+ejcoEvUuAFc/gKrft8plTjOVQY99Jna+GbEKRAOnd8x+3Eb0l4/FbJLFJBLJWAQa0fWB+cBqHjSwQ+gTBoXKc3jyorOgO5oZYINx4I4b6tw0z7Gd0+eibOB5C5DGB1Hbcg11WdWk7bX++M7dtPi2j1W80qD8PnQB89+YNeJdJb3aPuHvxJbMRFow211FvGOYl8fDB6u+PQZeb/ucGi4USvIDDTyZ8jK0j97B47QKTX+uq2zrIXDcC9/5CIloKqtPFftlg9oxeAB9YovMvDuTrkWEclp6l6YTu+oJ8+bd/r7I9dG79TCjDoMmHD2EVemNCcKtd51kD4bagxnHByULUonvlGSVjVa+VwrlHLkXP+jVx4fazhEGVuZw2xF6KPFUjJDriHefyfditLBy9X6NQoxLqx7DA3dlsh0eVsfuwvFiyWA7ml5o10yWIRSLUCsbhgPPj5PRV1yOvwdpU2zD+oe8Br3Wwz7YMktXnNRuZThaNHy5lnDKnQ4ulBM2N2iVTiafj0WnnOk/R X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(136003)(376002)(346002)(39860400002)(230922051799003)(451199024)(1800799012)(64100799003)(82310400011)(186009)(40470700004)(46966006)(36840700001)(26005)(336012)(426003)(7696005)(2616005)(36860700001)(4326008)(47076005)(5660300002)(4744005)(41300700001)(6666004)(2906002)(966005)(8936002)(478600001)(8676002)(316002)(54906003)(6916009)(70586007)(82740400003)(70206006)(86362001)(36756003)(7636003)(356005)(40480700001)(40460700003)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:14:21.9519 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bcd9045-fad0-4ed5-42c2-08dc0005ec69 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4B.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB8612 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Woods , Liming Sun , Ulf Hansson , David Thompson , Adrian Hunter Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be consistent with the default setting in firmware(UEFI). Reviewed-by: David Woods Signed-off-by: Liming Sun Acked-by: Adrian Hunter Link: https://lore.kernel.org/r/990885f566c32ac8e6888ad6b434fb70d1a5d7af.1673460632.git.limings@nvidia.com Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index c31daf3628fb..0adebc46eb46 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -453,6 +453,11 @@ static int dwcmshc_probe(struct platform_device *pdev) goto err_clk; } +#ifdef CONFIG_ACPI + if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) + sdhci_enable_v4_mode(host); +#endif + host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; err = sdhci_add_host(host); From patchwork Mon Dec 18 20:14:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877638 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9zX5LWnz1ydc for ; Tue, 19 Dec 2023 07:15:04 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFK0s-0002SD-QB; Mon, 18 Dec 2023 20:14:54 +0000 Received: from mail-dm6nam11on2050.outbound.protection.outlook.com ([40.107.223.50] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFK0r-0002Rt-3b for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:14:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DKjzzs0BeWz2QENb67DTvrigj2QzBucpP/cUSVONkWNEaww6LX+Im36L2tIwdsa45KANNM8fI9oTUjqr5hUg1dzCsH2U09qEJ67OtB7H94pkgccjl2IXGdnssYazGewyADZ3NS9KADbpS88+Q1lZTVxonG6HZzUndX0a03HsPukIbRDRk5oUDWH+Om/MuwQzTZgpAN07zWkZdTrzqcOCo7Y1NzlMCtxEwCsyZWyu8EmJF6WBT9wWq9zSzrhiDf58ezU7VC/8Inq/kIhJq3B9dcYoAjcFcQ82a+VsT98e/8L8aWVSl1AALjcIU86oCMp88QrdCl3RfvaN5wZW8yBNfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X2ar23Ir3eQZQaNWXtV7IkuWjUT8uF19oG6K1Ze7r6c=; b=GEhDpZtSMEc08cn5dGAVNyixWrczC98k+2EFCd9xniDQSp34Ro+9m+Dk/53bCcvHSBApNMfJ6MEohhXgDnjULYO2zu49nhgBIltMYoyiAezW5AUEHVDqIKOL0LkP+IrBTvBfwq9QqOz9wVKTnvzd1/vS6gPuduQrRhXVerA1USEI5AlrdoCdJvKKuyWCNKOURy4M2WSu0f2bysRs5Qiuy12F/pANy/xNKdoIEcamXB0k/8bQmfwA/DdBKCsXIegpYV1b3U4Yk2nWXfT9yEvCmTcGh6A3oIi92S2ZYdl4joTTs9/QZAbtaQXg8Pw6Mk+DPVwLK8yiNVdktlMFd/5V1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from SN7PR04CA0171.namprd04.prod.outlook.com (2603:10b6:806:125::26) by PH7PR12MB7985.namprd12.prod.outlook.com (2603:10b6:510:27b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 20:14:47 +0000 Received: from SN1PEPF0002BA52.namprd03.prod.outlook.com (2603:10b6:806:125:cafe::71) by SN7PR04CA0171.outlook.office365.com (2603:10b6:806:125::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:14:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF0002BA52.mail.protection.outlook.com (10.167.242.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:14:46 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:34 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:34 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:14:33 -0800 From: Liming Sun To: Subject: [PATCH v1 5/7] mmc: sdhci-of-dwcmshc: add the missing device table IDs for acpi Date: Mon, 18 Dec 2023 15:14:28 -0500 Message-ID: <2792328bb5d0f2d24964416360fe49256921209d.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA52:EE_|PH7PR12MB7985:EE_ X-MS-Office365-Filtering-Correlation-Id: 75ac9b89-f36c-4fc3-37f1-08dc0005fb1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pBAaFZW/+KNUohmJmEROkDyNT0rQGOEKDGuhjC4y4nFyebLN+xXXXOOKL0mnIRO+DiRaFVdP0HU/zxr/a/5+KJnSOqlLYLJSkWyFoYaJnINrrJdcj2SBgeGGbmfhZtDRzDGb7HM3hWK/7VpTGiE8RH1hhQ54a7PCQBwtDCcYuiG3hEPsP9nBV1OyVMVLa58t0529lPq2epjrUVsFfvdkhpRy2FHYr/LvaHPA0G9ASwYWwOBI9K9fqEID0izYmRTfDeF4JsusZrNTKafS3t9YM1g58rTUXeDxlSsKH3APottAJxHtQrWkenU1T97l3x51U0omBWzyFGg+VmVdYgO3QvDGUeFnXd6SyDqD7TqTElciBPgGZWHKm3rAc7V6ImnKsCw+vpB8uNZjdaAYTRVVAmE8HDAnT8oExNCJJCW0vDA4cGAzVdhz9hk/rA0K/b2Ggg1vYp/KYBNu02aFbhUaCYVQTkSsCKB8Aj4itm9OuX5PuZLtNkfudHsVK+OVZhnGnU18GRhwUtNiaS8wJZdVktrwlUho9DEiCTkOAdvBUJ2F1UzGVuxNQouqQ8y5C4mvHMG+gxNBh6dGhBYMakWSYW8Cfc9Mxu135oYHt668yWpl9lgjnOcS9cyNIYDSk56kTkyp9HwS2tQh513cKPNrv28+YRr5fjfSQ1qnkUbPivbp1SxvFbtXHpWjcLJ8dTbo0owzvX7tMnbevn6lddubJaLwdVZq1dBqxltnB2kBZEydJhIOTgGA6+HY2Y2FcG/CSWe0M/Yo8tuCr5XN29n/aS6dOEEoJ2EKQL5b+XonN6Qrxg/7ViUxZK+DwLxN9gJz X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(346002)(376002)(39860400002)(396003)(230922051799003)(451199024)(1800799012)(82310400011)(186009)(64100799003)(46966006)(36840700001)(40470700004)(40460700003)(40480700001)(47076005)(2616005)(86362001)(4744005)(5660300002)(26005)(2906002)(7636003)(356005)(36860700001)(426003)(336012)(82740400003)(7696005)(6666004)(966005)(41300700001)(36756003)(6916009)(478600001)(70586007)(316002)(54906003)(4326008)(70206006)(8676002)(8936002)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:14:46.6153 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75ac9b89-f36c-4fc3-37f1-08dc0005fb1a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA52.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7985 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , Ulf Hansson , David Thompson Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else it won't be loaded automatically when compiled as a kernel module. Reviewed-by: David Thompson Signed-off-by: Liming Sun Link: https://lore.kernel.org/r/f57ad0f8fdf663465bca74467c344dfa305a3199.1675305696.git.limings@nvidia.com Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-of-dwcmshc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 0adebc46eb46..1e78c1e33325 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -376,6 +376,7 @@ static const struct acpi_device_id sdhci_dwcmshc_acpi_ids[] = { }, {} }; +MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids); #endif static int dwcmshc_probe(struct platform_device *pdev) From patchwork Mon Dec 18 20:14:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Sv9zy1n2Zz20H4 for ; Tue, 19 Dec 2023 07:15:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFK1G-0002dn-1u; Mon, 18 Dec 2023 20:15:18 +0000 Received: from mail-bn8nam04on2049.outbound.protection.outlook.com ([40.107.100.49] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFK1C-0002d7-8Z for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:15:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9Fctm4s2h5fTmQtvI9qvH8U6H4LU7bSJgHKo+sBdenTGD54nXrUAb2mUDtDPwbXT4gK0iO9msq0jQe3mtArIT3AfzjrZgU2yIzNMQrzQc99ZZT1o76KhV1zcPWJbQEQzq4IPS0n2EsnT9ohJtg/ZyoLIFal6EWu6Pw8Y03rjGx/PMZkVND3k0m6MuTmoijf1Mt1BMXzQM6zjO5sX8U+FtyrBn3AvIvLdN6HD/HDuki1gtCXegQK5I+MYZ1SKJcMbUrWaUauXnUCLPJZ42ssx0cBzugoWrrdyBrELEtd6MNvV2kW4bnY8AgOngQIMGpPoTQv2TZIjj5vmjbV/GwlMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MMEk7XssOIJiMqVRI7arq6lZhQmL4YQDaeOWI008uTI=; b=S3Nf5oNJCXzlyhsfTgbm5T9NfSA5aVqWULX/tLg3Gn32U92i85eTTy005WHKclYDB5uaiDbIstLPj3AYhxoMmJS22bE4x5FNzHDC2cFBVMomJe21NkE+Ig7UwKVqBe7I9lN0P+nKXM/oyiM8j/N0pxj1FCxnTsh3iV9EthwswOoZpqb352v9nc/DeGHoh1FHqvzGc0o7CSKMMaBIS+uadMGB9ZLmOXeFbDtpJrLT67ys/uDWgI4tldgh3FbvrRAkEdykF1h1WqRhof4QOADfwB1RbJTfHWy6Pg3cpodBTE1omJiyC985BuUTPmsZr745PCBO1rgceyUHIq90zwf4uw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from CY5PR03CA0014.namprd03.prod.outlook.com (2603:10b6:930:8::40) by SN7PR12MB7107.namprd12.prod.outlook.com (2603:10b6:806:2a2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 20:15:08 +0000 Received: from CY4PEPF0000E9D2.namprd03.prod.outlook.com (2603:10b6:930:8:cafe::df) by CY5PR03CA0014.outlook.office365.com (2603:10b6:930:8::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37 via Frontend Transport; Mon, 18 Dec 2023 20:15:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by CY4PEPF0000E9D2.mail.protection.outlook.com (10.167.241.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:15:07 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:59 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:14:59 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:14:58 -0800 From: Liming Sun To: Subject: [PATCH v1 6/7] mmc: sdhci-of-dwcmshc: Add error handling in dwcmshc_resume Date: Mon, 18 Dec 2023 15:14:56 -0500 Message-ID: <5f54bda2e6031da9c59ea2af674dae4a85b3599b.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D2:EE_|SN7PR12MB7107:EE_ X-MS-Office365-Filtering-Correlation-Id: a6753977-fffe-48c4-27da-08dc000607bf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q2J2lYJTCifIr+0thwe2sbbn/ExU3rcRbeYnpQkaAexGFLuZb2oqD6FX4UhHQ1mNkF91F7EYMflf9RoB8E2QlpsOYuqMd4/U99qgcvfqUZTCBudjsGE4ZT1bQiiQ9CMBZjZwmB1f9VXbV4FqwPT1I98dQs7OonnCuFjcty9lyvzUXfhuxZd92jYt8COpK1qk36BCNcxf1GgBrRgT/T1AqsGoqfEOfExott0V0LcjO7SMLJ7MH+Ic1pTOiEIs5/AK1PLryfhDOAxkdYH7vMLYbPbLEhsjDKY8ST99UaxLzGjtpIEml9UCTkUqhzJS0qM6BSYgLXeWCrzOK45/fGgmFolqUsSLZquEuE1CfCiyazW+WGJiXJ1k63Sq8mjFVMxtp7pEnb2SMl4b2u4BQLFb0SixLM3pgwr0t2n47PFiTL1xaukzoPaERcERCL3xOdCOES4BtayNHcR1tumf45A7nrz1Kd6xQJ9kTh8ZiH8Q3A7W+1lkMFIkbwtR+Wp8a+woPTsflCVtO/nqNHthZyDkOk8l+JSG+pM5RATBRE752WWDf1DC81YfkY/XiAEovklyWdoFX90dXH69fr36EyuhOBn6GZmwLV8EhE9AK+6+aTHznZUd5uQKHSJFMv0iW3TWeCnuN94h0LBT7gwrnW5RIGhOusSFN6YpJmZFH5vusrEjdZOfOryzXe7G9FVJIHWkUsXrZVkVYupNjWWvqwVjrZ/plitaXKsZNXMG3bCtEkz20IHjIa7KoHNn4fWf7E2IHbqfreTwGWzyYv6RH5IWWpYFBYtzvBlTHbuYegTRuRBpQgvtwUAN3YiJz4m91c77 X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(376002)(39860400002)(346002)(136003)(396003)(230922051799003)(1800799012)(451199024)(186009)(82310400011)(64100799003)(40470700004)(46966006)(36840700001)(40460700003)(426003)(336012)(83380400001)(47076005)(2616005)(478600001)(26005)(8676002)(36860700001)(54906003)(5660300002)(2906002)(8936002)(316002)(4326008)(41300700001)(70206006)(966005)(6916009)(7696005)(70586007)(36756003)(7636003)(356005)(82740400003)(86362001)(40480700001)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:15:07.8602 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6753977-fffe-48c4-27da-08dc000607bf X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D2.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7107 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , Ulf Hansson , David Thompson , Adrian Hunter Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" This commit adds handling in dwcmshc_resume() for different error cases. Signed-off-by: Liming Sun Acked-by: Adrian Hunter Link: https://lore.kernel.org/r/20230822195929.168552-1-limings@nvidia.com Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-of-dwcmshc.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index 1e78c1e33325..bb0fe18be5dc 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -536,17 +536,32 @@ static int dwcmshc_resume(struct device *dev) if (!IS_ERR(priv->bus_clk)) { ret = clk_prepare_enable(priv->bus_clk); if (ret) - return ret; + goto disable_clk; } if (rk_priv) { ret = clk_bulk_prepare_enable(RK35xx_MAX_CLKS, rk_priv->rockchip_clks); if (ret) - return ret; + goto disable_bus_clk; } - return sdhci_resume_host(host); + ret = sdhci_resume_host(host); + if (ret) + goto disable_rockchip_clks; + + return 0; + +disable_rockchip_clks: + if (rk_priv) + clk_bulk_disable_unprepare(RK35xx_MAX_CLKS, + rk_priv->rockchip_clks); +disable_bus_clk: + if (!IS_ERR(priv->bus_clk)) + clk_disable_unprepare(priv->bus_clk); +disable_clk: + clk_disable_unprepare(pltfm_host->clk); + return ret; } #endif From patchwork Mon Dec 18 20:15:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1877640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SvB0W0WrNz20H4 for ; Tue, 19 Dec 2023 07:15:55 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rFK1i-0002pS-LX; Mon, 18 Dec 2023 20:15:46 +0000 Received: from mail-co1nam11on2066.outbound.protection.outlook.com ([40.107.220.66] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rFK1U-0002lw-Bm for kernel-team@lists.ubuntu.com; Mon, 18 Dec 2023 20:15:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWtIUp51bonltYKkx1S7u3Uyx+ZbKcaNs0Pawq5QbcmSCgVHc+A7rNv+CES32GokpB2ygXhnKlCckZrpVSZ1EULynumsT8OxA4/lwaL3BXlJmYwDxRzvuwej78jjokxDNTTx4MDXAQs3j73bmXylogYtdA6VgHHzu32NKVVO3Wd92CcUAC2y+oyEKkrqz5Rje19YXuDZNQT6Ey1/Crbs3NH2yklzswhfMnUotJXjNNR889ZeOufOogKHBfWydBDRgBuZEGM0zKUhX6lEieXEfabKXjRp8wJhbf2KexzmE7vnQr13sHiiK5sU2ZL18hnRmNm3uh2c90HhvFeEGHnePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5mGaH8kYHgtXpptODU3B5sJ9q4vaLLxiSF0/6YAHFjU=; b=K5PFY7np4uHbds1AyKS/ntxige3RVQoDJKpSPlm762p3VxIpo0EUbgSQo6JtG9SCWxRQK3wREhCZeI1OX9PhcEPMYRTtK2EnCP0QABME6W0fqNIUKg1nthAVzv6b2xxl2MyxL21owqoH3VBELdpDV+t+Fxs43e2akhlJ5tfxpPgwKJ6mYuk0ItdI74O83h08Pn/Ftn29IzphTftYbrIuBWVSlutoZHFm6NUVkLzZEZIzNT7NPBbyH4ZYcptiGFYDbHo+GNe7WS4uNcSbZx/puqZldpzwRT+uukDpN83UFushbQ2J46nsellv1gE8AiSy81o9Vn2n8B0yQQYGsszDsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from DM6PR12CA0015.namprd12.prod.outlook.com (2603:10b6:5:1c0::28) by BL3PR12MB6474.namprd12.prod.outlook.com (2603:10b6:208:3ba::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 20:15:27 +0000 Received: from DS1PEPF0001708F.namprd03.prod.outlook.com (2603:10b6:5:1c0:cafe::43) by DM6PR12CA0015.outlook.office365.com (2603:10b6:5:1c0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Mon, 18 Dec 2023 20:15:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0001708F.mail.protection.outlook.com (10.167.17.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 20:15:27 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:15:12 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 18 Dec 2023 12:15:12 -0800 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 18 Dec 2023 12:15:11 -0800 From: Liming Sun To: Subject: [PATCH v1 7/7] mmc: sdhci-of-dwcmshc: Add runtime PM operations Date: Mon, 18 Dec 2023 15:15:10 -0500 Message-ID: <592028b0bcc3b292c35888473085eb100a9476fb.1702924774.git.limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001708F:EE_|BL3PR12MB6474:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f6ae64f-90cf-4791-3172-08dc0006133c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5nFmOZ4r6CCK/hFtPpJQfypAXPSD7mGNEGO+44cXFtC0ep8NWsQ4rEFuU1hDdCRUuQJF20SJyz3kpPm3xl/ypbh3EYS+pF9t5BqgxaGeLp8bhqkUE4AEOjYA7VweDLfYE08WLujDIoG7i8nauDUq1dPbliyTTixyUVEi+/0z2s8QHIVTHhdpoIbaaIyoMAHsurnykF8OO/YnAOKlmLiMLLuFBDOTLU7UbaD9qWXHtaokeCf81sTwLm6N0da0iHU6q7K8PlasVuc5qV4apGa0C5fyRrqfkBJAsDe7PFMUsms3orne5z6IqT8T0L+la3Xed+LRJIQFKGtL6UhKR+St9rt+pY8y9JHQAgKTS8euturQZ9oqnPaQJPxIxfC7cvy0RG5HiBcjbJaPl1BfNCoySgRPbUHatOHl+Pfrw4e7sJ3zaamMrAEBsg402jxpYPLaYvfWDAcdyNigDg+7hA8v5KbG1Bt9/ZuirXkJBR0UgT1PXRLLhMVp5paJ+PFfXgTGejsqH5KHilsnOXpfCRDd9mWomhD8cWmzwz1lbbdob4FwLicXgB9PiHObO5C1UZDfrVCPHXy9+ZxMw9/fgdiXvPUpDhrdtp/Bhz0uVB7I9u2Xgn+p6F/sYf+nx8UntVC2W6JpKc/gpNdlg33Fyospg793cXTIBN6xOo8chNd+6/PfDvuz6mZ44GsR+Ut2FXsAE75TIEodu5lBhyPS65UdnUc0z4LtBnmjI+MXnzaMElyImh1zOX6b5KMOzzbHojw+AGI8pSZY6GZY28DZLk3a4vOkIgSTAVPoQJ1pXQpw+ZRchRGhojD4ulJ5IuL8QG4V X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(136003)(346002)(376002)(396003)(39860400002)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(82310400011)(40470700004)(46966006)(36840700001)(82740400003)(356005)(2906002)(7636003)(40460700003)(36756003)(41300700001)(86362001)(70586007)(54906003)(316002)(70206006)(6916009)(83380400001)(336012)(426003)(40480700001)(2616005)(966005)(478600001)(26005)(36860700001)(5660300002)(8936002)(8676002)(4326008)(7696005)(47076005)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 20:15:27.1033 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f6ae64f-90cf-4791-3172-08dc0006133c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0001708F.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6474 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Sun , Ulf Hansson , David Thompson , Adrian Hunter Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" This commit implements the runtime PM operations to disable eMMC card clock when idle. Reviewed-by: David Thompson Signed-off-by: Liming Sun Acked-by: Adrian Hunter Link: https://lore.kernel.org/r/20230822195929.168552-2-limings@nvidia.com Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-of-dwcmshc.c | 73 +++++++++++++++++++++++++++-- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index bb0fe18be5dc..689a297c10ca 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #include @@ -461,12 +463,27 @@ static int dwcmshc_probe(struct platform_device *pdev) host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; - err = sdhci_add_host(host); + pm_runtime_get_noresume(dev); + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + + err = sdhci_setup_host(host); if (err) - goto err_clk; + goto err_rpm; + + err = __sdhci_add_host(host); + if (err) + goto err_setup_host; + + pm_runtime_put(dev); return 0; +err_setup_host: + sdhci_cleanup_host(host); +err_rpm: + pm_runtime_disable(dev); + pm_runtime_put_noidle(dev); err_clk: clk_disable_unprepare(pltfm_host->clk); clk_disable_unprepare(priv->bus_clk); @@ -506,6 +523,8 @@ static int dwcmshc_suspend(struct device *dev) struct rk35xx_priv *rk_priv = priv->priv; int ret; + pm_runtime_resume(dev); + ret = sdhci_suspend_host(host); if (ret) return ret; @@ -565,7 +584,55 @@ static int dwcmshc_resume(struct device *dev) } #endif -static SIMPLE_DEV_PM_OPS(dwcmshc_pmops, dwcmshc_suspend, dwcmshc_resume); +#ifdef CONFIG_PM + +static void dwcmshc_enable_card_clk(struct sdhci_host *host) +{ + u16 ctrl; + + ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); + if ((ctrl & SDHCI_CLOCK_INT_EN) && !(ctrl & SDHCI_CLOCK_CARD_EN)) { + ctrl |= SDHCI_CLOCK_CARD_EN; + sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); + } +} + +static void dwcmshc_disable_card_clk(struct sdhci_host *host) +{ + u16 ctrl; + + ctrl = sdhci_readw(host, SDHCI_CLOCK_CONTROL); + if (ctrl & SDHCI_CLOCK_CARD_EN) { + ctrl &= ~SDHCI_CLOCK_CARD_EN; + sdhci_writew(host, ctrl, SDHCI_CLOCK_CONTROL); + } +} + +static int dwcmshc_runtime_suspend(struct device *dev) +{ + struct sdhci_host *host = dev_get_drvdata(dev); + + dwcmshc_disable_card_clk(host); + + return 0; +} + +static int dwcmshc_runtime_resume(struct device *dev) +{ + struct sdhci_host *host = dev_get_drvdata(dev); + + dwcmshc_enable_card_clk(host); + + return 0; +} + +#endif + +static const struct dev_pm_ops dwcmshc_pmops = { + SET_SYSTEM_SLEEP_PM_OPS(dwcmshc_suspend, dwcmshc_resume) + SET_RUNTIME_PM_OPS(dwcmshc_runtime_suspend, + dwcmshc_runtime_resume, NULL) +}; static struct platform_driver sdhci_dwcmshc_driver = { .driver = {