[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50127eb4-dfa0-6b80-36c0-8c246eb4d164@amlogic.com>
Date: Fri, 31 Dec 2021 18:37:42 +0800
From: Yu Tu <yu.tu@...ogic.com>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
CC: <linux-serial@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-amlogic@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Neil Armstrong <narmstrong@...libre.com>,
Vyacheslav <adeep@...ina.in>,
Kevin Hilman <khilman@...libre.com>,
Jerome Brunet <jbrunet@...libre.com>
Subject: Re: [PATCH V3 6/6] tty: serial: meson: Change request_irq to
devm_request_irq and move devm_request_irq to meson_uart_probe()
On 2021/12/31 6:41, Martin Blumenstingl wrote:
> [ EXTERNAL EMAIL ]
>
> On Thu, Dec 30, 2021 at 11:22 AM Yu Tu <yu.tu@...ogic.com> wrote:
>>
>> 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.
> I would like to hear from the serial driver maintainers whether the
> 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,
>> + 0, dev_name(&pdev->dev), port);
> You can replace dev_name(&pdev->dev) with NULL to achieve the same
> result with less code.
> dev_name(dev) is the default value, see [0]
>
I think you are right, I will remove this patch. I learned a lot.
>
> Best regards,
> Martin
>
>
> [0] https://elixir.bootlin.com/linux/v5.15/source/kernel/irq/devres.c#L64
>
Powered by blists - more mailing lists