2019-08-26 08:17:45

by Chunyan Zhang

[permalink] [raw]
Subject: [PATCH 0/3] keep console alive even if missing the 'enable' clock

From: Chunyan Zhang <[email protected]>

After the commit 4007098f4ce4 (serial: sprd: Add power management for the Spreadtrum serial controller),
the 'enable' clock was forced to be configured in device tree, otherwise the uart devices couldn't be
probed successfully.

With this patch-set, the uart device which is used as console would be allowed to register even without
any clock configured in device tree, this will make debug easier.

Chunyan Zhang (3):
serial: sprd: check the right port and membase
serial: sprd: add console_initcall in sprd's uart driver
serial: sprd: keep console alive even if missing the 'enable' clock

drivers/tty/serial/sprd_serial.c | 42 ++++++++++++++++++++++++++------
1 file changed, 34 insertions(+), 8 deletions(-)

--
2.20.1


2019-09-03 09:22:16

by Baolin Wang

[permalink] [raw]
Subject: Re: [PATCH 0/3] keep console alive even if missing the 'enable' clock

On Mon, 26 Aug 2019 at 15:29, Chunyan Zhang <[email protected]> wrote:
>
> From: Chunyan Zhang <[email protected]>
>
> After the commit 4007098f4ce4 (serial: sprd: Add power management for the Spreadtrum serial controller),
> the 'enable' clock was forced to be configured in device tree, otherwise the uart devices couldn't be
> probed successfully.
>
> With this patch-set, the uart device which is used as console would be allowed to register even without
> any clock configured in device tree, this will make debug easier.

Tested on my board, works well and looks good to me. So for the whole series:
Reviewed-by: Baolin Wang <[email protected]>
Tested-by: Baolin Wang <[email protected]>

>
> Chunyan Zhang (3):
> serial: sprd: check the right port and membase
> serial: sprd: add console_initcall in sprd's uart driver
> serial: sprd: keep console alive even if missing the 'enable' clock
>
> drivers/tty/serial/sprd_serial.c | 42 ++++++++++++++++++++++++++------
> 1 file changed, 34 insertions(+), 8 deletions(-)
>
> --
> 2.20.1
>


--
Baolin Wang
Best Regards