I've tried accessing MDIO address space and MAC controller address space inIn general, sharing a clock is not a problem. The clock API does
u-boot with `md` and `mw` [1]. From the result, i guess the CLK_BUS is the
System Bus clock (AHB Bus clock), and the CLK_MAC is the clock shared by
both MDIO bus and MAC. The MAC has a internal clock divider to divide the
input clock(54MHz in common) to a configurable variable rate.
reference counting. So if two consumers enable the clock, it will not
be disabled until two consumes disable the clock. So it should not be
an issue for both the MAC and the MDIO driver to consume the clock.
However, the funny PHY reset code is going to be key here. We need to
understand that in more detail.
Thanks for your comment. Also sorry for the inconvenience I brought.
Talking about details, you commit messages need improving. The commit
message is your chance to answer all the reviewers questions before
they even ask them. Removing a binding was always going to need
justification, so you needed to have that in the commit message. In
order to review a DT bindings, having an overview of what the hardware
actually looks like is needed. So that is something which you can add
to the commit messages.
Will rewrite commit logs in next version.
Please take a look at your patches from the perspective of a reviewer,
somebody how knows nothing about this device. What information is
needed to understand the patches?
Andrew