Message ID | 20240103192755.217183-7-limings@nvidia.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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 4T50GM5VMPz23d9 for <incoming@patchwork.ozlabs.org>; Thu, 4 Jan 2024 06:31: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 <kernel-team-bounces@lists.ubuntu.com>) id 1rL6xt-0003b6-Nr; Wed, 03 Jan 2024 19:31:45 +0000 Received: from mail-dm3nam02on2046.outbound.protection.outlook.com ([40.107.95.46] helo=NAM02-DM3-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 <limings@nvidia.com>) id 1rL6v5-0002Z1-GV for kernel-team@lists.ubuntu.com; Wed, 03 Jan 2024 19:28:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DnL3zbtutTQ2/pAYHetIp6IzqoShzb0nITwfW+t0ReeqNUo+lw0cV4WiepmT4MM8yJ+gxPtRtEcyHk1oFnJMj9Iz99YW8g6syzrWKgI24FqYzpnGPCweKSp9I8LWVVqRNbHTpS8vydSG6uRg91PY7D5/wPMw0Njof/jhHXx4lJuw1g/bvZ24uHxcGQSSSHf/74LQX8zC85VyHV838BZ9pFBh9W4eUKlkXbqdvgsKbHBM5d201/t3WjfOSIxihNdP9TXmsAIDPtnSzhSnJ15wFVxHksAUKibXLy6jrpS9WfJnbtKSFXWusBaAtw1BTPGdYsyJlNDCzdowv4qrD+o2AA== 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=4NoDOym8W1BSjRmR82uC3DEC7d5HEUOCgtySiDLR5jk=; b=JDgme3CqAhnNZeLe1xPmRUKrSTj26LYbScZI1q8+JvL8pEruH0Oba0tm5L+/3rMOa7Wg14gGolfrOd1fQjPG3B96rsr8FV1Vol4aWClQnaizf+HmC2dCd12v5YZhakeRmHkgxDq/B96iqzNunAs9pOYowHGvIqogYuf7zJE9PjsgYDCJUaiTv0+dEVlsezPzkq6gNx1U70u8kCAr8jjMW9Ot07LVWJ/HS5EYPVSGFJcYJFOxUjJf6qPehVdy0SzKqGEi+hdyElZYZgN9xCUrPkwBHRZKpLRYuAQWdMP8O7UijfN2Q75eqt8i2B8SaVqygOYTmYioRL0JErr/mP+goA== 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 MW4PR03CA0103.namprd03.prod.outlook.com (2603:10b6:303:b7::18) by CH3PR12MB9251.namprd12.prod.outlook.com (2603:10b6:610:1bd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Wed, 3 Jan 2024 19:28:48 +0000 Received: from CO1PEPF000042A7.namprd03.prod.outlook.com (2603:10b6:303:b7:cafe::28) by MW4PR03CA0103.outlook.office365.com (2603:10b6:303:b7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13 via Frontend Transport; Wed, 3 Jan 2024 19:28:48 +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 CO1PEPF000042A7.mail.protection.outlook.com (10.167.243.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.9 via Frontend Transport; Wed, 3 Jan 2024 19:28:47 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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; Wed, 3 Jan 2024 11:28:32 -0800 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 3 Jan 2024 11:28:32 -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; Wed, 3 Jan 2024 11:28:31 -0800 From: Liming Sun <limings@nvidia.com> To: <kernel-team@lists.ubuntu.com> Subject: [SRU][J:linux-bluefield][PATCH v5 6/7] mmc: sdhci-of-dwcmshc: Add error handling in dwcmshc_resume Date: Wed, 3 Jan 2024 14:27:54 -0500 Message-ID: <20240103192755.217183-7-limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20240103192755.217183-1-limings@nvidia.com> References: <20240103192755.217183-1-limings@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042A7:EE_|CH3PR12MB9251:EE_ X-MS-Office365-Filtering-Correlation-Id: 63b6fcfd-7d6e-4dd5-0fbb-08dc0c92355e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h7+P9tVW9bwKAyAoEIKePQJi5sQSuiG0oZ2OWb9Otw2bPhBwsjK/VYTUM/RgVrNAm394tD5wbfdrCGzkulLCSRzMUesBiU/c72tnj+LMtzIdsX2adxkHO36PYXpAAucTpDAXCXgGdN8jq0DZqHTkeNLwiaYSOWc9S+pLQNjuFLw0La1No0mp/DMxUJD8K4WDeW42+mGK/THK3ULUgNTNHmfTvlFBKYcB5SqUR5zucI7sCXTUv33dbHVpuIyrIxGew/28JU7DMs4EPngfGrumojtjfl0NKWUX3Ic+G3L6JX+rN83VclKjAmE2hDCX3qWQO/KTm/L1x0ucKok9yrjPdyYzTN0ERTF6QQdJybOMVqlHufbm4ijNrYLep7yDr1jXx504UUxNueYarPHUUONpKwe/9Noi+IRqLWn44vHU1LByGW0/N4m016/9aTmV9PBcGRqpzdjrJiihg2xSDkwXNya6D1zkPRW9iOytw4IePcxp07Ohvm13kUjHVsQTfGJqKXYUezQ0dcZZbkCwUHKq6q5AnvG4odTXw3g3NSEQhu1SnvTU66kPW91IWnebb5LI7h/TWgCp/56xYSSzi3b+Y0Jo5WMsQwQ5YajETNua9D867K9OjCK/0XrVVAq4w2mlQnXSl2vH2hoS902MzMGL5k7NRgQaRzp4K/ATEMezRu7SVRG4wOYyd7V/XbyhHMJVm0BW+JvUPkSz1jbtPMPYCs71UcB1bcfzlGTOrYi0q7eFpyeD/iqMxIQd62QtuxF56j6CSYACSuEEJar0ATlala1+GeFiaVlZT+VDAxYPmbWL4e0l6kB0scCVl2uFrwW8 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)(39860400002)(346002)(396003)(376002)(230922051799003)(82310400011)(64100799003)(1800799012)(186009)(451199024)(46966006)(36840700001)(40470700004)(40460700003)(40480700001)(426003)(1076003)(336012)(83380400001)(26005)(36756003)(86362001)(7636003)(82740400003)(356005)(6666004)(8676002)(47076005)(8936002)(4326008)(5660300002)(2616005)(54906003)(36860700001)(70586007)(316002)(6916009)(41300700001)(2906002)(966005)(70206006)(478600001)(7696005)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 19:28:47.8945 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63b6fcfd-7d6e-4dd5-0fbb-08dc0c92355e 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: CO1PEPF000042A7.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9251 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Cc: Liming Sun <limings@nvidia.com>, Ulf Hansson <ulf.hansson@linaro.org>, David Thompson <davthompson@nvidia.com>, Adrian Hunter <adrian.hunter@intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
mmc: sdhci-of-dwcmshc: Replace sauce patches with upstream commits
|
expand
|
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