[ EXTERNAL EMAIL ]I think you are right, I will remove this patch. I learned a lot.
On Thu, Dec 30, 2021 at 11:22 AM Yu Tu <yu.tu@xxxxxxxxxxx> wrote:
I would like to hear from the serial driver maintainers whether the
Because an interrupt error occurs when the user opens /dev/ttyAML* but
don't close it, and then opens the same port again. This problem is
encountered in actual projects.
described problem is a userspace or driver bug.
If it's a driver bug then this should be sent as a separate patch
(unrelated to this series) with a fixes tag.
[...]
+ ret = devm_request_irq(&pdev->dev, port->irq, meson_uart_interrupt,You can replace dev_name(&pdev->dev) with NULL to achieve the same
+ 0, dev_name(&pdev->dev), port);
result with less code.
dev_name(dev) is the default value, see [0]
Best regards,
Martin
[0] https://elixir.bootlin.com/linux/v5.15/source/kernel/irq/devres.c#L64