Note the "This must not modify any state." statement. By reinitialisingThank you for taking the time to review, got your concerns, and I'll address the following concerns before submitting a new patch series:
the PCS in this method, you are violating that statement.
This requirement is because this method will be called by
phylink_validate_mac_and_pcs() at various times, potentially for each
and every interface that stmmac supports, which will lead to you
reinitialising the PCS, killing the link, each time we ask the MAC for
a PCS, whether we are going to make use of it in that mode or not.
You can not do this. Sorry. Hard NAK for this approach.