Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2658478pxv; Sun, 27 Jun 2021 05:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Z9DR+10Csd9T7deGjD3tDfTHoLvRjQMRcdZTd0pWMOW8+PZ7nPS00KFqRFEbYwMRoPv1 X-Received: by 2002:a05:6e02:c2e:: with SMTP id q14mr14459317ilg.2.1624795353943; Sun, 27 Jun 2021 05:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624795353; cv=none; d=google.com; s=arc-20160816; b=NRn54kK31lefGKMC2xxbsNBEyBGG8sNJpVq1cYEt27c2yjCPKrV3XeJUcGJjwf7kem 0kXbmsqVl4oXoms24PlpMTu53NQVBdg4GmRIAqeySDfKkxfuP0gNvfkx8pydt4l+gxSM SN+LYhzduqxT+7qcJIi1N8JmxM/HehNJP1F4XSN9skp/Q14vDENq71s+gSsflGSnAt3r KdEAthCwTpYdW3PFfsnl4AblDr16zcO7R2zHzVVfx5vedbM9zJL8mnRTyDxmHVZR3Vxo gGxJ+mRguHDNQ96iLy7u+wZApBDh8FdWjIvC3yctxCuNL1bfr1VOoavAfUoKfcoD/AaN 3n4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9VyuWpFdmw8gJvKOBQDYblMKjEPYTgfmMn0sqb1b19E=; b=n/iinkcqipRGKQkrVwQlH0tAuO2D2uZYNm3wLL9wgmiIOB2WFhJgTA00ZOeo3HkrrA 0R2vAdMn5Sz2of9fmPLSGyJBU9w0M+WuIkr0+joDbmpnk8AyX1+lOHR/i5vyBhAt1R1N SiCk7XBzn0NLFJzpkxGnWEXbBvbbsHZ460V7w7j1YPd1tFB+bupAnz9Ci8wA4IW7S5CV CHtIkj5SqXEslJbpZGv9B0sblui2LwkHQlvnY7F5+eTys3gHB/+kpHMtRVIm+hMDkgQK BYySDBrK/ABbljkcPjo/+0eZ7qGmNrUlC/0+g84VOVvjfccbflllKX49G8RJrMGpF0VV pLWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si14538251ion.69.2021.06.27.05.02.15; Sun, 27 Jun 2021 05:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbhF0MCE (ORCPT + 99 others); Sun, 27 Jun 2021 08:02:04 -0400 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:22429 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbhF0MCD (ORCPT ); Sun, 27 Jun 2021 08:02:03 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d79 with ME id NBzd2500E21Fzsu03BzeWK; Sun, 27 Jun 2021 13:59:38 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 27 Jun 2021 13:59:38 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: agross@kernel.org, bjorn.andersson@linaro.org, kishon@ti.com, vkoul@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] phy: qcom-qmp: Fix an error handling path in 'qcom_qmp_phy_power_on()' Date: Sun, 27 Jun 2021 13:59:35 +0200 Message-Id: <3c641172c5b57dce56872d63c52dfae2645cc2d1.1624795081.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If an error occurs after a successful 'clk_prepare_enable()' call, it must be undone by a 'clk_disable_unprepare()' call, as already done in another error handling path of this function. Update the 'goto' to branch at the correct place of the error handling path. Signed-off-by: Christophe JAILLET --- /!\ This patch is speculative /!\ Review with care. I've not been able to identify a Fixes tag. --- drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index cfe359488f5c..25006d80d347 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -4504,7 +4504,7 @@ static int qcom_qmp_phy_power_on(struct phy *phy) ret = reset_control_deassert(qmp->ufs_reset); if (ret) - goto err_lane_rst; + goto err_pcs_ready; qcom_qmp_phy_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl, cfg->pcs_misc_tbl_num); -- 2.30.2