]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ave: add multiple clocks and resets support as required property
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 19 Apr 2018 07:24:53 +0000 (16:24 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Apr 2018 14:49:40 +0000 (10:49 -0400)
commit2517380ea46130c960a6eb1c24367f2b793c4497
tree7abbc9872bb325cc4a021af33d595d009639c7d0
parent9d3b9fc149b305016584b152b850c319eb7fce1d
net: ethernet: ave: add multiple clocks and resets support as required property

When the link is becoming up for Pro4 SoC, the kernel is stalled
due to some missing clocks and resets.

The AVE block for Pro4 is connected to the GIO bus in the SoC.
Without its clock/reset, the access to the AVE register makes the
system stall.

In the same way, another MAC clock for Giga-bit Connection and
the PHY clock are also required for Pro4 to activate the Giga-bit feature
and to recognize the PHY.

To satisfy these requirements, this patch adds support for multiple clocks
and resets, and adds the clock-names and reset-names to the binding because
we need to distinguish clock/reset for the AVE main block and the others.

Also, make the resets a required property. Currently, "reset is
optional" relies on that the bootloader or firmware has deasserted
the reset before booting the kernel.  Drivers should work without
such expectation.

Fixes: d63832290b79 ("net: ethernet: socionext: add AVE ethernet driver")
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt
drivers/net/ethernet/socionext/sni_ave.c