Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp233219rwi; Wed, 26 Oct 2022 23:56:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7d7VZAxDNlgq3sPkbVJejQNa08oK2Hs7SwEztj7z0L3AXwmle5IbgOU65/f/8L9P2k9N/5 X-Received: by 2002:a63:4182:0:b0:46f:1263:1f6 with SMTP id o124-20020a634182000000b0046f126301f6mr16282407pga.611.1666853809023; Wed, 26 Oct 2022 23:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666853809; cv=none; d=google.com; s=arc-20160816; b=UR7+bcWY6KU5ooVvF7n764RdY3U9M1sUuuoe4+lhkkWYcJsxKNMUCA2eAasbtPEz2l JCIdbiep9CvOETUizCxIDtUtnkXLSLJXrbviPOjPBZ5EXzrAvlKDG9afNE1qDkZ6CKHy 91X3Fv5LGJIqpJHfhtQYzs15Hn7Cr1JbHGbYn1OZN5chLinhd+EjReB51FYUYyeoO92a ZS79cEjyvkfKOn5K0LCOud6pN7NRD7cCm7zlnsxId04RAO/Nva9CgWaYZHGAMME3Pfqy o0Z0wYP6ov+5XjsNlXM0DZCYVBh+7nQ84AASWZPp9vyluuxYPVEBkQ3cnfh2/1cQEygo ZxGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=b5A2GFSPAKlPXSyQ/35gbyiEt3fO3+/e4osgD5ldbUQ=; b=B58udDH/bKh7DwCRdsDP3QXkyAI1+0CmzLkuMvQ3U9LZLSpfoJ0bq8PJ+OioN0GHJr MvS8Nc5ae0DIRvT97HmeqAzBYzapOSgQYgRBVF+rJ9T4/3dbtFfIGm1cgZ+IB03Crd75 aw9YuTr9b7mavsD3Jgl5kgeRYak5DdfAD2K/DrYlRSqpOUIayLJi+5j5Yz0VfwiL4LdS j6yHT3z9rDVfB+rHEAsmZHJoKK7VdDZqcdZNWVikOkIj+9FZSVDe+tb9345/8v2hABlL 7UcmyZ2QfLk5oqzO1vS3idZsydulPxWIEVVM4D80pXfgUNHE6aymE3jeINBAetxs2kuk 765A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=PHJNiL8E; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a6553cf000000b0046ec98eaae4si657473pgr.451.2022.10.26.23.56.36; Wed, 26 Oct 2022 23:56:49 -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=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=PHJNiL8E; 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=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234296AbiJ0Gf1 (ORCPT + 99 others); Thu, 27 Oct 2022 02:35:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiJ0GfZ (ORCPT ); Thu, 27 Oct 2022 02:35:25 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 182F995ADD; Wed, 26 Oct 2022 23:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1666852522; x=1698388522; h=message-id:date:mime-version:from:subject:to:cc: references:in-reply-to:content-transfer-encoding; bh=b5A2GFSPAKlPXSyQ/35gbyiEt3fO3+/e4osgD5ldbUQ=; b=PHJNiL8E7KZGVPds5HjkYQsXAEH9vPkRjHKpnEqJC0AW5lwhuZKc4cQH +/dKYs9c62+NUilPjaJvnHdaP2Jpzy3DQlEgf0fqo1CGerAnzVOBhG3sa oqEVXfIOg06ixlzUwa70JBNIdHPF/cHHhRzVUW5S1zZB16YDAhgIHuCNn Jcejlq1+ymZmo3ye0hszYC2moFLU2HVQ6Mi7dWPz6yH60eYcD6PpR+SJs H9NnJ8rVHKfHAgYhBLwot77yurTjFPIGDdAUpKVsGXJ6uRNA+QeHicoRV pipKXu68PhcKP7cNC50Dudg/V45RF37YxE5lKUFauPi2xpemTxMunvIPP g==; Message-ID: <128467d6-8249-9f25-21a7-777fff9854d9@axis.com> Date: Thu, 27 Oct 2022 08:35:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 From: Camel Guo Subject: Re: [RFC net-next 2/2] net: dsa: Add driver for Maxlinear GSW1XX switch To: Andrew Lunn , Krzysztof Kozlowski CC: Camel Guo , "David S. Miller" , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Krzysztof Kozlowski , Paolo Abeni , Rob Herring , Russell King , Vivien Didelot , Vladimir Oltean , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Rob Herring , kernel References: <20221025135243.4038706-1-camel.guo@axis.com> <20221025135243.4038706-3-camel.guo@axis.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: se-mail06w.axis.com (10.20.40.12) To se-mail03w.axis.com (10.20.40.9) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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 10/25/22 16:56, Andrew Lunn wrote: >> > +EXPORT_SYMBOL(gsw1xx_shutdown); >> >> 1. EXPORT_SYMBOL_GPL >> 2. Why do you do it in the first place? It's one driver, no need for >> building two modules. Same applies to other places. > > At some point, there is likely to be SPI and UART support. The > communication with the chip and the core driver will then be in > separate modules. But i agree this is not needed at the moment when it > is all linked into one. Do you suggest that currently we put the content of gsw1xx_core.c and gsw1xx_mdio.c into one file and split them later at the time when another management mode (e,g: spi) is added? Actually I kinda hope this piece of code (gsw1xx_core.c) can be reused in lantiq_gswip in short future. I tried to use the logic in lantiq_gswip directly on the gsw145 chip. Unfortunately it did not work. It seems that the GSWIP part changes a lot. > >    Andrew