From nobody Thu Dec 18 09:50:29 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA6191B6CF0 for ; Thu, 5 Dec 2024 07:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733384000; cv=none; b=fCCsG9AmhB01xxKGoVGMCWL0gbScYQ1pGqfKjvfIFjA51ll13ocNa1B80BBzK8fJ/cY04kP5Vm1SvCSnPZjvC6CP17FEGnzsvkw70qnxksy6+zQIOJG+x93Qh4JqvhK+pJNwrvJubWSwJ5S9+8Lgop8Z4CcPnunjDE6DbFJZmBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733384000; c=relaxed/simple; bh=iFlGn8SYSQnS21b00+qwUeC5W1YHrazBnqPMlae/vqI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pnfWD44L6mwzPhciS2jcTqU7oHPNAO85fxdO+jI4Lm8Z73p7PldplbhUkgnZ028A23A3DcOTFTarCHwG8ROw5Cjd71PIWVzV8EeiB+VN539X7SUrjRo5jYE6NzymCGWOugS6HItJUarXrJR6kDCwG9P6iCs3IcYMUMTn5EkIc9w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DehWK7TL; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DehWK7TL" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a9e8522445dso103680566b.1 for ; Wed, 04 Dec 2024 23:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733383996; x=1733988796; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6M6cTvNs7V+xqyuwhG0n9JcP4Mq9Zi3RChVjlFoyS9c=; b=DehWK7TLgdKUA5BElK0cDk1YkZUIHRRYi5bh8ZHNgc7HQHLpsXLrg50jphWxAmtmr8 S0vJU0+Q+OFyRYH55utOZglhTZNFiIpRnAi8yCUQg7bbRmzLG7Ez0cawLpK/HmV6YIsL OICEcgGbostjgLDZqJ4JUBX3MZZzcnvOLgBuTrBXXtb3vtwPydJ7uQjxOOuS1Ovkt5FF O6rm8cwBEIKOLrVbjNwu7qPexJqmcz7CiqWep0SKPcrKHkNU947Sz/gkIOq1vIpE7S7b +Cp24nrpVe5RAb5oDmfnWpN54Qr8P/WyVUMJIHPKaXFAiFaEOfbZFQ8TgGboeBDStofT p/Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733383996; x=1733988796; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6M6cTvNs7V+xqyuwhG0n9JcP4Mq9Zi3RChVjlFoyS9c=; b=dszg/x12fQ8TUAiPtkp2YPkot4v28jCNh8NDxu7yXf787PZXFUwclwjqmgpznkKYKH r/oxj40FZsua2B0h83vLWZKy5bBN8O8EeQMvvh3Vn2MHzwRgr/MecDMsKBUJ19AjqueZ h7jYtmQSfVQulNtPW4kzBK9MUCaczbgZK810TaC2JohL5KrL0rlH8gNCN+Hyo35L0E7K 0JUm76RFHVNfr7Cb/QTX6XuU1cylUk87YMXSEQVuz3S/gSeW9msAb9gYl78jEp6uuXMP JL4mIP84Txpl7TX9LMrwqR3VK9hL8rQhFPLQ8Sq6wYdeStewii94yfjebKdDSQr6ibgw Z8HQ== X-Forwarded-Encrypted: i=1; AJvYcCVRXGic/A7cNDCUXQjLUT536wK202uwdTrqcfCu7Qob7+hFxVLApSdj5FOEUWGJqmZ2LNtGhIwL2/OsmbE=@vger.kernel.org X-Gm-Message-State: AOJu0YyJnfhU4NofO3ZtgYI6ygL09A+dQgtLNA160uVrtkpwWslGFmir LNyC8gFWXIFoAKaaotwd9MzaIs8YUewnAyemRgFqzYGZ5ugaU6/kIRKhi/xV+NzEAxcUTKL1goj Ww20= X-Gm-Gg: ASbGncvifO9lVFTmoq+Z8Mrr5v02IRKmxTBXZs4JGZWwE5lLJDJk0e9akTGpbJpUQ2/ A8cI2a/tTPNl4Onv6+0rL1a1SICCuwGEGfb89iEHfpe8RqpfFQW/BZp2tkUqtcmwuio7PnukGL2 sNlvDYrrcZ44ajiJFRMzueVldJHl+k7cy1AM9KS/X3JnA/GtokEpBZ7lohTHZdmEYUPgDkvcVJ2 l0UgzOOOEqy4HiBYmezM5kyGMFoWiOeh/6fz130FUBuxVulyPib+Jsn6uKAb6LoqcO3cquC5hTt KOrLxRcGqcgG6YHfROA3vs0nNTkoZ7Z1eg== X-Google-Smtp-Source: AGHT+IHuNjq0k6FYk7xK6t2GUtZ0TeRU7XN1ZF4Q/PTjjLe6Nsx4lZ862dPWiqXiDX4zZtdZApQooQ== X-Received: by 2002:a17:906:2921:b0:aa5:aa3:8c45 with SMTP id a640c23a62f3a-aa5f7ecd65emr765500366b.48.1733383995984; Wed, 04 Dec 2024 23:33:15 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa6260888casm53371766b.133.2024.12.04.23.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 23:33:15 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 05 Dec 2024 07:33:16 +0000 Subject: [PATCH v3 5/8] phy: exynos5-usbdrd: gs101: ensure power is gated to SS phy in phy_exit() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241205-gs101-phy-lanes-orientation-phy-v3-5-32f721bed219@linaro.org> References: <20241205-gs101-phy-lanes-orientation-phy-v3-0-32f721bed219@linaro.org> In-Reply-To: <20241205-gs101-phy-lanes-orientation-phy-v3-0-32f721bed219@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marek Szyprowski , Sylwester Nawrocki , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= , stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 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=C3=A9 Draszik --- v2: * add cc-stable and fixes tags (Krzysztof) * collect tags --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung= /phy-exynos5-usbdrd.c index 2a724d362c2d..c1ce6fdeef31 100644 --- 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 phy= *phy) struct exynos5_usbdrd_phy *phy_drd =3D to_usbdrd_phy(inst); int ret; =20 + if (inst->phy_cfg->id =3D=3D EXYNOS5_DRDPHY_UTMI) { + ret =3D exynos850_usbdrd_phy_exit(phy); + if (ret) + return ret; + } + + exynos5_usbdrd_phy_isol(inst, true); + if (inst->phy_cfg->id !=3D EXYNOS5_DRDPHY_UTMI) return 0; =20 - ret =3D 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); } --=20 2.47.0.338.g60cca15819-goog