Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5406685rwd; Mon, 12 Jun 2023 04:52:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76eFMuXhp5OiO0Y9PDBAJ2lpdeU0YUkhbzfNsWB8Ahf3gxDHa2ucV1FyGHeXtmpozaEx3F X-Received: by 2002:a05:6358:c696:b0:12b:c4b6:94d8 with SMTP id fe22-20020a056358c69600b0012bc4b694d8mr2346132rwb.11.1686570755218; Mon, 12 Jun 2023 04:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686570755; cv=none; d=google.com; s=arc-20160816; b=d4E3ioSuEOgnx/5cU136hQh99PPFJiZriVHyxE1wr6m2Q/LpZi/2JWpSXzIlLODO8R Hdc8ni3mjE9H20TNUyLo1RosQw6abA6ipwszlT9meB7JKKYyjHWezOMz27QK+Lv4Et0a rOFVAOKgv5jt5t+xemUxVzIjl75uunj5J5EDPCtJnu+fmCaO/+SXtQrSuKRjVkyWwjdD 7AvMWaYpq4GVQm0oS5pq7XvvdKTzeahwLaPS0ZuwRfox2zHgMpu5gr//SecMBl945Q0n shHwcLGc+15iSiJZtiTEbIGYliOSguovPCCs/9O4vxbsthTcstEf0RHzdlUtd30JnmrE /fSg== 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=UiExvDORYw74p5QnBqYdJuBBOJSP+9ub4ysJtQa9u/0=; b=Tn0rLIdIxXsCd9FKCsKVpEK9DWZTO8f9jHj23YKmFZj1CUzR4JU/2LvCbQwELwYaO1 qZkRuTcl08HLI5jKQh9RVcZbG/Kf0YTOUYOdI1wWInCktu4L5QLu06PubNr4Hg0Q2/a/ 026LfQveT74cJb7G0qDiczAJGWasN7EHRBMb+x3bHrHbRSGWkKdwBNzPBYf4BJlEJuWU HkHEGtKQOXOJKwlqf9IpTxWuvhRBWprdNpanuMXBq+qNnWuyydKq0u18BfrTyEBZRHQl 3tLhD698aX0gHjmkieBSeMyv0xBVcYM87ODF/aLwKXZetylXgt3AxHibQ4DR6v94acw3 DFiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=B6frrpLU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a17090a854b00b0024664356ef7si4237295pjw.152.2023.06.12.04.52.22; Mon, 12 Jun 2023 04:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=B6frrpLU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232029AbjFLLjK (ORCPT + 99 others); Mon, 12 Jun 2023 07:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235984AbjFLLiM (ORCPT ); Mon, 12 Jun 2023 07:38:12 -0400 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 2D5327EE4; Mon, 12 Jun 2023 04:28:08 -0700 (PDT) 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=UiExvDORYw74p5QnBqYdJuBBOJSP+9ub4ysJtQa9u/0=; b=B6frrpLUni4MIqPsM7uz4qf/C3 hmuB/hiJpsdAw4oSuoMF3Dn9AQvmpy2lyr5diQJeDg4pVYzj7hncyCT9Sq4u61sa0a3hx1BVyIttA G/O36YSgf99zex7N97ziUa0IivcGdQY4UZmVwDyhrTsAIXnkwXWTXY8A4WR9NdQE5qChBbLkQR1yA y6ay0LMUQpnpd9tlEmG6mjG0SX85WtUWFUSUDQ4skiuSYjA6fOnz7f7iFaQ6+Zip3Cc8D8IXbA9g/ 5nU2zW8DrFNPAEdF6XmLeWVb/GOw+TXu/Bk7DkQpRgZ++51kgMNUFsQkWM/Qy8ZIKwb5RyThFXu5n Faj8ic4g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:40284) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q8fiO-0005f6-3z; Mon, 12 Jun 2023 12:28:04 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q8fiK-0004vJ-Qy; Mon, 12 Jun 2023 12:28:00 +0100 Date: Mon, 12 Jun 2023 12:28:00 +0100 From: "Russell King (Oracle)" To: Daniel Golle Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, AngeloGioacchino Del Regno , Matthias Brugger , Lorenzo Bianconi , Mark Lee , Sean Wang , John Crispin , Felix Fietkau , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Sam Shih Subject: Re: [PATCH net-next 6/8] net: ethernet: mtk_eth_soc: convert caps in mtk_soc_data struct to u64 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 11, 2023 at 01:39:48AM +0100, Daniel Golle wrote: > From: Lorenzo Bianconi > > This is a preliminary patch to introduce support for MT7988 SoC. > > Signed-off-by: Lorenzo Bianconi > Signed-off-by: Daniel Golle At some point, I'd really like to unpick this and see whether there's a better structure to it - so that mac_config() doesn't have to save the syscfg0 value, and restore it in mac_finish(). Given that syscfg0 is a shared register, are we sure the code that updates this register is safe from races caused by two MACs going through the config progress in two separate CPUs at the same time? Is there anything which prevents two or more MACs wanting to mess with the contents of the SYSCFG0_SGMII_MASK bits? It's difficult to tell with the current code. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!