Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4447361rdh; Wed, 29 Nov 2023 01:36:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP4bSnBAlVdLJE/XJD4wQgLamcPDRkkWi006gROQ2tG1VF/ekK/+nlTuYnk3V4Ggb8L0o7 X-Received: by 2002:a17:90b:1c0c:b0:285:c1c0:ffb4 with SMTP id oc12-20020a17090b1c0c00b00285c1c0ffb4mr9790435pjb.37.1701250574460; Wed, 29 Nov 2023 01:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701250574; cv=none; d=google.com; s=arc-20160816; b=EW1+Ao6FliwkDDY0CYFatcACcaolVmMV/QCOtPT8pNJDlayie9h8/W9ovXhK+zwoUS YdZywW/qpvOEiuG8Elgf9bajcqCAtxuEo8NBCIUzi9aBbTF72tdw1bOBoDGXv57BdfGW LukBxxO+wyWY196C9kJCbytIsLxrkCNrJg3ttGMZYRRKRyNTV+kAMVe2cwiVysyh9vQV IrSsPG5q+xv4vV3EnZaDExqYp3OL3Qp+1Xe9O1CNcwyWtzkpjjjaXSiIt/tU35UXadAC UlYO+YSMzpsqtozlA3g+FSq8rz2RZAFGG/skBZTzFsVF/XFBnlxhuIwpwBMwcIdD708O Bapg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GkiV3Yxh9yW7+tSda6S0fOmUrfZQDwNF4HZzW/LWK2U=; fh=2M7VhQjoutm7+TLSQk6KyKOMKW2hojhjH1KY0cMqkNA=; b=t5+QkfM/00PQ4yvCCtJyCfMbw+yWZsXEdFDq48y7dB9c/uvgrNt0lfR5sAq+4RWhYw IdV0QI23rNKir15/FmC5Ah9fOdEFe/puUEu0cKEbxGDiaACBkYBp+gmeCX5Ane72qEf3 uHWZ7zb3bFO5jgotAQWPj38bmfOJPleQhHUK8QaCVUyCmqDcjh21LR7XBynIIPua1y0E f407B9SMYASRhy6biXNeiuRBXP9w8xAhYgyKckutLl0HstmOC11mG0mpHWgykL19AEGi O7q4HFKOhjuCSmdaJ5TkMOUl1WYZy37TuhJNNX2F2GXaTqvvrtc094CkkVva2FJG+xG6 2JSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=vVla0Ao5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q9-20020a17090a9f4900b002858e8906e1si967724pjv.99.2023.11.29.01.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=vVla0Ao5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 93552805690A; Wed, 29 Nov 2023 01:36:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjK2Jfv (ORCPT + 99 others); Wed, 29 Nov 2023 04:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjK2Jfi (ORCPT ); Wed, 29 Nov 2023 04:35:38 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9F1171D; Wed, 29 Nov 2023 01:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GkiV3Yxh9yW7+tSda6S0fOmUrfZQDwNF4HZzW/LWK2U=; b=vVla0Ao5AFogSGekOYR75lUYB+ Wz72kQOv5TKzViyr1vPrtOyNZ7tZgJPhxg9LOWKD3w8loc1ijDV22n4sBBI6A/vRpKIkULdg/3EQi um7nNW462hKx/C1aXwY7DfllsXqTP9FGcJhylcCsmssUjwDWwXAp3qJkHUOfswLLrLZWH0rc0UAN5 VwgxQOu2j7MnQU5FuXfajq6Xz8TncxEOa+VmYrV4KRsS3k1gO0jkCngx5DR4uqh8yexyo0Ol4gdMw tQx8pnME4bEfD3ZXTu48xRiqlVng8ERKjWo1oi92LJ2YrWCDYBpL1Pug32141DgSIfWi/dp4W3iKk jciHtp9g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45320) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r8Gyl-0008V6-2r; Wed, 29 Nov 2023 09:35:35 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r8Gyn-0003rd-IZ; Wed, 29 Nov 2023 09:35:37 +0000 Date: Wed, 29 Nov 2023 09:35:37 +0000 From: "Russell King (Oracle)" To: Christian Marangi 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 06/14] net: phy: at803x: move at8031 specific data out of generic at803x_priv Message-ID: References: <20231129021219.20914-1-ansuelsmth@gmail.com> <20231129021219.20914-7-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129021219.20914-7-ansuelsmth@gmail.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:36:10 -0800 (PST) On Wed, Nov 29, 2023 at 03:12:11AM +0100, Christian Marangi wrote: > Rework everything related to specific at8031 function to specific > function and allocate the 2 bool, is_1000basex and is_fiber and the > regulator structs to a dedicated qca8031_data struct. > > This is needed to keep at803x functions more generic and detach them > from specific check of at8031/33 PHY. > > Out of all the reworked functions, only config_aneg required some code > duplication with how the mdix config is handled. > > This also reduces the generic at803x_priv struct by removing variables > only used by at8031 PHY. You are changing the order that register writes happen, e.g. for the set_wol() method. at803x_set_wol() very clearly does stuff like configuring the ethernet MAC address _before_ enabling WoL, and that can fail. Your new code enables WoL and then calls at803x_set_wol(). If at803x_set_wol() fails (e.g. because of an invalid MAC address) you leave WoL enabled. This is a change of behaviour. I haven't checked anything else, but given the above, I think you need to think more about how you make this change, and check whether there are any other similar issues. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!