From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3216EEE4993 for ; Mon, 21 Aug 2023 13:14:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235301AbjHUNOV (ORCPT ); Mon, 21 Aug 2023 09:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbjHUNOU (ORCPT ); Mon, 21 Aug 2023 09:14:20 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073DE135; Mon, 21 Aug 2023 06:14:00 -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=D+Evs2ldTgHIJLnwm1dUWAxe+Hr0v4gc4CgnDjem250=; b=WH3lLGhTpskfQMFY1y8k4SsKZp H7PpPcR0SJgpeou8r0qY3vusN9fkIuBT1whM7vwqtURxYVCJmeeXGEDukeelygBVkn6vUsrUDzf+6 d8Nz6UE/wVpwajht70R4QERgTYwK8tW3L2Yyiq519XiBbPTOf4YsJG3PHLxu1K3roq4c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qY4iE-004goS-3A; Mon, 21 Aug 2023 15:12:54 +0200 Date: Mon, 21 Aug 2023 15:12:54 +0200 From: Andrew Lunn To: Justin Lai 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 Message-ID: <97f3744d-afbf-4562-9168-5b9e211fac1f@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d35d56f78b7452b9330c3257748fa3c@realtek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Sorry, please allow me to explain again. > The RTL90xx Series supports I2C, MDC/MDIO and SPI slave to access the registers of Ethernet Switch Core and the external CPU could manage it via these pins. I was wondering if you had mis-understood my question. The bus 'master' is the device which controls the bus. SPI and MDIO has one bus master, and there can be multiple clients on the bus. I2C in theory can have multiple bus masters on one bus, bit it is not done too often. Your switch is a client. So my question was, are the bus masters also on PCIE enpoints within the chip. From an architecture standpoint, it would make sense they are, all you need is one 4x PCIE slot, and this chip gives you everything you need. But you can also make use of the SoCs I2C, SPI or MDIO bus. Andrew