Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4452458rdh; Wed, 29 Nov 2023 01:47:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaUElL6k+w61iMAVOnDnlwjVUJiUcjiTSqsZ30dk/VegHQcjLUx07FNHggHKzGW1HUSyx6 X-Received: by 2002:a05:6a00:e17:b0:6bd:4ab7:5f69 with SMTP id bq23-20020a056a000e1700b006bd4ab75f69mr20677558pfb.12.1701251268218; Wed, 29 Nov 2023 01:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701251268; cv=none; d=google.com; s=arc-20160816; b=onWxBDtx9BVvtBpggd77sfCWQeBq6pod0XQkhO6coHjxwQU0aHLE9AKsTrimyY73Yd RdwWXhNJyMaweC1WGJmO3iwOBW4XdZSxTxq2zgmMIlyq/D9a3igdJrZ2COS0CU23LjU2 vHAWKXYzAdhH5Lq7f15nGHbeOfTt/CjO8RaBOYwwUVgIHDrbAdGQSiR9O1XEKrC6L0c0 UEe7gwoyw5FJxXWb2VKLUjvhHlci/Lq47h/HnD44xHDKx9ZONobGh8AD7R3hdS1QokJB 6CJCBWl4GzxB6ayfFV/W51jiANHW1S4wSQ0mxuzdaVuiKAxTbPiUkBEv4LRu4PygT2ta fn5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:subject:cc:to:from:date:message-id:dkim-signature; bh=tmdrAkRlA6xplH27jHLiMRC8wSQ2FJ2TlbcW+1L16+w=; fh=floi/2IuV1Qum9ifTQSOvf7MUhMRHRs0awnS5YABf+A=; b=LBMPhtbkrqZeJXMbQOKwPy+gh8g8mP7Y3bvFnVkm8DLd8g3slidaqIOssx9fxsxbX3 kT6iF7dsaOuDoPSmPFruukvZ/opn1RYy0QuIUS3crzxvWGoHU2ymjM4vGwItbf/ObpiT NORFEuRpAuLSVgDoekGBeZ4S5mL8qGVulHmNprzdFVXuLyQk/5sbcXAy6X5VSlp6BKAQ LqZbbbeS+QpLs8uwDpoq0FTLMI97raWThEGdrN/raawEs5W/MsUBXi66G0fC/p6otPTh tKREbIPSthg3LSzgdjqoSOQcGZ5V3xRk97EbiZm2ZbFKubPcgnhCneWLupAOFNypP3tw Wj1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iUAEW4W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p9-20020a63c149000000b005b8f181b729si14267301pgi.360.2023.11.29.01.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:47:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iUAEW4W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C66678045C75; Wed, 29 Nov 2023 01:47:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbjK2JrU (ORCPT + 99 others); Wed, 29 Nov 2023 04:47:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjK2JrQ (ORCPT ); Wed, 29 Nov 2023 04:47:16 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89341990; Wed, 29 Nov 2023 01:47:22 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-332cb136335so4503999f8f.0; Wed, 29 Nov 2023 01:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701251241; x=1701856041; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=tmdrAkRlA6xplH27jHLiMRC8wSQ2FJ2TlbcW+1L16+w=; b=iUAEW4W+7JXlTtIRoJoNaa7MYDn2tcTvU7hEJRHTSo0jfX18hprMT1wSwZ6I324hgD bpaXg2Nwr4rxir8mXFxyuEIR//SmfV68J+THGc4Q+Jb4RvrtzNpOVRJ7N4Ff26Fq9YSr hNErokaEqo2UDR92SK6VAUqo5NactGnMRSQ/m1+/m8ru+vpsTQ1acNcUYvQKsRZAK1pL kaLCfth3WSOPYvLgoNAWN9q1m++cCkdZjS364Xjqf3mz/8DALiR1/HZN7QxI8dB5CIgv kamO2s/1cuyssflV708I2M4VJA4+DuHb7HawNvWoZT5RsqCPk5IoRu0fmLSggTffXOnI NdFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701251241; x=1701856041; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tmdrAkRlA6xplH27jHLiMRC8wSQ2FJ2TlbcW+1L16+w=; b=Cn+AfzRILjJX4eiS+leiIg1Cqzlgldt/J3qF8SndRfVRWa0+3BVRpjQU6t4GJqehnm v5uY7EvZ9mm23wUHXDSLjjoPH7c9Puh6+Iu/djK+mTSz+EXFxagaZUYZclIyn42he79W e3PZpuvhkVGADOpZ8XxnhTcnSKxL1UZHLYalO5fSZiBSxcBvownswi1S+NWEMUBKuLkC bHT/H8lM7REQWilNzfwKuHjnEL6jI+FiKBth9bjPPFl3Y+EXLsfxaon6s1pxf8ZAdlgv WbxcflLVjPhouiLrvPImFP+bLXvScs03cNJjP+x1z4+Ar0APu4bLPRr4cZO1m4+1RF5y akgw== X-Gm-Message-State: AOJu0Yyf6ABppgswVoOq/jn/40MniLKGbpn06dF81omXQqG9E2Gc+HJi O2U488PCrSN38jo9K+DOZKU= X-Received: by 2002:a5d:4cc1:0:b0:332:f8d2:640f with SMTP id c1-20020a5d4cc1000000b00332f8d2640fmr7644053wrt.39.1701251241124; Wed, 29 Nov 2023 01:47:21 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id s11-20020adfeccb000000b003316b38c625sm17429283wro.99.2023.11.29.01.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:47:20 -0800 (PST) Message-ID: <656708a8.df0a0220.28d76.9307@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 29 Nov 2023 10:47:18 +0100 From: Christian Marangi To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH 08/14] net: phy: at803x: drop specific PHY id check from cable test functions References: <20231129021219.20914-1-ansuelsmth@gmail.com> <20231129021219.20914-9-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:47:45 -0800 (PST) On Wed, Nov 29, 2023 at 09:38:39AM +0000, Russell King (Oracle) wrote: > On Wed, Nov 29, 2023 at 03:12:13AM +0100, Christian Marangi wrote: > > @@ -1310,10 +1302,6 @@ static int at803x_cable_test_start(struct phy_device *phydev) > > */ > > phy_write(phydev, MII_BMCR, BMCR_ANENABLE); > > phy_write(phydev, MII_ADVERTISE, ADVERTISE_CSMA); > > - if (phydev->phy_id != ATH9331_PHY_ID && > > - phydev->phy_id != ATH8032_PHY_ID && > > - phydev->phy_id != QCA9561_PHY_ID) > > - phy_write(phydev, MII_CTRL1000, 0); > ... > > +static int at8031_cable_test_start(struct phy_device *phydev) > > +{ > > + at803x_cable_test_start(phydev); > > + phy_write(phydev, MII_CTRL1000, 0); > > I don't think this is a safe change - same reasons as given on a > previous patch. You can't randomly reorder register writes like this. > Actually for this the order is keeped. Generic function is called and for at8031 MII_CTRL1000 is called on top of that. -- Ansuel