mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] serial: 8250_bcm2835aux: Restore clock error handling
@ 2023-12-20 11:43 Stefan Wahren
  2024-01-03 17:33 ` Florian Fainelli
  2024-01-10  0:01 ` Jeremy Linton
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Wahren @ 2023-12-20 11:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Florian Fainelli
  Cc: Ray Jui, Scott Branden, Adrien Thierry, Jeremy Linton,
	linux-serial, bcm-kernel-feedback-list, linux-kernel,
	linux-arm-kernel, Stefan Wahren

The commit fcc446c8aa63 ("serial: 8250_bcm2835aux: Add ACPI support")
dropped the error handling for clock acquiring. But even an optional
clock needs this.

Fixes: fcc446c8aa63 ("serial: 8250_bcm2835aux: Add ACPI support")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
 drivers/tty/serial/8250/8250_bcm2835aux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c
index 15a2387a5b25..4f4502fb5454 100644
--- a/drivers/tty/serial/8250/8250_bcm2835aux.c
+++ b/drivers/tty/serial/8250/8250_bcm2835aux.c
@@ -119,6 +119,8 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev)

 	/* get the clock - this also enables the HW */
 	data->clk = devm_clk_get_optional(&pdev->dev, NULL);
+	if (IS_ERR(data->clk))
+		return dev_err_probe(&pdev->dev, PTR_ERR(data->clk), "could not get clk\n");

 	/* get the interrupt */
 	ret = platform_get_irq(pdev, 0);
--
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-10  8:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20 11:43 [PATCH] serial: 8250_bcm2835aux: Restore clock error handling Stefan Wahren
2024-01-03 17:33 ` Florian Fainelli
2024-01-10  0:01 ` Jeremy Linton
2024-01-10  8:49   ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®