Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp443431iog; Mon, 13 Jun 2022 06:06:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+9SI8QJGXDkF2iOBD53GnG9HHFW/ci1Uuz5c8plC+DsxTRksgyjX60w3NZ+BNf5mblbwt X-Received: by 2002:a17:907:94d2:b0:710:c164:5e99 with SMTP id dn18-20020a17090794d200b00710c1645e99mr43439597ejc.337.1655125603460; Mon, 13 Jun 2022 06:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125603; cv=none; d=google.com; s=arc-20160816; b=Ke5mlCh8sFsjAfy3F02Mf6+fmwj2z//zi2V+He22BVSWXAyCJoyu6AzYhxLELos8ID OEJjWKWD7UinaYhVz7EYdUizFmCHKqEzxGTeo4ZpXvk3ac4HDiV2nQxYyXxk8tFKneRW wZng3g2bj5wKWtA61URItUilkQyuOyJbryHNJLsNIB670MlR1PxDGYVaX4jRETASkuvP woXc20hqADw+5MmYVrCbNJMgwAUa3Al+mkRFfqxauaVJI4W+sAMCWL3glSJv21DygP+T nwrB7VA89fvWayg1P5qOTnqg4WHh+RDePaTv5fRV5X662plaXga5Loo/6l3NIsXj59bU INSA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tzlCucZghXdE05BiWL6jo1j40+oRAxK1kgwhIyDTdEc=; b=XseibAdRGPYulyNjK0bNnTiYE4j7kSkx8sFqqf3upSzBx1aSYc4Fd16rSOY2shpOnl AI0MouYzxBW6RvxOY2UC0aje4lonEEbK1zrNZfBwNunBGL2ILwH4VPJ7m+C3p0dmGPLR QbPK79QWj+Wo4AhDTLFPqCdn4ogQ7MTu1cyfzrJS+/MMhdFUIo/YtKmnu6SC35JxubsA mcT1IxhYQPt73eIyO40SZ7blApF7ruu7iymq925xDbApfEmvjXLuWQLUJ2TNOOJRL+6s p1ta8WQmWjERZCv30GvgDmvK+iSUJivHOVNLUa5vgU0Lb9Pi6OgSOJ5mXf0Io7yvNadr kNbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W0NPtAnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a056402280500b0042b635acb70si9451355ede.318.2022.06.13.06.06.15; Mon, 13 Jun 2022 06:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W0NPtAnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354931AbiFMLg2 (ORCPT + 99 others); Mon, 13 Jun 2022 07:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354560AbiFML3n (ORCPT ); Mon, 13 Jun 2022 07:29:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88092205F0; Mon, 13 Jun 2022 03:45:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9F2C6125A; Mon, 13 Jun 2022 10:45:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAB0CC3411C; Mon, 13 Jun 2022 10:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117105; bh=vbmKdU1NFSiLQsrkloUNv+RG297hIcC/MuNTFaIQXfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W0NPtAnmbLpRLal3g70MebCPoHhmn/3HT5A2vLOoz0AyD14bszXEZAUMkiTBS8BR0 S84jZYbndHyBsT3uWeEF6BqSEBAw2sn7zFVeVDMTdMnBhfFgox/AsVVvIfP1Cqs22f /ozvoSgGCn0oilWMxNX0Wp3Zqczcu0ggZ8ZjfOoQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Green , Johan Hovold , Vinod Koul , Sasha Levin Subject: [PATCH 5.4 300/411] phy: qcom-qmp: fix pipe-clock imbalance on power-on failure Date: Mon, 13 Jun 2022 12:09:33 +0200 Message-Id: <20220613094937.753080765@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johan Hovold [ Upstream commit 5e73b2d9867998278479ccc065a8a8227a5513ef ] Make sure to disable the pipe clock also if ufs-reset deassertion fails during power on. Note that the ufs-reset is asserted in qcom_qmp_phy_com_exit(). Fixes: c9b589791fc1 ("phy: qcom: Utilize UFS reset controller") Cc: Evan Green Signed-off-by: Johan Hovold Link: https://lore.kernel.org/r/20220502133130.4125-2-johan+linaro@kernel.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- 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 ff5955fb4d8b..21d40c665854 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -1517,7 +1517,7 @@ static int qcom_qmp_phy_enable(struct phy *phy) qcom_qmp_phy_configure(pcs, cfg->regs, cfg->pcs_tbl, cfg->pcs_tbl_num); ret = reset_control_deassert(qmp->ufs_reset); if (ret) - goto err_lane_rst; + goto err_pcs_ready; /* * Pull out PHY from POWER DOWN state. -- 2.35.1