Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1606900rdb; Wed, 31 Jan 2024 04:03:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IECobOjJuv3ai/gtJQ4eFphAA0BW4gi5CvOsBWKCJFCHICBOPDGHQeiOZD4xSvOhAIty6kH X-Received: by 2002:a17:906:111a:b0:a31:6e92:6d2c with SMTP id h26-20020a170906111a00b00a316e926d2cmr961077eja.59.1706702606861; Wed, 31 Jan 2024 04:03:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706702606; cv=pass; d=google.com; s=arc-20160816; b=KeRebWSG7LjF+sY8itUgeEOTGsL3MH2z8Ibn/vZ0nqRNBFrEbQWWo0SVErodpIfa8P p68aAaf74GDYiOeXjO9wa7jpVq0VBPYdAibx8+H1RHbG6ER+tiqlb9QvZwK5SSgbckHB fKYZ2SnPj7ZfFJkUcDRc3wpiFnUED0P+UYstqnvzUT7p9dq4dPl9mik1/aVav4Urer4T 4w9alK4x7nc34da6wZQOYxpxhSwPHLrEwBmUSNzmxEJXzFDxUTISktEYlM7a/L7Nx9dr i1ozFtYE+U0yu7p5u/fh4M1zQ5hUmwb7+vAkakFE7+fKhZ8gtdo9pWPTKjCvVrPsEEtx Vzdg== 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=nQgs8UsGYzxmHZcSyBxn3sZaIrByyjWo7oRX3DRemKM=; fh=dmzIDJqLoHKVL3UM8dV28ohdFcSfj+fbgwOR+940lZk=; b=aMMWike6MA1/QB4E00VgAK26l6ggTjqBYG1GqKAvpxGzvFZW4/HnaD1IfoU3BvMpzh ZkzjqnW9VENEl7/AKUzkRCSRCHMF8VPsyjZXXd+WXK8bBmzno4nQGK6mDtBPfUKlhT/N PhZ69te9za54oyqUjpK6ndCJVarc+0E+fxtkwPqOxusqhShpo7FeCC4M3ACQQ+zCyqYl 1BTGpHoErTuofmtV8LgHj7FeTcDqQwTxDmRxOQzSLha/5J0GOU0F0jBY4cDts8ZuvMuG IYc/uPYctM3WDuoqKKLzDFjzw2yhQq4Aa7MUQTwm3hRkV+RsuTYvCsFN89xJ43TIkM1M VUkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jUBw2mwa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-46394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWZjEYhhLW7Ks3SnYMVpgh6Excl227/KphGUQpIMUPRaKizlqQH1atRI1UdppvAhVqpyIMbawbUlVgIVgvYi3MkwAZpqhZDCHlEFpclsg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h15-20020a170906260f00b00a2a2ad86b09si5658738ejc.157.2024.01.31.04.03.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:03:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jUBw2mwa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-46394-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 94C191F3044A for ; Wed, 31 Jan 2024 12:03:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DDFD78672; Wed, 31 Jan 2024 12:03:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jUBw2mwa" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 C35A77866B; Wed, 31 Jan 2024 12:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706702595; cv=none; b=DrA2bFbfBjtISHIMFYu/U/L3vnZbroZ05ecKhilm5qKlS8hdcT3RVi9Xadnikao/IaM6UykUHKaCvrtTArnal7ey8iWQ4ge6EWQ8Z3yhvXNY2MmWCEsHMWlyTF9inV20Qd7FbdQzOKQP31j0ULAiyeZs6t+9dSUYSX7QOdZFteM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706702595; c=relaxed/simple; bh=7aIsZX2srAf0sa63pWe6yXQhUHFM5Loh5VY8dfDgClk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O2ZPLHzy2kAx55Lz0WmKNV3zSWsyvQILaMRzKGed1JP579DZxnpxlYAEjE9bh/fjNOsu4PnSyP2tI59LiaMimaJdWNbHZCVJ3vsY2sEuK8NewOd5mpdQ+L1pEosYTzWFLPgiS/wXQUsNvUmBF2vS3IM0gO5HCFwFFLVqsX0C6QM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jUBw2mwa; arc=none smtp.client-ip=209.85.208.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2cf1fd1cc5bso62591611fa.3; Wed, 31 Jan 2024 04:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706702592; x=1707307392; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nQgs8UsGYzxmHZcSyBxn3sZaIrByyjWo7oRX3DRemKM=; b=jUBw2mwagB8/zi4s+KGAYWNF8w9h1USttaw+tB+zlRxXTwY7wBQLfZMRfptTWEw5zv rHqm0B8S6nEveNrRJUwh5eQ5kUz5VdCBLQ5WQRw/uM+/Cuw4aUcSsl/udthYBVzdZYFM gt4cnXQnSNBMU+X0oMgnUIY8n0zik3s3HzfcsPo2fy2619psInJIBtKWbsFzmPVKUt0m F8AYvh3v0A+Dsq6VaAuxUeON9WtTMfHQwq/FdyDINJ+I0TyiqkdGlr3gnWuvKxrBDVrY eI1jAU2JmJJXCf9hgTuDCLIwSGs/7bZir7ugjxxQCeKuKUhbjhogXpz4Mw6hybR9GjJ8 KL4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706702592; x=1707307392; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nQgs8UsGYzxmHZcSyBxn3sZaIrByyjWo7oRX3DRemKM=; b=B/6t4JdlXi/zenXV3EYn0sHftlUhb/PI3burXwQyPgQVpzv0TDSfbCkQNsFsMtmCTk jJ5071V1lWS7BSVeYmBniZxQGGztLWjTYSb+CGw8fxnRkW+CSl/dUHTUfjynTmQ7vqYM fulyG/yMQMEH7ZLzuXsVZT3wWmv8+RYhS7t7WLteZDYTyTRvpwYblTShqTwrnxkVtPay 0botx19pjomJBDgXusXSAEhyeR5RGwA4clnw0hE8GPN+pLdTCCt+0hva+2xAFigSr6do tjTu+Z0wFVHUFLVuY7U/QcXfC5FqHvlPqfy/cj5f3C++FkY3oH1fUE4Ln5n7LQBl8BAH 8aFQ== X-Gm-Message-State: AOJu0YysKaTL/kEj6fcijghWQvygLaoZJiZjL00EPw+Ztr31Vt7JyMjb 9tholu8Puwp98Kq+kTdR/MZiIvCj6a+O6iIz2YR2FAd/l6VguminbXhR3yjv X-Received: by 2002:a2e:9257:0:b0:2cf:1f0b:5119 with SMTP id v23-20020a2e9257000000b002cf1f0b5119mr1104272ljg.17.1706702591025; Wed, 31 Jan 2024 04:03:11 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVGLjNvGNmxn6n2ONqAu0DiqoG+VC1MAVJTDTnFNpqJTchpfeN/3DRT8ojUhmjhfjx+EsN6k7RsYqN4e2zkiV8Eoz4gFwAMQWaWOCvIRDTt0bfwE/psb2S2H9t3/TtvDfCWtQjr/S3+l47Yk9kb27F8zD29jmBe/jwPKn4bI3CNSes+01+6VqpdfW3D6RJMZuE3GgzhTQNFjtRJNEBTxrekcseIRYKwSunLvFB+O4MQx3wUPqylOydmI00mj6UW+SbMY2FRt37csvJaKBomLz3BF+Hp1TzmDxWDJQw= Received: from debian ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id cc9-20020a5d5c09000000b00339443be964sm12081762wrb.91.2024.01.31.04.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:03:10 -0800 (PST) Date: Wed, 31 Jan 2024 13:03:08 +0100 From: Dimitri Fedrau To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 net-next 09/13] net: phy: marvell-88q2xxx: add cable test support Message-ID: <20240131120308.GB111590@debian> References: <20240122212848.3645785-1-dima.fedrau@gmail.com> <20240122212848.3645785-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: Am Tue, Jan 30, 2024 at 09:19:30AM +0000 schrieb Russell King (Oracle): > On Mon, Jan 22, 2024 at 10:28:42PM +0100, Dimitri Fedrau wrote: > > +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; > > + /* fault length in meters */ > > + dist = ((ret & MDIO_MMD_PCS_MV_TDR_STATUS_DIST_MASK) >> > > + MDIO_MMD_PCS_MV_TDR_STATUS_DIST_SHIFT) * 100; > > dist = FIELD_GET(MDIO_MMD_PCS_MV_TDR_STATUS_DIST_MASK, ret) * 100; > Hi Russell, sure can fix it. Did you have a chance to review the other patches ? Is there anything I could do to ease the review process ? I'm new to submitting patches, maybe I crossed some line without knowing ? Would be glad to get some feedback. I'm just asking because there was not much feedback besides your comments. Best regards, Dimitri