]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'stmmac'
authorDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 20:40:49 +0000 (16:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 20:40:49 +0000 (16:40 -0400)
commit6c1a1941ace348f71385e7eae285ed79790648a7
tree29b29141f53cc5582d0ea692bd09c1278dee8dfc
parent9873c172ea202705383e098fe8a4a85598b47498
parent9581f6a28ed8bb475e657da9360e52efa29c609f
Merge branch 'stmmac'

Giuseppe Cavallaro says:

====================
stmmac: review and fix the dwmac-sti glue-logic

This patch is to review the whole glue logic adopted on STi SoCs that
was bugged.
In the old glue-logic there was a lot of confusion when setup the
retiming especially for STiD127 where, for example, the bits 6 and 7
(in the GMAC  control register) have a different meaning of what is
used for STiH4xx SoCs. So we cannot adopt the same glue for all these
SoCs.
Moreover, GiGa on STiD127 didn't work and, for all the SoCs, the RGMII
couldn't run when the speed was 10Mbps (because the clock was not properly
managed).
Note that the phy clock needs to be provided by the platform as well as
documented in the related binding file (updated as consequence).

The old code supported too many configurations never adopted and validated.
This made the code very complex to maintain and debug in case of issues.

The patch simplifies all the configurations as commented in the tables
inside the file and obviously it has been tested on all the boards
based on the SoCs mentioned.

With this patch, the dwmac-sti is also ready to support new configurations that
will be available on next SoC generations.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>