shithub: riscv

Download patch

ref: f4b6320240a30144af217128eae886a531d9e78c
parent: 4cd46e8601a04d2dc4fa91f95f5be4be14943c96
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 17 18:35:01 EDT 2025

kernel: explicitely pass MiiPhy* to ethermii operations

The Mii.curphy pointer is just a convenient shorthand
that points to the first enumerated phy found by mii().

If multiple phy's are in use on a single mdio bus,
we want the interface to not depend on Mii.curphy.

This also simplifies the code for most operations,
as curphy checking can be avoided.

All clause22 accesses now pass thru miimir()/miimiw()
(except when enumerating). Which allows us to put some
serialization there later.