From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F15F13C67E; Wed, 5 Mar 2025 18:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741198839; cv=none; b=q2KvfbJzSAPJoVoVEROSmtxwds0urI/rVmQ2ewaU+7fYde9fzZwBBSyg+cm+ryD5vZBjqgR9pqJVamWApxMHYEeAeE7GLDnddr76rz5nqwyZfJlAaMNOFpE6Lbay8KzVi4WO42ICS3xLK05uhFYItifx0pmWU3stuj2/jfCCfY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741198839; c=relaxed/simple; bh=bq9wzowgW5rOUb7MvuwqxnS2/MadOqIESyrp3JgQiNg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b+wifH6x+vPMKzKq4lHW6RaxhcMdZjsc2VwSEDXlqa8pubL6Q+p2sbEsjkVzkIlEjbRY3HFa/kgaa/uAMsOU8PWuNdjKHwS75gmkE6QdNpbHq3nhWregiyZUw90M5XmXF89sYh6pJi4b+Xv/R72TJ50Fte4uPPQnb4bVL2TNHDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TPnw8cJz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TPnw8cJz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A58C4CEE0; Wed, 5 Mar 2025 18:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741198839; bh=bq9wzowgW5rOUb7MvuwqxnS2/MadOqIESyrp3JgQiNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TPnw8cJzxjcB0urB4IcPtfWISVOMXUNZ+OFTfHzVJn6EdIL7CRkuduGim/wOxNFQA puMqQ6F4gT5wDYLbeBcG4XMTQLZFMHzh0v432y4O71RJJnqZnEbF0oy//nT788blq/ GFDRZZe6Iu+AKpEY7MdQEdn61edBND0SMLDkap6A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Peter Griffin , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Vinod Koul Subject: [PATCH 6.13 123/157] phy: exynos5-usbdrd: gs101: ensure power is gated to SS phy in phy_exit() Date: Wed, 5 Mar 2025 18:49:19 +0100 Message-ID: <20250305174510.248790491@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250305174505.268725418@linuxfoundation.org> References: <20250305174505.268725418@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: André Draszik commit 8789b4296aa796f658a19cac7d27365012893de1 upstream. We currently don't gate the power to the SS phy in phy_exit(). Shuffle the code slightly to ensure the power is gated to the SS phy as well. Fixes: 32267c29bc7d ("phy: exynos5-usbdrd: support Exynos USBDRD 3.1 combo phy (HS & SS)") CC: stable@vger.kernel.org # 6.11+ Reviewed-by: Krzysztof Kozlowski Reviewed-by: Peter Griffin Signed-off-by: André Draszik Link: https://lore.kernel.org/r/20241205-gs101-usb-phy-fix-v4-1-0278809fb810@linaro.org Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -1296,14 +1296,17 @@ static int exynos5_usbdrd_gs101_phy_exit struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); int ret; + if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { + ret = exynos850_usbdrd_phy_exit(phy); + if (ret) + return ret; + } + + exynos5_usbdrd_phy_isol(inst, true); + if (inst->phy_cfg->id != EXYNOS5_DRDPHY_UTMI) return 0; - ret = exynos850_usbdrd_phy_exit(phy); - if (ret) - return ret; - - exynos5_usbdrd_phy_isol(inst, true); return regulator_bulk_disable(phy_drd->drv_data->n_regulators, phy_drd->regulators); }