Skip to contentSkip to conversation

xen/arm: Add r1p12 to the list of supported Cadence UARTs

PATCH Applied Edgar E. Iglesias 3 participants 9 messages Jan 14, 2016 – Jan 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Add r1p12 to the list of supported Cadence UARTs

From: "Edgar E. Iglesias" <[email protected]>

---
 xen/drivers/char/cadence-uart.c | 1 +
 1 file changed, 1 insertion(+)
xen/drivers/char/cadence-uart.c +1 -0
index 933672f..7f90f8d 100644
@@ -206,6 +206,7 @@ static int __init cuart_init(struct dt_device_node *dev, const void *data)
 static const struct dt_device_match cuart_dt_match[] __initconst =
 {
     DT_MATCH_COMPATIBLE("cdns,uart-r1p8"),
+    DT_MATCH_COMPATIBLE("cdns,uart-r1p12"),
     { /* sentinel */ },
 };
 
Signature · 1 line
1.9.1
#1 lore raw

xen/drivers/char/cadence-uart.c

Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 19:44, <[email protected]> wrote:
xen/drivers/char/cadence-uart.c +0 -0

Considering the wider than expected Cc list - is there an entry missing from the ARM section in ./MAINTAINERS here?

Jan

#2 lore raw
Quoted 7 lines · Jan Beulich

xen/drivers/char/cadence-uart.c

Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 19:44, <[email protected]> wrote:
xen/drivers/char/cadence-uart.c +0 -0

Considering the wider than expected Cc list - is there an entry missing from the ARM section in ./MAINTAINERS here?

Yes, that seems to be the case. I've just sent a patch to MAINTAINERS to fix that.

Cheers,
Edgar

#3 lore raw
In reply to Edgar E. Iglesias
Quoted 1 line · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Where are the bindings for cdns,uart-r1p12 defined? I don't see it mentioned in the Documentation/devicetree/bindings/serial/cdns,uart.txt in mainline Linux.

Does the driver need to differ at all compared with what is needed for r1p8? Normally if there is no (practical/visible) difference then in DT- world there is no need for a new compatible string, since the device is still compatible.

If there are differences in the h/w but they are not relevant to our particular driven then please say so in the commit log.

Ian.

Quoted 13 lines

---
 xen/drivers/char/cadence-uart.c | 1 +

 1 file changed, 1 insertion(+)
xen/drivers/char/cadence- renamed from xen/drivers/char/cadence-uart.c +0 -0

uart.c
index 933672f..7f90f8d 100644

xen/drivers/char/cadence-uart.c +0 -0
@@ -206,6 +206,7 @@ static int __init cuart_init(struct dt_device_node
 *dev, const void *data)
Quoted 7 lines

 static const struct dt_device_match cuart_dt_match[] __initconst = {
     DT_MATCH_COMPATIBLE("cdns,uart-r1p8"),
+    DT_MATCH_COMPATIBLE("cdns,uart-r1p12"),
     { /* sentinel */ },
 };

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 6 lines · Ian Campbell
Quoted 1 line · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Where are the bindings for cdns,uart-r1p12 defined? I don't see it mentioned in the Documentation/devicetree/bindings/serial/cdns,uart.txt in mainline Linux.

Hi Ian,

The bindings are currently in our queue:
https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/serial/cdns%2Cuart.txt

Quoted 7 lines

Does the driver need to differ at all compared with what is needed for r1p8? Normally if there is no (practical/visible) difference then in DT- world there is no need for a new compatible string, since the device is still compatible.

If there are differences in the h/w but they are not relevant to our particular driven then please say so in the commit log.

Right, there are SW visible differences (the Linux driver uses them) but none affecting XEN. I'll note that in the commit message.

Thanks,
Edgar

Quoted 23 lines

Ian.

Quoted 20 lines

---
 xen/drivers/char/cadence-uart.c | 1 +

 1 file changed, 1 insertion(+)
xen/drivers/char/cadence- renamed from xen/drivers/char/cadence-uart.c +0 -0

uart.c
index 933672f..7f90f8d 100644

xen/drivers/char/cadence-uart.c +0 -0
@@ -206,6 +206,7 @@ static int __init cuart_init(struct dt_device_node
 *dev, const void *data)

 static const struct dt_device_match cuart_dt_match[] __initconst = {
     DT_MATCH_COMPATIBLE("cdns,uart-r1p8"),
+    DT_MATCH_COMPATIBLE("cdns,uart-r1p12"),
     { /* sentinel */ },
 };

#5 lore raw
Quoted 9 lines · Edgar E. Iglesias
Quoted 7 lines · Ian Campbell
Quoted 1 line · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Where are the bindings for cdns,uart-r1p12 defined? I don't see it mentioned in the Documentation/devicetree/bindings/serial/cdns,uart.txt in
mainline Linux.

Quoted 5 lines

Hi Ian,

The bindings are currently in our queue:
https://github.com/Xilinx/linux-
xlnx/blob/master/Documentation/devicetree/bindings/serial/cdns%2Cuart.txt

Great, thanks.

Quoted 7 lines

Quoted 6 lines

Does the driver need to differ at all compared with what is needed for r1p8? Normally if there is no (practical/visible) difference then in DT-
world there is no need for a new compatible string, since the device is still compatible.

Quoted 5 lines
Quoted 2 lines

If there are differences in the h/w but they are not relevant to our particular driven then please say so in the commit log.

Right, there are SW visible differences (the Linux driver uses them) but none affecting XEN. I'll note that in the commit message.

If you want to just supply some words here I'll fold them in upon commit. Or feel free to send a v2 if you prefer.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 24 lines · Ian Campbell
Quoted 9 lines · Edgar E. Iglesias
Quoted 7 lines · Ian Campbell
Quoted 1 line · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Where are the bindings for cdns,uart-r1p12 defined? I don't see it mentioned in the Documentation/devicetree/bindings/serial/cdns,uart.txt in
mainline Linux.

Quoted 5 lines

Hi Ian,

The bindings are currently in our queue:
https://github.com/Xilinx/linux-
xlnx/blob/master/Documentation/devicetree/bindings/serial/cdns%2Cuart.txt

Great, thanks.

Quoted 7 lines

Quoted 6 lines

Does the driver need to differ at all compared with what is needed for r1p8? Normally if there is no (practical/visible) difference then in DT-
world there is no need for a new compatible string, since the device is still compatible.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

If there are differences in the h/w but they are not relevant to our particular driven then please say so in the commit log.

Right, there are SW visible differences (the Linux driver uses them) but none affecting XEN. I'll note that in the commit message.

If you want to just supply some words here I'll fold them in upon commit. Or feel free to send a v2 if you prefer.

Thanks Ian, I've inlined something here.
BTW, what is the policy for getting patches into -stable? It would be great if this patch could be taken in to have XEN 4.6.x work out of the box on ZynqMPSoC with updated DTBs.

Best regards,
Edgar

New commit message:
xen/arm: Add r1p12 to the list of supported Cadence UARTs

Add r1p12 to the list of supported Cadence UARTs. XEN only uses the subset of features available in r1p8, so we don't need to differentiate between r1p8 and r1p12 yet.

Acked-by
#7 lore raw
Quoted 38 lines · Edgar E. Iglesias
Quoted 37 lines · Ian Campbell
Quoted 10 lines · Edgar E. Iglesias
Quoted 8 lines · Ian Campbell
Quoted 1 line · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Where are the bindings for cdns,uart-r1p12 defined? I don't see it mentioned in the Documentation/devicetree/bindings/serial/cdns,uart.txt in
mainline Linux.

Quoted 6 lines

Hi Ian,

The bindings are currently in our queue:
https://github.com/Xilinx/linux-
xlnx/blob/master/Documentation/devicetree/bindings/serial/cdns%2Cuart .txt

Great, thanks.

Quoted 17 lines

Quoted 9 lines

Does the driver need to differ at all compared with what is needed for
r1p8? Normally if there is no (practical/visible) difference then in
DT-
world there is no need for a new compatible string, since the device is
still compatible.

Quoted 3 lines

If there are differences in the h/w but they are not relevant to our
particular driven then please say so in the commit log.

Right, there are SW visible differences (the Linux driver uses them) but
none affecting XEN. I'll note that in the commit message.

Quoted 6 lines
Quoted 3 lines

If you want to just supply some words here I'll fold them in upon commit.
Or feel free to send a v2 if you prefer.

Thanks Ian, I've inlined something here.
BTW, what is the policy for getting patches into -stable?

Please see http://wiki.xen.org/wiki/Xen_Maintenance_Releases and the MAINTAIENRS file in the stable branches.

TL;DR: I think this is fine and I have added to my list of things to backport.

Quoted 7 lines

It would be great if this patch could be taken in to have XEN 4.6.x work out of the box on ZynqMPSoC with updated DTBs.

Best regards,
Edgar

Quoted 8 lines

New commit message:
xen/arm: Add r1p12 to the list of supported Cadence UARTs

Add r1p12 to the list of supported Cadence UARTs. XEN only uses the subset of features available in r1p8, so we don't need to differentiate between r1p8 and r1p12 yet.

<pedant>It's spelled "Xen" or "xen", not "XEN"</pedant>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Applied
#8 lore raw
Quoted 10 lines · Ian Campbell

Quoted 7 lines

xen/arm: Add r1p12 to the list of supported Cadence UARTs

Add r1p12 to the list of supported Cadence UARTs. XEN only uses the subset of features available in r1p8, so we don't need to differentiate between r1p8 and r1p12 yet.

Applied, thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel