Re: [PATCH v2 1/2] tty: serial: 8250_mtk: enable baud clock
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-09-15 14:54:10
Also in:
linux-mediatek, linux-serial, lkml
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-09-15 14:54:10
Also in:
linux-mediatek, linux-serial, lkml
On Mon, Sep 15, 2025 at 02:06:37PM +0100, Daniel Golle wrote: ...
- data->uart_clk = devm_clk_get(&pdev->dev, NULL);
+ data->uart_clk = devm_clk_get_enabled(&pdev->dev, NULL);
if (IS_ERR(data->uart_clk)) {
dev_warn(&pdev->dev, "Can't get uart clock\n");
return PTR_ERR(data->uart_clk);Consider making this to be either dev_warn_once() / _ratelimited() or better to have return dev_err_probe(...); This will allow to avoid flooding the logs when clock is not yet ready. The proposed change can be done in the separate patch. -- With Best Regards, Andy Shevchenko