Message ID | 20240103160659.144149-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 4T4vn51mwXz1ydb for <incoming@patchwork.ozlabs.org>; Thu, 4 Jan 2024 03:09: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 <kernel-team-bounces@lists.ubuntu.com>) id 1rL3oG-0002aB-0y; Wed, 03 Jan 2024 16:09:36 +0000 Received: from mail-mw2nam10on2044.outbound.protection.outlook.com ([40.107.94.44] 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 <limings@nvidia.com>) id 1rL3ma-0001cx-9Y for kernel-team@lists.ubuntu.com; Wed, 03 Jan 2024 16:07:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i78ikLdP1qPWcf8grWU9lAseZHuZX9AanQoUP4KepxdwJ0SuZ8M8/35noDN73kv25iO9KT3OQBosaC3Bihid1Bq5YcPLZ/13FbuGlTWQo2JzdiepP22dCx7SBY/L8i01oGin9sic51PmZyl0V0/zciP31tNjp4IaRHi30xGwcRr7q4hzblA5Sl2U6KPaMkLdc/Pv62JSziwnV457DYmT40ZJyUDehTEZRcl2hQlimkTDkxGyzDvzMUzidOvmUkFHpsU7gdZJE64vX4A3iy7JL494PHWOi7Ottn2AEUxlkxcNuOF9O7s8xjQx3xfstWzpZYH85cLRdxHbhqrIecIFNQ== 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=cBfpU4THz6yTmWrpZKvHswi3Vh+AH5MXNh74ytpM2AQ=; b=EbLC8FzttAlyseXAOVpn0TRzFJ15A/mIJ64Oe8Km8h5WIwYZNatUc/AaRC6562VsxeydvDhMQBrq/hSkRNFjBTaR9bLudU7PvvtbbwbqR8G0hnznTMKK69JG/B2sRDughuysFjWELDDiTTrSKIHwOsvmaJhGQ7O5u8SsQxs9651F/5GUAkk0Uq3UufZv8LdGU/u+MF3LWt/Xjz8wF/m6tlT13UerUrCsZHTlMDzW1AHrcGtUONxAwpyTFKdkppX84S4bw3s33+E8+RdRFVaIytg/igI81Y+rR6bXqnOHizQUsDmL3yP18B/PiHRRLlQ/0+bexXJodi81ivgTCE1bjQ== 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 DM6PR13CA0036.namprd13.prod.outlook.com (2603:10b6:5:bc::49) by PH7PR12MB5709.namprd12.prod.outlook.com (2603:10b6:510:1e0::21) 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 16:07:47 +0000 Received: from CY4PEPF0000EE3D.namprd03.prod.outlook.com (2603:10b6:5:bc:cafe::b) by DM6PR13CA0036.outlook.office365.com (2603:10b6:5:bc::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.12 via Frontend Transport; Wed, 3 Jan 2024 16:07:46 +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 CY4PEPF0000EE3D.mail.protection.outlook.com (10.167.242.17) 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 16:07:46 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) 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; Wed, 3 Jan 2024 08:07:34 -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; Wed, 3 Jan 2024 08:07:34 -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; Wed, 3 Jan 2024 08:07:33 -0800 From: Liming Sun <limings@nvidia.com> To: <kernel-team@lists.ubuntu.com> Subject: [PATCH v3 6/7] [SRU][J:linux-bluefield][PATCH v3 6/7] mmc: sdhci-of-dwcmshc: Add error handling in dwcmshc_resume Date: Wed, 3 Jan 2024 11:06:58 -0500 Message-ID: <20240103160659.144149-7-limings@nvidia.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <7315e47661ea7ae98ccffaee3c4d921c8de7ef07.1702924774.git.limings@nvidia.com> References: <7315e47661ea7ae98ccffaee3c4d921c8de7ef07.1702924774.git.limings@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE3D:EE_|PH7PR12MB5709:EE_ X-MS-Office365-Filtering-Correlation-Id: be0ae07c-bc06-4aea-7c1e-08dc0c762048 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v07pIyxzuWI39Ke2517eYwdzUa3LZRYyZs+Rsr/4Ffmt5Lfd3oEaZNWuD5NAcsiv522Mq5u9Q5OFu2fs0CqDzZskQ9UZxzoKCja6UawrwJCsAltXwKHPuz6P3jKUijZE3l0ERL0YIRpwhU7aDAZaWw4ml0f1pKFcSnxpoSLHkcc3MU7GnO8gmM4GCKp0/Un5Jm4EoSjNraIpSwkkbcD3KVMpoy2f8P3ngdpDF8QHFyc3eNrdqO3Oix71MR29cMyajzOXYVHHNBok6JkjyR/CiE3RnF0hX1KGoSMbFN/Xcu+y3eTDBdV+MbGWUee/MsdjSkXqsnbRL5acqOrp8UIMktTDy6g3Gav9XgfcAOwdNxEGDW4UT7ebQUdRhgyEHxyFEBoxKwori43z8au1IO1jKnA4i/DPA2pBSKCL1ZLRCTd7PvYoDLy7V3bBj2TU24jOa5zEgxgatMQyVwXtxxn76EP+vxoydtA5dksUi0AgBdRYRgsWuR+P1jyfHqVJZt9g0ymQ1S3VCyKySdy7zBqU9PWrim8IWdWtWvteU75C8OqGTm7n+KoLfdGdwa2ZQiEF4E2zITFDEKDvIOiYQI74qwvc6XDC1oq1WmDK3CC/DfYr/9Zf7EQFicKy1TLLyjURWU+nlwfgNdiz29Lxe/pSjT19YNc+Sx9cRINpmDnkfbJu28s5EH5/x/whf7GyouYpefMeqYPXnhTvS9/Q7PyAXD3fgh7JM4saHLh+V27Bo3rGIG/Nb2a4PISLexHrXh61pOxl+zsF76Ls1TkCIU61+qnhU/PJJueXWhydQk+tjIk7JTdFbf0rNnVTAES1uEiN 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)(396003)(39860400002)(136003)(346002)(376002)(230922051799003)(186009)(82310400011)(64100799003)(1800799012)(451199024)(40470700004)(46966006)(36840700001)(40480700001)(40460700003)(41300700001)(5660300002)(2906002)(966005)(8676002)(4326008)(316002)(70206006)(70586007)(54906003)(6666004)(6916009)(36756003)(47076005)(82740400003)(7636003)(7696005)(356005)(8936002)(478600001)(86362001)(426003)(36860700001)(26005)(83380400001)(1076003)(2616005)(336012)(133343001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 16:07:46.6125 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: be0ae07c-bc06-4aea-7c1e-08dc0c762048 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: CY4PEPF0000EE3D.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5709 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