Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp742769rdh; Wed, 14 Feb 2024 09:59:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSsJIN++Wk/MaJYG5YDu3Ak0pxUV8Wukq3dcpBHcypisUuozn8frOOR5zsPKcIj+CoanhYyP21c2iPUbCem5lqd3xYxtj0WDUUUPjw4Q== X-Google-Smtp-Source: AGHT+IHCjjhcb/eL+5xR8goecpk1zB7UvUiCFBfPJ2LWgh/Wztyf90Lzxc7tZZghXNrdFMOi9zuP X-Received: by 2002:a05:6a00:be4:b0:6e0:df39:86be with SMTP id x36-20020a056a000be400b006e0df3986bemr2567284pfu.23.1707933570674; Wed, 14 Feb 2024 09:59:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707933570; cv=pass; d=google.com; s=arc-20160816; b=lofBVpR9iRZ59UJHkDeumDLPVwhn+S8QuKX6KZjj6XDSc0KX3N68ERd0MMIS6vISY6 u7XrydA9h4RryutxV3dxldgFwmsepQt073nBdECnWOOiorXWk1ZVhQspvdnQozv/pUu7 4T0eECTfA6wyINFDLkuYv4F/0Q+Ek0RjEnxQNm58vuWxamFDqzsH/It+kfKyMp3+Jo2W fTWs81VfWZxkS4GH4unS6JBkFxrjltspAhzbmUBK1KqfAFfothfN3AtAy2UKhxPZ6J6o DKK2haIgIWMCWfyhYrfq5hXViDErLCpZwrCYpDtuELoQOvSMGeJbh8Ex0pSyvht7w7uc esBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+4ZRUXnSz4b1qZeQ5nORmugk2/Wj0JX8Orjc4mefblY=; fh=0L8p+FOv5hkfP313WtJtaozlL5fu7w8o0oEpBatpKSM=; b=is3DLkQGrkddRCPUsTo2KIXMWDsAVy97l0fjuUq1OuP+vFTTnrGyfnL91CQMFPvoID 3W24572ST1cXro4ZAgV2maN4534smjm1hovAAMfiNkhlBJx1QH/RY2Xu3BYv6Aolx6Kx E+2ukWzcJoYD5T6jpdWVD0nkp8tMqDCVFDkLrqMiKn/duYxF6nh0CDU8b5C4IsfNKyxC 35oOGe3SWxnrQ+RwimBhkO/EGiU1KYoPeQzx34PrQkYeO1lgWrnhBMNnhCmKY9RYtRfh QR4zo8xfLyRJ18YHqww22+a6wR/fsNCCNJ5NUb3jL4KXeMWA0PpO4Sm1p8KJxn0myUTE GMLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZRDla7Rf; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-65726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=2; AJvYcCWgqigaEhLfy4w8RPfWObYMUxJ0ahHTRpyT08WoKI3GTiQJFMP2O2M4rJMsw/dAaO5A5O92UhyDof+joNBlHja2X1tDwKICtfIOWzaDaQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c22-20020a637256000000b005cdfc019319si4147883pgn.751.2024.02.14.09.59.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 09:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ZRDla7Rf; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-65726-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B88B128D10B for ; Wed, 14 Feb 2024 17:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5377D1272D8; Wed, 14 Feb 2024 17:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ZRDla7Rf" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 105137D418; Wed, 14 Feb 2024 17:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933296; cv=none; b=aSTWmaZYLRguLYaVsztRxNHZxh5phHstZwLKV0weNuOQkc3eeuyd2oeHpxfYdIALxJyAXDOY97e5+/3pCMKM0hWcRI31rGtsyNMAymGeh6t7fR/q8zsKYMipz7tCTMHXzbylyuaoI6x8dKp7AAW6QZlmOvXre2TfkOH4gGn3CLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933296; c=relaxed/simple; bh=uqn4JgPiYURzkqOf09s3/ySAX1UzVvMdPvnJ8vJSKBo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eOp1LydM2QnJA4iMaqvc2YZEfeKSJVI1kg0NaEPXaSE7Nq0LxzF468xwkqXy0dPdu2N0Mp+9/J7Y27uuZy1Zjr0isjTrNLtrCvVUyQt+/c7TOWThbEmtxY0EMAx6bDn8R985kEhI0luqzJALYgRokZH0cxJR6JHLrAGH1tfIAZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=ZRDla7Rf; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=+4ZRUXnSz4b1qZeQ5nORmugk2/Wj0JX8Orjc4mefblY=; b=ZRDla7RfroZNN68j+2HIa/ySP4 ynjC6n9ahAvCywWCuv9twxAgn7gs6HeUe5OR44+Bd5FTXzDS2PgCpbvh74IoeFjHFcNpo+hUrA5aJ IqhpKAYY4psyPp8jfFzi+FpcqCPFogYgKS7FDmHvUlIjrhD2OJar04PyZIF5xsicRItw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1raJTG-007oQu-C5; Wed, 14 Feb 2024 18:54:58 +0100 Date: Wed, 14 Feb 2024 18:54:58 +0100 From: Andrew Lunn To: Dimitri Fedrau Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 net-next 09/14] net: phy: marvell-88q2xxx: add cable test support Message-ID: References: <20240213213955.178762-1-dima.fedrau@gmail.com> <20240213213955.178762-10-dima.fedrau@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240213213955.178762-10-dima.fedrau@gmail.com> > +static int mv88q222x_cable_test_get_status(struct phy_device *phydev, > + bool *finished) > +{ > + int ret; > + u32 dist; > + > + ret = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_MMD_PCS_MV_TDR_STATUS); > + if (ret < 0) > + return ret; > + > + *finished = true; That looks odd. Is there no status bit which says it has completed? Is it guaranteed to complete within a fixed time? How is it guaranteed that mv88q222x_cable_test_get_status() is called at the necessary delay after mv88q222x_cable_test_start()? Andrew