From nobody Tue Feb 10 00:58:51 2026 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 3966A2877D8 for ; Sun, 21 Dec 2025 10:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766314026; cv=none; b=blqBgKbyeDA/aXAUhUTuMt8Z8eodblzQnrPZ3XkNOfbroL1xrASpcmzDq01V8T4a/zp3c9jnF7ABcPw7stCjNueM2nwNvxdC8kR2dkgbfuXcqQL99bhE5tI7H8RC+VtK/zyr5nbdH/vR9xSQ08ToOu4f+YaCLN99GheCKVvO99g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766314026; c=relaxed/simple; bh=i3Gw9Sac+Z2pq57AbgEFnTYEU8tyfk0Z8DX5cPEHcPE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O7LG759Oj4BPKCBqA7XoOK5zTBUIJe22sDvpIuFZQIEuetn7/uRRa6uXCW/lE+zqFexbgDMoy+sdXrEnJaVxjBeQ2M6ESkTHmyRicTaa1C1kVi4cqHrVtpZgaIp2L2umymPT0bsDjE7D89DLiVUlVe2aPi+zv+bhMo5QR/oCGtc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=NJSQ9bbG; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="NJSQ9bbG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1766314023; bh=i3Gw9Sac+Z2pq57AbgEFnTYEU8tyfk0Z8DX5cPEHcPE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NJSQ9bbGLCT0KBBXwCNqPCcuYonYOby3UGeC649qbc7GQlq5SrOA9iUxB9hMTXeEQ Aer0rYOiirSt/2UzvvBY4LTLkPOcUHinQohLHjZVoraV2bRb2DU6klTXxuDkYNMxI7 IX7GxcMkbvjNGNySYXAdLCTiqOMFMg+/zHKBzs/W8QK8mFil7sqMoAmgK+prD8TVQZ Vo3bwsZPx+ByTWMI8RW0XmZc5zoNMTx0Jdq7cZeVgfFSG0oKztHWiYIixsPmLoestD wH400GOZfNk2Xb1u49q0cyaBcgyYX+FDPYszMWsB/LishnNDQePlFdRu4JZ6EVLySZ BC61c0b6xN9vw== Received: from localhost (unknown [82.79.138.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 620B017E12E8; Sun, 21 Dec 2025 11:47:03 +0100 (CET) From: Cristian Ciocaltea Date: Sun, 21 Dec 2025 12:46:49 +0200 Subject: [PATCH v5 02/11] phy: rockchip: samsung-hdptx: Use usleep_range() instead of udelay() 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: <20251221-phy-hdptx-frl-v5-2-dac390a780be@collabora.com> References: <20251221-phy-hdptx-frl-v5-0-dac390a780be@collabora.com> In-Reply-To: <20251221-phy-hdptx-frl-v5-0-dac390a780be@collabora.com> To: Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Algea Cao , Dmitry Baryshkov , Neil Armstrong Cc: kernel@collabora.com, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.3 rk_hdptx_dp_reset() is allowed to sleep, hence replace the busy waiting with usleep_range(), to allow other threads to run. Signed-off-by: Cristian Ciocaltea --- drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c b/drivers/ph= y/rockchip/phy-rockchip-samsung-hdptx.c index e3d817e81d6d..a6981b222c8b 100644 --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c @@ -1042,7 +1042,7 @@ static void rk_hdptx_dp_reset(struct rk_hdptx_phy *hd= ptx) reset_control_assert(hdptx->rsts[RST_INIT].rstc); =20 reset_control_assert(hdptx->rsts[RST_APB].rstc); - udelay(10); + usleep_range(10, 15); reset_control_deassert(hdptx->rsts[RST_APB].rstc); =20 regmap_update_bits(hdptx->regmap, LANE_REG(0301), --=20 2.51.2