clk: meson: axg-audio: improve deferral handling
Jerome Brunet
maintainerPATCH 1/1 clk: meson: axg-audio: improve deferral handling
Use dev_err_probe() for clock and reset resources to indicate the deferral reason through sysfs when waiting for the resource to come up.
Signed-off-by Jerome Brunet <[email protected]>
---
This is a follow up on
https://lore.kernel.org/r/[email protected]
drivers/clk/meson/axg-audio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/clk/meson/axg-audio.c +2 -3
@@ -1665,8 +1665,7 @@ static int devm_clk_get_enable(struct device *dev, char *id) clk =devm_clk_get (dev, id);if (IS_ERR (clk)) { ret =PTR_ERR (clk); -if (ret != -EPROBE_DEFER ) -dev_err (dev,"failed to get %s" , id); +dev_err_probe (dev, ret,"failed to get %s" , id);return ret; }
@@ -1811,7 +1810,7 @@ static int axg_audio_clkc_probe(struct platform_device *pdev) ret =device_reset (dev);if (ret) { -dev_err (dev,"failed to reset device\n" ); +dev_err_probe (dev, ret,"failed to reset device\n" );return ret; }
Signature · 1 line
2.31.1
Quoted 5 lines · Jerome Brunet
Use
dev_err_probe()for clock and reset resources to indicate the deferral reason through sysfs when waiting for the resource to come up.Signed-off-by Jerome Brunet <[email protected]>
Reviewed-by Martin Blumenstingl <[email protected]>
Quoted 7 lines · Martin Blumenstingl
Quoted 5 lines · Jerome Brunet
Use
dev_err_probe()for clock and reset resources to indicate the deferral reason through sysfs when waiting for the resource to come up.Signed-off-by Jerome Brunet <[email protected]>Reviewed-by Martin Blumenstingl <[email protected]>
Applied
Quoting Jerome Brunet (2021-05-20 00:31:36)
Quoted 5 lines
Use
dev_err_probe()for clock and reset resources to indicate the deferral reason through sysfs when waiting for the resource to come up.Signed-off-by Jerome Brunet <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>