RE: [PATCH net-next v3 1/2] net/ethernet/realtek: Add Realtek automotive PCIe driver code

From: Justin Lai
Date: Mon Aug 21 2023 - 11:08:23 EST


> > 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

Thanks, I understand what you mean.
But I2C, SPI, MDIO are connected to the SoC through this chip's external pins, not on the PCIe bus.
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?
Not everyone will use this function.