summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2019-10-18 16:11:43 +0200
committerDavid S. Miller <davem@davemloft.net>2019-10-19 20:58:39 +0200
commitbd310aca442fcc72731b7acb65d32d05c956d56b (patch)
tree99daa26a22b36c47f96eabda9fe45ed7df9c01fe /net/sched
parentxen/netback: fix error path of xenvif_connect_data() (diff)
downloadlinux-bd310aca442fcc72731b7acb65d32d05c956d56b.tar.xz
linux-bd310aca442fcc72731b7acb65d32d05c956d56b.zip
macb: propagate errors when getting optional clocks
The tx_clk, rx_clk, and tsu_clk are optional. Currently the macb driver marks clock as not available if it receives an error when trying to get a clock. This is wrong, because a clock controller might return -EPROBE_DEFER if a clock is not available, but will eventually become available. In these cases, the driver would probe successfully but will never be able to adjust the clocks, because the clocks were not available during probe, but became available later. For example, the clock controller for the ZynqMP is implemented in the PMU firmware and the clocks are only available after the firmware driver has been probed. Use devm_clk_get_optional() in instead of devm_clk_get() to get the optional clock and propagate all errors to the calling function. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions