Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2539976rbb; Wed, 28 Feb 2024 05:16:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQfawyPacBlJIKepudW+yjNex1lq0NafW3HCfn8uGcY7TKM3SXRyIlDb3ABRGnfF/C5zhBWl8UOPji+b80Mc7CjSZu7OlLreWT+IUWpQ== X-Google-Smtp-Source: AGHT+IFdWKrSMLHtjfQKYavOoRpmbKa4PlIG10pl8cMVm52s5bocVQC/agzRaWA0Ua0z89wUAlMg X-Received: by 2002:a9d:674a:0:b0:6e4:94ad:3f69 with SMTP id w10-20020a9d674a000000b006e494ad3f69mr11363904otm.18.1709126160040; Wed, 28 Feb 2024 05:16:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709126160; cv=pass; d=google.com; s=arc-20160816; b=Leid4UVaF6B/8P6+Jfly6gj1ikIJRIUUIoinVfYavZG2hFnLJhn5dR2Sx+AjNeaxUU BmVBQd36Gqy6ebRuEKFOt5ceG4z5evgGyhKIF4UYepjoTPDx6d+76omuGa1i5bLYTzrK eB/w0gLPsraPtxRG0G7otAzY4uWmTALArc3yAuGKFkcFiM+R5HWx6lR0r8dvkbDuV3yK VaEoIYMN0NUOvGqgm9+rD0Ua94mPA6IA6FECdifY25BJgHaXonZTGQ2WEwpyAZEXe1/Z lE6f85J07Abir+JSX2exXE3V9OiRrGtRtEx+tSdB/m2/S9atj99W7/Ybn52o7NfTVDXV QeVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=w5k6h2ShXlgJ8U8BtYrte9gH1UhDVvYBcQOgkCuTu28=; fh=g7KVrjZeoSCLYSXABM4Ri1ayEMhZpxOvd16dtZxgnSo=; b=dzsEjpLzpdVYroSVbgY8XQYLBJNIR4lXVJZt0/64sXoU6TL/f1w6rcRW4ZxHI6a4MI r9JI3wf0O/LTEHYbbd4SM9k5V9CpgJAs46UR2+fGttNIZgLexJFjhFJ61g1xQM4qJW/s hLbnbI2b4vh9koSIcqEa2mFwIqaYjosAOPEiv+zipwQ0hKNUmS19rFno3qj5s7H+FslM 1B5WsfWxN7l1m9CB4kp0IdOJuV0FtNTZFy9FB6knKID73aXRQRfW70kUw/1NdjqGZEL+ GuhuTSB26/SKYilLmtEHVi+fPmFwU7h3cfTaaYPe+qUuTPzTWO+dJ4LyLkHNtRJkID5+ ezTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ttpAR/AR"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s18-20020a056a00179200b006e55993a954si1787596pfg.382.2024.02.28.05.15.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:16:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ttpAR/AR"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E64FBB225C9 for ; Wed, 28 Feb 2024 13:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0D9714CAB3; Wed, 28 Feb 2024 13:04:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ttpAR/AR" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 83E34149DE5 for ; Wed, 28 Feb 2024 13:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125485; cv=none; b=LZ1TgDhAPMJYqm/sManPzzVbnTw1V4Bb+IcQYd7THCudFPpPAtm+w1gABjXLGzBZP6rEa0Fb8gOCqdTAtiP8Pxx5hFUu/ik98d3o2UzlComc3Lwjionhx2fqpI0MoHsLsOe8W64vljRQ70jrCHAPSRRAu+0hsIkfKKk57xIgq3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125485; c=relaxed/simple; bh=g5w1gGHFGXzzZmJpBKtp41q1p8eh1BbfF3BwNq/rhXA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IskYv5wQrURIhGdN+i0RAjKGnCc0UDlcciJJNXR2fM/JoBO19CztnP/cH87hiz1Piij/5sw2yoPDMR4EiyPkTQxWFzr//b0pubMG+xlEZaU8A+pqpJ6L+Kh42jcnj5p/oZAL96Q6fBGrwZa6ncudpwPTppHTjlkgjTbwBqsrSn8= 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=ttpAR/AR; arc=none smtp.client-ip=209.85.219.172 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 Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dcc7cdb3a98so5604934276.2 for ; Wed, 28 Feb 2024 05:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709125482; x=1709730282; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w5k6h2ShXlgJ8U8BtYrte9gH1UhDVvYBcQOgkCuTu28=; b=ttpAR/ARviixgzkkCHBHR3KHtgkCERr/ruNIwtNQu2c5762egIs+QvywmkvNC84KOf zq35A0sbZHivGrbeCn/G2RYA8/3fYq7GxwpZ4YbGYBH/JvRPhDW0eQ8tG9dLTFh/uemY GzMjlagmmmOJn5O3QEuyRCec9DWjBl0lAF0bM7rkdtcIHEcduUBlGSFckpktzyKyJhB/ /UnKo+oj0y9zFkToPzL6VSve5AKXwdyIcaK88dW1ewuUuVR9oPI9tCUpA//u2WiR1AC6 mmZwacev8xntQSR45qL/7kVLsghGzz2VqyxakpIHR9kfbWJvNLPZIsntpg+xCniqaf2c A7bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709125482; x=1709730282; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w5k6h2ShXlgJ8U8BtYrte9gH1UhDVvYBcQOgkCuTu28=; b=C2vNa7I4dKkayjp/958AGt76n9laX51dTUr+UDQNUlqCLTgCoTv0DzFwDxxdiL/cit IalFzZIeXean3ITbSoPPdbvf1PtTZmkqMg+d68ES9+z6UoH83bYea/E64t/98G5o5ywt S+RQKAYRtDCedSbbWIsGmcpOB2oiQEJhdgJiGz6b1Yc/u0OV04I7ksTPjVbbPttNyCQI YsFM6AWDwdyBO4bnoPAwe3gzQD8cW9GMgrIA09O0Sp82qVl61XE/7XAvchiVUq8JO4on yRSWhE3ACzVCTBFCdkKLOh9x4BcENIqifHO7qzjnY/546VZyLdFtKyEJ1hsKlUdJqO7U K3lQ== X-Forwarded-Encrypted: i=1; AJvYcCXnwma5gfDqXW/xjss/6nRFPWNXXCarfKIxeNr87sbLZG/P00QMWRL+AND4l6yYCyVQD6J7yCw/pkoYwtcTN2L947W1cWVKj3YOCJkZ X-Gm-Message-State: AOJu0Ywk/qyFKYqF3A5Q7LC2O8ACkcIaeUHg4ubwvS72JEZLz1V6Ygg3 repuqRfrWMMIrS6G4K9j0OyEOG6ThQBhpJG2B+9s0riWOTECrInfyajuIpH+3ObwJIYIRx0Hq4k RLd2XlJyemu/keD7WHIIEeLUe2gXk0UPChBRzqr/HtJ+aliNS X-Received: by 2002:a25:4c89:0:b0:dc7:4951:5f8 with SMTP id z131-20020a254c89000000b00dc7495105f8mr2637726yba.22.1709125481162; Wed, 28 Feb 2024 05:04:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240222191714.1216470-1-enachman@marvell.com> In-Reply-To: <20240222191714.1216470-1-enachman@marvell.com> From: Ulf Hansson Date: Wed, 28 Feb 2024 14:04:05 +0100 Message-ID: Subject: Re: [PATCH v3 0/2] Fix PHY init timeout issues To: Elad Nachman Cc: huziji@marvell.com, adrian.hunter@intel.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Feb 2024 at 20:17, Elad Nachman wrote: > > 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. > > v3: > 1) Add Acked-by, Fixes and CC for stable > > 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(-) > Applied for fixes, thanks! Kind regards Uffe