Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4498778rdh; Wed, 29 Nov 2023 03:17:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhKqvgmFeWgDiiuL4TLL7MpnKipxBYHhTBFwhpYVnGnw+XQ87Fhmf+iux2O1P8n4oQBbE9 X-Received: by 2002:a17:90b:1bd0:b0:285:ba0a:1c9d with SMTP id oa16-20020a17090b1bd000b00285ba0a1c9dmr11457259pjb.6.1701256637142; Wed, 29 Nov 2023 03:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701256637; cv=none; d=google.com; s=arc-20160816; b=lRd7mvmpigtm5uJ+f49Ka0goiCBCXxe1nHDHyr/76lsp0jQP7rdvrw9CxvMX/eKAC1 1Sm/bqwstOqKdvnMxfncXFV7bfYqy4CHm9YYvdFKvmrj4G+8jd6DJEuSHR+gYwEsIdbI CE1fo7R3LNLRKu/THHO0QwsRlKxYuQ17Tusfuy1p8L5Z75JxaiF2VdG8unf6piZ1662O dAPPklzXUBET1h/LTMRv2KuJIv0rgZTVdl6UGzoSosAVGvv3eRrGJlacFnvFVc4egxIL Gss9vY6PG6/XR3H5isCNwpwe0hWs4SMnB/InMIspTWgCSfpF86SSqiYR5aIg+oZuEDAa 3Fkw== 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=TXoWjQC2UWKNPcPefB1OgmDGBq/ISO9jtkQUDslrPEk=; fh=floi/2IuV1Qum9ifTQSOvf7MUhMRHRs0awnS5YABf+A=; b=PQpW4hsNwZ1jNwTFMf8SwxuoCKTHmZU2SNPRdsq92JPbI1P8dpMuJ74KcMpxfrJ01n cPOSqz4AA2t3usCrnQNqlhYu3+CSk3Q/1In7g58nZoHEZ3wuI88N7BJ3CWI5ugHKto1j 7yy06MCfAjVrNcRq2gZbULqAwOVIf+038IOcFa7ngyz0pXoZrfdHh0X4fsX4Pu6La1RW BwSWjw//BtGg37l6CBOo7rRIlR++Sm8BiijL7juvuNyD0HpoDmMoVoi1Yitlua5cvJq+ it5Mh319reJpIfggg4nVmWn5XYbG6ZWg8acfJ0fNhfJgECbhxCYQmZrQu1G0N56qFb7t PA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=inHOuUAH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kb8-20020a17090ae7c800b00280072b397csi1173138pjb.30.2023.11.29.03.17.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 03:17:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=inHOuUAH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 8673980AD506; Wed, 29 Nov 2023 03:17:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232704AbjK2LQn (ORCPT + 99 others); Wed, 29 Nov 2023 06:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbjK2LKC (ORCPT ); Wed, 29 Nov 2023 06:10:02 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 728451999; Wed, 29 Nov 2023 03:08:57 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40b4c2ef584so15059795e9.3; Wed, 29 Nov 2023 03:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701256136; x=1701860936; 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=TXoWjQC2UWKNPcPefB1OgmDGBq/ISO9jtkQUDslrPEk=; b=inHOuUAHtYRE4PthoG239jN0rmTWOzXMfnJoePFi0BXzzoNWiET5KZhdAIG5HdIM6c 3L/C03BiOIwbDRThqJCqfCIBusn/7tuS7cVNr/fiwO/3KxsF268YA9YLECBledZy+ZOU n5yDt74x3juXc0mumNyN8+s6nI9xmslLXrTENQ+24VhSYGB/8oaGMZtvOYSfjZ5NacB+ ceGdTG8f6L7p7HSgphtKo4q+V4IrilwJ5GUj/axPYb0BH9Pszh7useIQ/qqyv0ZF8Lky nxZZt3e8Bdy50KsOxG/UQIZ08onJPYiaKL222+pVc30lT/Xx73BeGI7Op5yY6f9AsqP+ T7dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701256136; x=1701860936; 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=TXoWjQC2UWKNPcPefB1OgmDGBq/ISO9jtkQUDslrPEk=; b=Dm3IE1fwnivzqJke3zxc7wei4YZTyRYx40nOlBxz8GkcpxhXYrTxSNmo11rMixJrxB ozgeV+dakIUorOhWtdWEDsTYwBmG5m+BdpswCR1RpJIX8I+0BKV3hUNGHNE+SelHvchr kza9XyXAMa+t++nDfl1Bx2VR9Vt0Zvt3CXlcJmmWdGiaK8D8wgXchTtHDM9JEujmKagO Kei5IV+7cx7gUDPILS01JkoPTrSgNzvY5svHJAsmjqOohlrMXTZyxTcGNUDD5JIwh9Gv tA2QVrmpGdHofbkP990jMJHmdNSjAgCLbKJaR+beYaorB9O93wCd6nU/fUgRaPMiq6S7 YFXQ== X-Gm-Message-State: AOJu0YwmYg482q4xqooQf0gceCsOmkQto6tyIDUuHM4RPCdr6fHX/ws7 FaXotlNwIbt3iLxg17v5R2E= X-Received: by 2002:a05:600c:290:b0:40b:377a:2ac1 with SMTP id 16-20020a05600c029000b0040b377a2ac1mr12898477wmk.20.1701256135472; Wed, 29 Nov 2023 03:08:55 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id jg28-20020a05600ca01c00b0040841e79715sm1811020wmb.27.2023.11.29.03.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 03:08:55 -0800 (PST) Message-ID: <65671bc7.050a0220.35082.4ae4@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 29 Nov 2023 12:08:52 +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 06/14] net: phy: at803x: move at8031 specific data out of generic at803x_priv 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: 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 03:17:14 -0800 (PST) On Wed, Nov 29, 2023 at 09:35:37AM +0000, Russell King (Oracle) wrote: > 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. > Have to think about it, changing the order of the WoL module enable and setting the MAC should not change anything as the real enablement is the WoL interrupt. (I guess this is why the WoL module is enabled by default as the interrupt is disabled by default resulting in the module doing nothing) > 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. > Would it be better to split this in more smaller commit? One for moving the at8031 function and the other for refactor of some function? -- Ansuel