net: gem: Check rate before setting it up
authorMichal Simek <michal.simek@amd.com>
Fri, 26 Aug 2022 08:30:47 +0000 (10:30 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
commitbae7d37e526f29504dd7765c80d664c0482c94dd
treeb731f08a1d552263ad1af396413d98993fb5ef4c
parentaaf0793be36f83f1458623bb1eef0670e02e8b82
net: gem: Check rate before setting it up

On QEMU setting rate for fixed clock is failing. That's why check a rate
first if the rate is the same there is no need to ask for the change.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/bc465ffd4904bfd65208b782daa06732b915db54.1661502645.git.michal.simek@amd.com
drivers/net/zynq_gem.c