r8169: Get and enable optional ether_clk clock
On some boards a platform clock is used as clock for the r8169 chip,
this commit adds support for getting and enabling this clock (assuming
it has an "ether_clk" alias set on it).
This is related to commit d31fd43c0f9a ("clk: x86: Do not gate clocks
enabled by the firmware") which is a previous attempt to fix this for some
x86 boards, but this causes all Cherry Trail SoC using boards to not reach
there lowest power states when suspending.
This commit (together with an atom-pmc-clk driver commit adding the alias)
fixes things properly by making the r8169 get the clock and enable it when
it needs it.
Cc: Johannes Stezenbach <email@example.com>
Cc: Carlo Caione <firstname.lastname@example.org>
Reported-by: Johannes Stezenbach <email@example.com>
Acked-by: Stephen Boyd <firstname.lastname@example.org>
Reviewed-by: Andy Shevchenko <email@example.com>
Signed-off-by: Hans de Goede <firstname.lastname@example.org>
Signed-off-by: David S. Miller <email@example.com>
1 file changed