Skip to contentSkip to conversation

ns16550: support ns16550a

PATCH Applied [email protected] 4 participants 5 messages Dec 22, 2013 – Jan 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ns16550: support ns16550a

From: Tsahee Zidenberg <[email protected]>

Ns16550a devices are Ns16550 devices with additional capabilities. Decare XEN is compatible with this device, to be able to use unmodified devicetrees.

---
 xen/drivers/char/ns16550.c | 1 +
 1 file changed, 1 insertion(+)
xen/drivers/char/ns16550.c +1 -0
index 9c2cded..a947c68 100644
@@ -817,6 +817,7 @@ static int __init ns16550_uart_dt_init(struct dt_device_node *dev,
 static const char const *ns16550_dt_compat[] __initconst =
 {
     "ns16550",
+    "ns16550a",
     "snps,dw-apb-uart",
     NULL
 };
Signature · 1 line
1.8.1.2
Applied
#2 lore raw
Quoted 4 lines · Julien Grall
Quoted 2 lines · On 12/22/2013 10:59 AM, [email protected] wrote:

From: Tsahee Zidenberg <[email protected]>

Quoted 8 lines
Quoted 6 lines

Ns16550a devices are Ns16550 devices with additional capabilities. Decare XEN is compatible with this device, to be able to use unmodified devicetrees.

RM hat: There is basically no risk to existing systems since this just adds a new compatible string. The benefit is that Xen will work on some new set of hardware, if it turns out that things are buggy on that type of hardware then we haven't lost anything vs. not trying to run on it at all.

Applied, thanks.

#3 lore raw

misplaced const (was: Re: [PATCH] ns16550: support ns16550a)

In reply to [email protected]
Quoted 5 lines
Quoted 1 line
Quoted 1 line

<[email protected]> 12/22/13 3:52 PM >>>

xen/drivers/char/ns16550.c +0 -0
@@ -817,6 +817,7 @@ static int __init ns16550_uart_dt_init(struct dt_device_node *dev,

static const char const *ns16550_dt_compat[] __initconst =

This being ARM specific code, could someone please submit a patch to prevent problems going forward with the duplicate const here (the second one really belongs _after_ the *)?

Jan

#4 lore raw

Re: misplaced const

Quoted 9 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line

<[email protected]> 12/22/13 3:52 PM >>>

xen/drivers/char/ns16550.c +0 -0
@@ -817,6 +817,7 @@ static int __init ns16550_uart_dt_init(struct dt_device_node *dev,

static const char const *ns16550_dt_compat[] __initconst =

This being ARM specific code, could someone please submit a patch to prevent problems going forward with the duplicate const here (the second one really belongs _after_ the *)?

Hi Jan,

Thanks for spotting the error. I noticed that every serial drivers which support Device Tree are affected by the duplicated const.

I have sent a patch on the ML: https://patches.linaro.org/22744/

Cheers,

Signature · 1 line
Julien Grall