qemu-cr16/hw
Guenter Roeck e530e5d034 hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bus
The Microchip PolarFire SoC Icicle Kit supports two Ethernet interfaces.
The PHY on each may be connected to separate MDIO busses, or both may be
connected on the same MDIO bus using different PHY addresses.

To be able to support two PHY instances on a single MDIO bus, two properties
are needed: First, there needs to be a flag indicating if the MDIO bus on
a given Ethernet interface is connected. If not, attempts to read from this
bus must always return 0xffff. Implement this property as phy-connected.
Second, if the MDIO bus on an interface is active, it needs a link to the
consumer interface to be able to provide PHY access for it. Implement this
property as phy-consumer.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20251004200049.871646-2-linux@roeck-us.net>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2025-10-24 09:24:08 +10:00
..
9pfs 9pfs: Stop including gstrfuncs.h 2025-09-18 21:21:29 +02:00
acpi acpi/generic_event_device.c: enable use_hest_addr for QEMU 10.x 2025-10-05 08:06:32 -04:00
adc qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
alpha qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
arm hw/arm/aspeed: Remove ast2700fc self-aliasing 2025-10-22 08:14:09 +02:00
audio hw/audio: replace AUD_log() usage 2025-10-22 08:55:28 +02:00
avr qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
block virtio: unify virtio_notify_irqfd() and virtio_notify() 2025-10-05 09:01:08 -04:00
char First RISC-V PR for 10.2 2025-10-03 04:57:12 -07:00
core hw/core/register: remove the `register_finalize_block' function 2025-10-21 20:16:46 +02:00
cpu qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cxl hw/cxl: Convert cxl_fmws_link() to Error 2025-09-30 14:43:53 +02:00
display hw/display: add blob map/unmap trace events 2025-10-20 13:46:28 +01:00
dma hw/dma/xlnx_csu_dma: skip automatic zero-init of large array 2025-06-12 13:40:15 -04:00
fsi qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
gpio hw/gpio: Add property for ASPEED GPIO in 32 bits basis 2025-10-22 08:14:09 +02:00
hppa hw/hppa: Reduce variables scope in common_init() 2025-10-13 21:13:08 +02:00
hyperv system/ramblock: Move ram_block_discard_*_range() declarations 2025-10-07 03:37:03 +02:00
i2c hw/i2c/smbus_eeprom: Add minimum write recovery time for DDR2 2025-10-21 20:09:57 +02:00
i386 hw/i386/apic: Prefer APICCommonState over DeviceState 2025-10-21 20:16:47 +02:00
ide hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace" 2025-10-21 20:16:47 +02:00
input hid: fix incorrect return value for hid 2025-10-05 09:46:06 +03:00
intc hw/intc/arm_gicv3_kvm: Avoid reading ICC_CTLR_EL1 from kernel in cpuif reset 2025-10-23 13:12:50 +01:00
ipack qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
ipmi qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
isa x86: ich9: fix default value of 'No Reboot' bit in GCS 2025-10-05 09:01:08 -04:00
loongarch hw/loongarch/virt: Sort order by hardware device base address 2025-10-15 11:07:37 +08:00
m68k hw: add compat machines for 10.2 2025-08-27 07:07:53 +02:00
mem hw/cxl: mailbox-utils: 0x5604 - FMAPI Initiate DC Add 2025-07-15 02:56:40 -04:00
microblaze hw/microblaze: Add missing FDT dependency 2025-07-15 00:24:26 +02:00
mips hw/mips/malta: Silence warning from ubsan 2025-09-09 09:34:45 +02:00
misc hw/core/register: remove the calls to `register_finalize_block' 2025-10-21 20:16:46 +02:00
net hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bus 2025-10-24 09:24:08 +10:00
nubus qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
nvme pcie_sriov: Fix broken MMIO accesses from SR-IOV VFs 2025-10-05 09:01:08 -04:00
nvram hw/core/register: remove the calls to `register_finalize_block' 2025-10-21 20:16:46 +02:00
openrisc hw/openrisc/openrisc_sim: Avoid buffer overflow build error 2025-10-21 20:09:57 +02:00
pci virtio,pci,pc: features, fixes 2025-10-06 08:14:03 -07:00
pci-bridge hw/arm/smmu-common: Check SMMU has PCIe Root Complex association 2025-09-16 17:31:54 +01:00
pci-host hw/pci-host/raven: Use correct parameter in direct access ops 2025-10-21 20:09:56 +02:00
ppc hw/ppc: Enable fadump for PSeries 2025-10-23 17:37:41 +05:30
remote hw: Remove unnecessary 'system/ram_addr.h' header 2025-10-07 05:03:56 +02:00
riscv hw/riscv: Correct mmu-type property of sifive_u harts in device tree 2025-10-24 09:24:08 +10:00
rtc hw/rtc/mc146818rtc: Assert correct usage of mc146818rtc_set_cmos_data() 2025-10-21 20:16:47 +02:00
rx qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
s390x hw/s390x/ccw: Remove SCLPDevice::increment_size field 2025-10-21 15:47:21 +02:00
scsi virtio,pci,pc: features, fixes 2025-10-06 08:14:03 -07:00
sd hw/sd/sdhci: Do not unparent in instance_finalize() 2025-09-24 09:23:20 +02:00
sensor qemu: Declare all load/store helper in 'qemu/bswap.h' 2025-07-15 02:56:39 -04:00
sh4 include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
smbios hw/smbios: allow clearing the VM bit in SMBIOS table 0 2025-10-05 08:17:08 -04:00
sparc hw/sparc/leon3: Remove unnecessary CPU() QOM cast 2025-10-13 21:00:09 +02:00
sparc64 qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
ssi hw/ssi/aspeed_smc: Fix incorrect FMC_WDT2 register read on AST1030 2025-08-04 09:07:38 +02:00
timer hw/pcspk: use explicitly the required PIT types 2025-10-22 08:55:28 +02:00
tpm qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
tricore qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
uefi hw/uefi/ovmf-log: Fix memory leak in hmp_info_firmware_log 2025-10-23 13:27:27 +02:00
ufs hw/ufs/lu: skip automatic zero-init of large array 2025-06-12 13:40:16 -04:00
usb hw/usb/hcd-uhci: don't assert for SETUP to non-0 endpoint 2025-09-25 11:06:27 +01:00
vfio vfio: only check region info cache for initial regions 2025-10-22 08:12:52 +02:00
vfio-user vfio: rename field to "num_initial_regions" 2025-10-22 08:12:52 +02:00
virtio hw/virtio: Compile virtio-mem.c once 2025-10-21 20:09:56 +02:00
vmapple hw/vmapple: include missing headers 2025-10-13 21:13:08 +02:00
watchdog wdt_i6300esb: fix incorrect mask for interrupt type 2025-10-05 09:46:06 +03:00
xen hw/xen: pass PCI domain to xc_physdev_map_pirq_msi() 2025-10-21 20:16:46 +02:00
xenpv hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
xtensa hw/xtensa/xtfpga: Have xtfpga_init() only initialize MMU 2025-10-13 21:00:09 +02:00
Kconfig vfio-user: add vfio-user class and container 2025-06-26 08:55:38 +02:00
meson.build hw/meson: enter target hw first 2025-09-02 17:57:05 +02:00