Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp453441rdh; Tue, 22 Aug 2023 00:10:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIYOBHOpgMEzHFama8qEqN4kQbdLcwYeoSoVcXUq4JtwmNiYr6Mh8juKMP/tm+IiH3cPci X-Received: by 2002:aa7:d996:0:b0:522:d6f4:c0eb with SMTP id u22-20020aa7d996000000b00522d6f4c0ebmr5811728eds.40.1692688244353; Tue, 22 Aug 2023 00:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692688244; cv=none; d=google.com; s=arc-20160816; b=VI5JyzFmv2hl/nTLzUa6JEQ3cN5NKd+6kJgKVBQuwstKnyL0Sszg1dx9W14UJqVjhn RC0VimapUPSV6z4xj/Py7dRjkmqyhf3bSd3Ow5H0HEKxmOWE3lPQePnyNVfeljPtljwV YfdG0R6mDoTmdB0PWg4HDWBhRvouu+fD4VyXKklZbzpAv8ddeXozoBnPkaY91O7IkqdL lnVIo7yd8KF1GmedzZXpFn19R48RcoxhlQO8h6iTsuRTyVy2jI5dzT16jNB7H6Cs9XX2 frHBNVc9wi6f3Akmh8JikWssz4Y2Dq+gig3wpffrDcJiWTRk71ZkqcB0yaiWVJr7tlC7 WuJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=BL+kew/AmPo1MQyWICbtKc0yeFzpkk4LGzWg3il/qxE=; fh=Am76m85Wub4Tfou4DIPLY6b8ACS2R6coYVh/n7W3W+I=; b=FhEn3wjdZ8TcR3yzCpaysRh7+FcBgIiYuN6f35VCF7p3yT20iVnsP5k5vzuj+bZ/Sm ucuVAFOcZkWJgXH7fuiyXk5+m64WoqdnwF5xj685QDPyrwDxIQxrsRm8FhzWVg36hplt Pm5XVmHfl0XE0A9ujhsjCFDDFaLtPeZl1HbpVu098zVaG3M3gvDKrUEMta9k82XMe+wX +igekfrGdNFFeCDLqOwcIbk/oLD9GFFqefVZ8rqZIGUUj7XOTlGIdI/egXtu0JO2raN1 1bF5tFJaT9R985UYqK1QGHxztThkBdA7cT9Cq3YRtlLzRyV3sKAM61yOWnSqzmJADu29 11IQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020aa7de83000000b005256c451a04si6699146edv.523.2023.08.22.00.10.20; Tue, 22 Aug 2023 00:10:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbjHVD2C convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Aug 2023 23:28:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232479AbjHVD2B (ORCPT ); Mon, 21 Aug 2023 23:28:01 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 99BB1CCA; Mon, 21 Aug 2023 20:27:47 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 37M3R5TO0001870, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 37M3R5TO0001870 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Aug 2023 11:27:05 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 22 Aug 2023 11:26:28 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 22 Aug 2023 11:26:28 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Tue, 22 Aug 2023 11:26:28 +0800 From: Justin Lai To: Andrew Lunn CC: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH net-next v3 1/2] net/ethernet/realtek: Add Realtek automotive PCIe driver code Thread-Topic: [PATCH net-next v3 1/2] net/ethernet/realtek: Add Realtek automotive PCIe driver code Thread-Index: AQHZz4Ya38d07ViN20S7bf3O9T4Qta/q9pcAgAMgk2D//87KAIABzfpQ///CfgCABJnu0IAALOEAgACljtD//5/vgAAlziXA Date: Tue, 22 Aug 2023 03:26:28 +0000 Message-ID: References: <20230815143756.106623-1-justinlai0215@realtek.com> <20230815143756.106623-2-justinlai0215@realtek.com> <95f079a4-19f9-4501-90d9-0bcd476ce68d@lunn.ch> <4955506dbf6b4ebdb67cbb738750fbc8@realtek.com> <4951391892534eaeb2da96f052364e4c@realtek.com> <4b630aeb-3098-4108-b8dc-7da6e55a7cf1@lunn.ch> <6d35d56f78b7452b9330c3257748fa3c@realtek.com> <97f3744d-afbf-4562-9168-5b9e211fac1f@lunn.ch> <4db3248874d64418b63fdf5c5e8a0f79@realtek.com> <3e5b2f0a-3661-4147-bc4e-784eecf41364@lunn.ch> In-Reply-To: <3e5b2f0a-3661-4147-bc4e-784eecf41364@lunn.ch> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.210.185] x-kse-serverinfo: RTEXMBS04.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 > > But I2C, SPI, MDIO are connected to the SoC through this chip's > > external pins, not on the PCIe bus. > > Thanks, that was the information i was trying to get at. > > > Actually, there is the other function in the PCIe GMAC(Multiple > > function) to manage the registers of Switch Core. Should they be > > integrated into the MFD driver? > > Can you cleanly attach another PCI driver to those functions? Yes, they could be attached individually > You need to use an MFD when there is a single top level addressable block of > hardware which has multiple functions. Thank of an I2C device, which has a > single address on the bus, but multiple functions. > Access to that one address needs to be shared via multiple drivers. The MFD > framework provides the glue to share access to the hardware. > > However, PCI identification and addressing is more flexible. So long as they are > separate PCI functions, you should be able to load two drivers and not have > problems. Then you don't need an MFD. Thank you very much for your comments and time for review.