* [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports
@ 2024-05-16 9:57 Bhavya Kapoor
2024-05-16 10:07 ` Bhavya Kapoor
2024-05-17 6:49 ` Arnd Bergmann
0 siblings, 2 replies; 5+ messages in thread
From: Bhavya Kapoor @ 2024-05-16 9:57 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel
Cc: u-kumar1, nfraprado, m.szyprowski, arnd, biju.das.jz,
neil.armstrong, shawnguo, konrad.dybcio, geert+renesas,
krzysztof.kozlowski, quic_bjorande, will, catalin.marinas,
b-kapoor
Jacinto SoCs have a total of 12 serial uart ports. But only 8 out
of these 12 uarts can be used at a time.
Thus, Modify maximum number of 8250 serial uart ports which can be
supported as well as modify how many 8250 serial uart ports which
we can use in the runtime to 12 for all the SoCs.
Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
---
arch/arm64/configs/defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 57a9abe78ee4..c693736909bc 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -454,7 +454,8 @@ CONFIG_SERIO_AMBAKMI=y
CONFIG_LEGACY_PTY_COUNT=16
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
-CONFIG_SERIAL_8250_NR_UARTS=8
+CONFIG_SERIAL_8250_NR_UARTS=12
+CONFIG_SERIAL_8250_RUNTIME_UARTS=12
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_BCM2835AUX=y
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports
2024-05-16 9:57 [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports Bhavya Kapoor
@ 2024-05-16 10:07 ` Bhavya Kapoor
2024-05-17 6:49 ` Arnd Bergmann
1 sibling, 0 replies; 5+ messages in thread
From: Bhavya Kapoor @ 2024-05-16 10:07 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel
Cc: u-kumar1, nfraprado, m.szyprowski, arnd, biju.das.jz,
neil.armstrong, shawnguo, konrad.dybcio, geert+renesas,
krzysztof.kozlowski, quic_bjorande, will, catalin.marinas,
Bhavya Kapoor
On 16/05/24 3:27 pm, Bhavya Kapoor wrote:
> Jacinto SoCs have a total of 12 serial uart ports. But only 8 out
> of these 12 uarts can be used at a time.
>
> Thus, Modify maximum number of 8250 serial uart ports which can be
> supported as well as modify how many 8250 serial uart ports which
> we can use in the runtime to 12 for all the SoCs.
>
> Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
> ---
rebased to next-20240516
> arch/arm64/configs/defconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 57a9abe78ee4..c693736909bc 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -454,7 +454,8 @@ CONFIG_SERIO_AMBAKMI=y
> CONFIG_LEGACY_PTY_COUNT=16
> CONFIG_SERIAL_8250=y
> CONFIG_SERIAL_8250_CONSOLE=y
> -CONFIG_SERIAL_8250_NR_UARTS=8
> +CONFIG_SERIAL_8250_NR_UARTS=12
> +CONFIG_SERIAL_8250_RUNTIME_UARTS=12
> CONFIG_SERIAL_8250_EXTENDED=y
> CONFIG_SERIAL_8250_SHARE_IRQ=y
> CONFIG_SERIAL_8250_BCM2835AUX=y
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports
2024-05-16 9:57 [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports Bhavya Kapoor
2024-05-16 10:07 ` Bhavya Kapoor
@ 2024-05-17 6:49 ` Arnd Bergmann
2024-05-28 6:26 ` Bhavya Kapoor
1 sibling, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2024-05-17 6:49 UTC (permalink / raw)
To: Bhavya Kapoor, linux-kernel, linux-arm-kernel
Cc: Udit Kumar, Nícolas F. R. A. Prado, Marek Szyprowski,
Biju Das, Neil Armstrong, Shawn Guo, Konrad Dybcio,
Geert Uytterhoeven, Krzysztof Kozlowski, Bjorn Andersson,
Will Deacon, Catalin Marinas
On Thu, May 16, 2024, at 09:57, Bhavya Kapoor wrote:
> Jacinto SoCs have a total of 12 serial uart ports. But only 8 out
> of these 12 uarts can be used at a time.
>
> Thus, Modify maximum number of 8250 serial uart ports which can be
> supported as well as modify how many 8250 serial uart ports which
> we can use in the runtime to 12 for all the SoCs.
>
> Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
I forget what we had already discussed here. To clarify from my
side: it's ok to raise the limit if there are any known boards that
connect more than 8 8250 style uarts to external devices or
populated connectors.
On the other hand, I don't see any dts file at the moment that
has more than the maximum of 8 in k3-am642-tqma64xxl-mbax4xxl.dts.
If you are adding another board that has more, it helps to
clarify in the patch description that this is indeed a board
requirement, and not just done because the chip has additional
unused uarts.
Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports
2024-05-17 6:49 ` Arnd Bergmann
@ 2024-05-28 6:26 ` Bhavya Kapoor
2024-05-28 6:34 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Bhavya Kapoor @ 2024-05-28 6:26 UTC (permalink / raw)
To: Arnd Bergmann, linux-kernel, linux-arm-kernel
Cc: Udit Kumar, Nícolas F. R. A. Prado, Marek Szyprowski,
Biju Das, Neil Armstrong, Shawn Guo, Konrad Dybcio,
Geert Uytterhoeven, Krzysztof Kozlowski, Bjorn Andersson,
Will Deacon, Catalin Marinas
Hi Arnd, our most boards have 6 uarts that can be used in the runtime
but overall our SoC has 12 uarts. And some of our customers have this
requirements that on their custom boards they use more than 8 uarts on their
boards. Thus, we need to enable this to 12 uarts.
Regards
~B-Kapoor
On 17/05/24 12:19 pm, Arnd Bergmann wrote:
> On Thu, May 16, 2024, at 09:57, Bhavya Kapoor wrote:
>> Jacinto SoCs have a total of 12 serial uart ports. But only 8 out
>> of these 12 uarts can be used at a time.
>>
>> Thus, Modify maximum number of 8250 serial uart ports which can be
>> supported as well as modify how many 8250 serial uart ports which
>> we can use in the runtime to 12 for all the SoCs.
>>
>> Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
> I forget what we had already discussed here. To clarify from my
> side: it's ok to raise the limit if there are any known boards that
> connect more than 8 8250 style uarts to external devices or
> populated connectors.
>
> On the other hand, I don't see any dts file at the moment that
> has more than the maximum of 8 in k3-am642-tqma64xxl-mbax4xxl.dts.
>
> If you are adding another board that has more, it helps to
> clarify in the patch description that this is indeed a board
> requirement, and not just done because the chip has additional
> unused uarts.
>
> Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports
2024-05-28 6:26 ` Bhavya Kapoor
@ 2024-05-28 6:34 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-28 6:34 UTC (permalink / raw)
To: Bhavya Kapoor, Arnd Bergmann, linux-kernel, linux-arm-kernel
Cc: Udit Kumar, Nícolas F. R. A. Prado, Marek Szyprowski,
Biju Das, Neil Armstrong, Shawn Guo, Konrad Dybcio,
Geert Uytterhoeven, Bjorn Andersson, Will Deacon,
Catalin Marinas
On 28/05/2024 08:26, Bhavya Kapoor wrote:
> Hi Arnd, our most boards have 6 uarts that can be used in the runtime
>
> but overall our SoC has 12 uarts. And some of our customers have this
>
> requirements that on their custom boards they use more than 8 uarts on their
>
> boards. Thus, we need to enable this to 12 uarts.
defconfig is for boards in tree, for developers, not for customers.
Argument that some out-of-tree user has more uarts does not mean much
for defconfig. If they have some weird hardware, shall we enable it? Or
if they want DEBUG_KOBJECT? Or anything else?
You mistake kernel development defconfig with a distro or product config.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-28 6:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-16 9:57 [PATCH] arm64: defconfig: Modify number of usable 8250 uart ports Bhavya Kapoor
2024-05-16 10:07 ` Bhavya Kapoor
2024-05-17 6:49 ` Arnd Bergmann
2024-05-28 6:26 ` Bhavya Kapoor
2024-05-28 6:34 ` Krzysztof Kozlowski
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®