Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1345360rda; Mon, 23 Oct 2023 09:41:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGptERstvy0u5jkEGgYGGk8XUmCbroT2w3sd0g7n8qUZjkJZ4/whZQK//bW31LMgd+awiV X-Received: by 2002:a05:6a00:1a09:b0:691:21:d9b9 with SMTP id g9-20020a056a001a0900b006910021d9b9mr6913195pfv.30.1698079268127; Mon, 23 Oct 2023 09:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698079268; cv=none; d=google.com; s=arc-20160816; b=psD1I1S1mc1NC2Tj/waYXtuFoQ00KIPWIFlpwE2sK9qDKKbAmBy53WEVLeDEoG/rsg Q9RF7drYHV3fWzx8MBq4IepkBdE+CpIHeDslOx8ufUm3qPo69MZa6R+ZO8ejUbRoYflv 0X/cmjTFfDLwZCgIswv+D1ssFinLgOOyjI+7I0gTp7WB20BymX9mGTUaHpYEDQd+z0Za SEeq2Nco+jKD7/P+hyM8X/gKJSOTWQtzI75vJWre2SyG1sciqSczpMd1Am381iKPbz5u Vrym7Irvs8144N1OBfQsmCIVjYhPfuh+o9UdFMSPbA87CX865fdf216oHislSnvwzegA DVLQ== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=2Qgu3sV7JqSs1+xqVkj3Q4GC+iKi/Wf5NSoQxrtF3ew=; fh=WKrlE/FBCh6S0p0cjULsqYvUKe/UlnCemNlM2pknmQI=; b=LP02W2mXenzMWvjFpVJqC089cmbtrSX5fsHNEjX2uT841vXLHxv4q4OKfQfwa/n4Jz j2SYDR0U10I7skla8AFgbr5VvN40evDaeHwPoRZa4MWwmvNnZq1kWXQyx/1TUHEtUIrT XYoXVYjhmXdJEY8W03F3u7R/sN+yySnv2cKucsjHOfaN5+CYrw80mWatlg0yUF6hDdBs mQORNAaTGEtF7heviXAtXNk8KWFhBz0rSOOiaRVAci4/3wquRoVpXNcE3cW7Ew9Pm3qn eGlx0iqig7w8ZoOtxmubF41eGdK4kyToPsZleHNAfS5XeBaNURL69y2P7an0ro3feIY7 9YIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="V/xOy/CX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l16-20020a056a0016d000b006ac19b943cfsi6731284pfc.329.2023.10.23.09.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="V/xOy/CX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 730AF8082CFD; Mon, 23 Oct 2023 09:40:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbjJWQku (ORCPT + 99 others); Mon, 23 Oct 2023 12:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjJWQks (ORCPT ); Mon, 23 Oct 2023 12:40:48 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D6B993; Mon, 23 Oct 2023 09:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=2Qgu3sV7JqSs1+xqVkj3Q4GC+iKi/Wf5NSoQxrtF3ew=; b=V/xOy/CXT9JTBGtsL7Y3xvmZwV rnjrtnpa5D22ISWgGO9NXgw8FxE1TOh+Ky7E5bQuEIBPVohIRtEarYFHeqnEvmA8GPV33pt+97QuE qNoxRycGKX+H0q2vf7UImSz8VoL2M2kkyftM18WG2htwIMUd1lNv1JzSTbHPyZMJga6Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1quxyl-0032zT-EI; Mon, 23 Oct 2023 18:40:35 +0200 Date: Mon, 23 Oct 2023 18:40:35 +0200 From: Andrew Lunn To: Romain Gantois Cc: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski , Jakub Kicinski , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko , Andy Gross , Bjorn Andersson , Konrad Dybcio , Maxime Chevallier Subject: Re: [PATCH net-next 2/5] net: dsa: qca: Make the QCA8K hardware library available globally Message-ID: <3f279720-5386-4ea2-b54c-ffc44277b1cc@lunn.ch> References: <20231023155013.512999-1-romain.gantois@bootlin.com> <20231023155013.512999-3-romain.gantois@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231023155013.512999-3-romain.gantois@bootlin.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:40:56 -0700 (PDT) > @@ -62,21 +61,37 @@ const struct qca8k_mib_desc ar8327_mib[] = { > MIB_DESC(1, 0xa8, "RXUnicast"), > MIB_DESC(1, 0xac, "TXUnicast"), > }; > +EXPORT_SYMBOL(ar8327_mib); Christian should decide, since he wrote most of this code, but i would prefer EXPORT_SYMBOL_GPL(). > --- a/drivers/net/dsa/qca/qca8k.h > +++ b/include/linux/dsa/qca8k.h > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > > #define QCA8K_ETHERNET_MDIO_PRIORITY 7 > #define QCA8K_ETHERNET_PHY_PRIORITY 6 > @@ -265,6 +266,7 @@ > #define QCA8K_PORT_LOOKUP_STATE_LEARNING QCA8K_PORT_LOOKUP_STATE(0x3) > #define QCA8K_PORT_LOOKUP_STATE_FORWARD QCA8K_PORT_LOOKUP_STATE(0x4) > #define QCA8K_PORT_LOOKUP_LEARN BIT(20) > +#define QCA8K_PORT_LOOKUP_LOOPBACK_EN BIT(21) Maybe do the move first, and then add new features in another patch? Andrew