From nobody Thu Dec 18 08:11:10 2025 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 0E68619005F for ; Thu, 5 Dec 2024 10:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733394126; cv=none; b=QkxAgY2RmCqliJsQWQN1z/ITQ4dH1dvdGbafPWpU4gxborZld8W6eGO3/e1Wbmgdq7KnIG+I/2TMqMa84w1Ur6CLhNOZNuXp6a+jUJqsmVuY/Z5GIWGN0OaHRc0QSN2wkC9cRjyoxiSx21iWWEsVQGYEiTClP6t0KGKV55YUGFs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733394126; c=relaxed/simple; bh=plXtOKz29GTft7oIa1xpVOqkG4eCLvwhQNSboWbCoo4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=NtBrx7y0sAsKb2+f4YSOmteZrOWKeu30F6HuwsuX+H+fbM9Tx1WP3iINwA0Zjcuo/IRGvquuyMr+v7+goLIKCFrztFALgsY+z9/LjSTkGLaKMoVSK1IRgu8tJejgU5g4kgerLeZo7q6DB8MvipBd86iveSNzXt4WfJ/iRtNOuls= 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=tarLBTty; arc=none smtp.client-ip=209.85.218.49 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="tarLBTty" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a9e8522445dso130980366b.1 for ; Thu, 05 Dec 2024 02:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733394121; x=1733998921; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=C2qCz2oyAWXcySnvC/YTGdboyjGwCf8uvEh34M5NQ1w=; b=tarLBTtyIxG789Wi2HydCwg6vBxQtscctZ4kbdPpu4HrYKw4sgBRbA41gD4qHEObd4 88a/ZCvSovQAiKsnOvOSPsw/ZbO714p45GXjNzJWWXYWN+A9ULxS8KGa3dJXhw3Zfdir S9F425i8sFvQwbHuUF5MsDC4SqZYT3ZgbJw/W9mS9W/OM8Qg3bzEV0fmjUUwroRbGn+N MS7o8gM3XdQs0QxR2q5UpL9uAgEbft9j8q6wWBjK9aRt/9J2Fd3TdJQYlhnwnRedluBh 41YHOqOlIAPDWiT9k1NWRirADF6BXCUVX7nde1w8y719od33qhBMXjSp4QnSx92+2oja KvSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733394121; x=1733998921; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C2qCz2oyAWXcySnvC/YTGdboyjGwCf8uvEh34M5NQ1w=; b=dyAIRC/x/TIDPos+xUs5u6MhbUzMkTqESLwZTY86YzP/cZZ84XC7YEKEBqTAuVqdVE D3nbtmdF5KM3l6aKdk6V4YSPq/xY0rCmBm1CB1EDEmH3xKSFGN3u7ZfRMkLhdhrNRUrs E55sbKdM+2najC0khwxKIKdesxA5GgrrfxsBjl9O3MaG/dDeoBMD2ywVQQaEMhIQpVMa lq1sj+XbwrSTr5C/l2apR3nwk6akhVmmWg1QQfh8bvKZd7U5kCaVfe+xbogmTVKpJCLq JN/kmQh5xRekMRR9X+EwL+OAtTFqaS59OuXCyEd8vTtd3POSsrmdehLzUD07ewHrlw9e UXyA== X-Forwarded-Encrypted: i=1; AJvYcCX8HDWaPGD+cwtqbPH0CU0Kv4cT/1WCNGy4g7ERBm+vcLlDFvZCDV2RLwH+Tk4fNax4NXQ+hCYfghBHeuQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwGaMEs2Ps6JPVRNy+XTCp8Xk9Osm66PsCiAhjZvMTH/eU45Z9L vSFPP/u2B0M/r/51McAHIfqGMeyV4gbKBXWuJSOeWYpGd6cICcUbejo8qOUJRdA= X-Gm-Gg: ASbGncvtudxqNlJ1gqE1VhzSX7mH3S+aKCkejOxOeXlhSiFgIuLQ4OKpEjGucs3Xc2m hDP1gq1vPWG9+0OzNPWwRh6Csu8CSY/O9y7KIBqeuZiDkGvJkY6qjlOUYGlZSUdTlpkQnnCdZIj yOw8G8sPqNl1NaHMX64Lc2h0BsNyoRGDBdxhTQ9juFLAeRIjxljEnXCGh4zHGGsOokWYh+fhsRf 1BIPbaSfA1H27NYVmsL+bj3nAb0VRD7Lp3DK6RwomUOQI7IkKuQR+1tlV28kEJpxceU+LXBCQNi 4b724EAgFzHmJqsw9OCSblbs/uayTAY5dA== X-Google-Smtp-Source: AGHT+IGIzS6w8nmzLwTehZGRCWLb5o+CLPa7VmxDEuLmOqo4b1mzG0cAAJu2wok4wnlPx8fiTWLtkA== X-Received: by 2002:a17:906:3d31:b0:aa5:41b2:e23e with SMTP id a640c23a62f3a-aa5f7da9717mr766598566b.30.1733394120780; Thu, 05 Dec 2024 02:22:00 -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-aa62608f57fsm71606166b.146.2024.12.05.02.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 02:22:00 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 05 Dec 2024 10:22:00 +0000 Subject: [PATCH v4] 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-usb-phy-fix-v4-1-0278809fb810@linaro.org> X-B4-Tracking: v=1; b=H4sIAMd+UWcC/x2MQQqAMAzAviI9W9iqA/Ur4mFq3XpRWVEU8e8Oj wkkDygnYYWueCDxKSrbmqEuC5iiXwOjzJmBDNWWjMOg1lg8dMQ93rjIhTQ513hvqpY85G5PnPX /7If3/QBAd16DYwAAAA== To: Vinod Koul , Kishon Vijay Abraham I , Krzysztof Kozlowski , Alim Akhtar , Peter Griffin Cc: Will McVicker , Tudor Ambarus , kernel-team@android.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9_Draszik?= 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 --- Changes in v4: - separate this patch out from original series - Link to v3: https://lore.kernel.org/all/20241205-gs101-phy-lanes-orientat= ion-phy-v3-5-32f721bed219@linaro.org/ Changes in v3: - none - Link to v2: https://lore.kernel.org/all/20241203-gs101-phy-lanes-orientat= ion-phy-v2-5-40dcf1b7670d@linaro.org/ Changes in v2: - add cc-stable and fixes tags to power gating patch (Krzysztof) - Link to v1: https://lore.kernel.org/all/20241127-gs101-phy-lanes-orientat= ion-phy-v1-6-1b7fce24960b@linaro.org/ --- 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 c421b495eb0f..e4699d4e8075 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); } --- base-commit: c245a7a79602ccbee780c004c1e4abcda66aec32 change-id: 20241205-gs101-usb-phy-fix-2c558aa0392a Best regards, --=20 Andr=C3=A9 Draszik