Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp561241rdb; Thu, 15 Feb 2024 08:17:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUCd3a6RXU2Zhg1ynUDz9w50bPAnYZFJ8R0F2/fpDnnMKXZ90i8H7VBQ87oKbUcYjgaMcXQ1mulahv0Bav8dR/moT732XCm/XpoL+l2Eg== X-Google-Smtp-Source: AGHT+IGuDABQ06u/PQZl+9/U4oUMn6InFcfONh3VtwlQRFHPCR/LEU+jGuF/YvLUzLhIZhfKQenZ X-Received: by 2002:a05:6214:e61:b0:68f:1067:ffa1 with SMTP id jz1-20020a0562140e6100b0068f1067ffa1mr2784107qvb.19.1708013844113; Thu, 15 Feb 2024 08:17:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708013844; cv=pass; d=google.com; s=arc-20160816; b=s+KdJTP02c+04A/6glDrCxzVx4KC7Z6FwU7etJtqzAkMknFJCMOHLc3A278wEdBhoo 7SH/Z/sGyruM+Q2jy3I0jwbCTx85LuLxr8OSehc97hCaGoDMW6qoOsOt42j0Vtf5wuG+ na4P9NQ0Z1AUxpy6B48df0f2YTH318wqhu8JpUByhb0L/wnhuNiBkinzqTUtz2CpGFRo /oPoeXbXVzrXik/5v5v+ORYX7JxlRCr4KlHDT3ncVYcDZKpMaBevGWFMW6jl7wve/b5u DPrNOfEUPGrNTrzfalMNAgLFfqPPxTcw5vpE5ZjLgFXA0LbhtjlEa0ptagwHvQ+Txa40 ZatQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=j7NSDwb/05g4ujivAOjTwmWiHN6UlrJeSt0vUbauOFA=; fh=dQaW+PkpV6B8DsP7Dkb8SMGnouNee2Ymj5fmrjFCZk0=; b=A0CE3KhY7PjEn+9CLzS5eTQ6XxbboN9J6y7CzlaMH7eWi0uFxNjB9sIJ0cNn24HKXW SQr1QahU7C7SoX1S59NcR1PGyngTVmU8FeW3ojinE/oH3s45bftqWvz0K8F5m5WYnXH5 GDEBJwCInLu7fsXf9zO+ZKUncUCFEt2wQ14BJ/dNVgV25Uafa3GnLWdQaEsWBYafSWzF qfGyL/3hxDqe5EQvXoaq6hyKbW1X0TDfH66+Mdc6JXnxfsfz2MAiI80GusIXqaGxFBLB 6Ef9gaGlauHFLm7Fqiic8wtBLBLZUMmkOHJZlZdSpleq284QTHwLBMDHAiYLu5UicIfB PRRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="UFYkEXX/"; arc=pass (i=1 dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-67296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gm3-20020a056214268300b0068ed85b0d64si1703596qvb.381.2024.02.15.08.17.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:17:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b="UFYkEXX/"; arc=pass (i=1 dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-67296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D8B191C23FE0 for ; Thu, 15 Feb 2024 16:17:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BE9A134CE7; Thu, 15 Feb 2024 16:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="UFYkEXX/" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (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 0E0FD134721; Thu, 15 Feb 2024 16:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.156.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013789; cv=none; b=F3S4PDtP2hqjOum5uuZ8l6ZXkGdP5GUgxIgkoc9xz5WYQ7G4hlGF+wyYj6IYICNPKgenmtBrta79P3tK5rCXWzMV7gek/I0KOAG5WPsyu7EwxxxyNzwYn/5JaeL50tVH+drtluJpuqCGNT56iHLqD4OVEWsWLkXW6L+5UNFbPHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013789; c=relaxed/simple; bh=K7/s9BrhrXjtwpTn1wH7BV9+VkoKECs58AQnNFAKXuw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=aUBdI28YcQkXlGL8IbuAvQ0jGX7/V6rVEJ9NwBgFZd0TxZWbhN3ShWjxXfWtV4yzdSqxL844MB8wZutRPnziFoKYKbdFlGCZIwxc701hy3HZOVkiOVqzzZ7C+vsVXI1onFBYfOyeRI1noIlPyHVIR3CmRuyAOjZk6WUo93kH60I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=none smtp.helo=mx0b-0016f401.pphosted.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=UFYkEXX/; arc=none smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.helo=mx0b-0016f401.pphosted.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41FCk83k026995; Thu, 15 Feb 2024 08:16:19 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=j7NSDwb/ 05g4ujivAOjTwmWiHN6UlrJeSt0vUbauOFA=; b=UFYkEXX/edsEL9R6b56IQlWR oaTSYCJXUTrQ6Cua/+ATRc/cc0h1S62v0YAuL1l3uV7kNb5cIFrb50IMHDv9987v 9KDlbgofx96yTH/0IEmS3nZ+eWR6jSKjQVwGKmst/xX2zfywJtWu3lEwjH5rNJXm +umgMAKLOsM4yz+Wm7H6ubxDGIn+Mry10A2GOsA5piOOsHPgO21XezOYjwcAyEE/ z+XEH6oRqn/948zGHdMsUrcPnYw5rdPAN+8ldyMkGxv5X13ru4RZAoBVRG/XO3HY WSP0FXpSykEpqOiC4Gq+x5yNS2Qmmi9cH2iQY8DOBjQxLVk2KV6oDg/c8KD6Aw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3w9jw98uue-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 08:16:19 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 15 Feb 2024 08:16:17 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 15 Feb 2024 08:16:17 -0800 Received: from dc3lp-swdev041.marvell.com (dc3lp-swdev041.marvell.com [10.6.60.191]) by maili.marvell.com (Postfix) with ESMTP id 6EBCC3F7085; Thu, 15 Feb 2024 08:16:15 -0800 (PST) From: Elad Nachman To: , , , , CC: Subject: [PATCH v2 0/2] Fix PHY init timeout issues Date: Thu, 15 Feb 2024 18:16:11 +0200 Message-ID: <20240215161613.1736051-1-enachman@marvell.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 9mdM5BoGD5ZAA_7IrjU_vhaJTdr82g34 X-Proofpoint-ORIG-GUID: 9mdM5BoGD5ZAA_7IrjU_vhaJTdr82g34 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-15_15,2024-02-14_01,2023-05-22_02 From: Elad Nachman Fix PHY init timeout issues: 1. Clock Stability issue causing PHY timeout 2. Timeout taking longer than needed on AC5X. Solve by constantly testing the PHY init bit until it toggles, but up to 100X timeout factor. v2: 1) convert polling loop to read_poll_timeout() for both patches. Elad Nachman (2): mmc: xenon: fix PHY init clock stability mmc: xenon: add timeout for PHY init complete drivers/mmc/host/sdhci-xenon-phy.c | 48 ++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 9 deletions(-) -- 2.25.1