2023-08-02 16:34:39

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional

On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote:
> The driver fall back to poll style when there's no irq. "poll" still
> looks better than no support.

What is the user for this where the interrupt is not actually wired up
in the hardware?

>
> Signed-off-by: Jisheng Zhang <[email protected]>
> ---
> Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> index 3862411c77b5..17c553123f96 100644
> --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> @@ -117,7 +117,6 @@ properties:
> required:
> - compatible
> - reg
> - - interrupts
>
> unevaluatedProperties: false
>
> --
> 2.40.1
>


Attachments:
(No filename) (932.00 B)
signature.asc (235.00 B)
Download all attachments

2023-08-02 22:30:28

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional

On Wed, Aug 02, 2023 at 04:43:48PM +0100, Conor Dooley wrote:
> On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote:
> > The driver fall back to poll style when there's no irq. "poll" still
> > looks better than no support.
>
> What is the user for this where the interrupt is not actually wired up
> in the hardware?

FYI: kernel console doesn't use interrupts, so for example it might be
the debug port. Note, I have no idea of the Zhang's case, just my assumption.

--
With Best Regards,
Andy Shevchenko



2023-08-02 23:01:50

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional

On Thu, Aug 03, 2023 at 12:57:44AM +0300, Andy Shevchenko wrote:
> On Wed, Aug 02, 2023 at 04:43:48PM +0100, Conor Dooley wrote:
> > On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote:
> > > The driver fall back to poll style when there's no irq. "poll" still
> > > looks better than no support.
> >
> > What is the user for this where the interrupt is not actually wired up
> > in the hardware?
>
> FYI: kernel console doesn't use interrupts, so for example it might be
> the debug port. Note, I have no idea of the Zhang's case, just my assumption.

I'm less interested in what the software is doing, it's what the device
that has not connected the interrupt is that I am curious about.


Attachments:
(No filename) (717.00 B)
signature.asc (235.00 B)
Download all attachments

2023-08-03 13:23:33

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional

On Wed, Aug 02, 2023 at 11:53:59PM +0100, Conor Dooley wrote:
> On Thu, Aug 03, 2023 at 12:57:44AM +0300, Andy Shevchenko wrote:
> > On Wed, Aug 02, 2023 at 04:43:48PM +0100, Conor Dooley wrote:
> > > On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote:
> > > > The driver fall back to poll style when there's no irq. "poll" still
> > > > looks better than no support.
> > >
> > > What is the user for this where the interrupt is not actually wired up
> > > in the hardware?
> >
> > FYI: kernel console doesn't use interrupts, so for example it might be
> > the debug port. Note, I have no idea of the Zhang's case, just my assumption.
>
> I'm less interested in what the software is doing, it's what the device
> that has not connected the interrupt is that I am curious about.

As I said. The hw may be purely for debugging purposes (and yes, I have heard
about such a hardware).

--
With Best Regards,
Andy Shevchenko



2023-08-06 11:08:50

by Jisheng Zhang

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional

On Thu, Aug 03, 2023 at 02:40:05PM +0300, Andy Shevchenko wrote:
> On Wed, Aug 02, 2023 at 11:53:59PM +0100, Conor Dooley wrote:
> > On Thu, Aug 03, 2023 at 12:57:44AM +0300, Andy Shevchenko wrote:
> > > On Wed, Aug 02, 2023 at 04:43:48PM +0100, Conor Dooley wrote:
> > > > On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote:
> > > > > The driver fall back to poll style when there's no irq. "poll" still
> > > > > looks better than no support.
> > > >
> > > > What is the user for this where the interrupt is not actually wired up
> > > > in the hardware?
> > >
> > > FYI: kernel console doesn't use interrupts, so for example it might be
> > > the debug port. Note, I have no idea of the Zhang's case, just my assumption.

Hi Conor, Andy,

Andy's assumption about the uart dedicated for debug purpose is true, since
it's for log only, so no interrupt need at all. We can also see such no
irq support in litex uart driver(liteuart.c) and even a 8250
variant(8250_ioc3.c).

Thanks
> >
> > I'm less interested in what the software is doing, it's what the device
> > that has not connected the interrupt is that I am curious about.
>
> As I said. The hw may be purely for debugging purposes (and yes, I have heard
> about such a hardware).
>
> --
> With Best Regards,
> Andy Shevchenko
>
>