phy_write — Convenience function for writing a given PHY register
the phy_device struct
register number to write
value to write to regnum
MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation.