* [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
@ 2006-08-23 2:20 Zang Roy-r61911
2006-08-23 3:36 ` Benjamin Herrenschmidt
2006-08-23 4:30 ` Kumar Gala
0 siblings, 2 replies; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-23 2:20 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev list, Yang Xin-Xin-r48390
The patch passes the UPIO_TSI flag to general 8259 serial driver
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>=20
---
arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c
b/arch/powerpc/kernel/legacy_serial.c
index 359ab89..07c2c00 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
u64 addr;
u32 *addrp;
upf_t flags =3D UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
+ struct device_node *tsi =3D of_get_parent(np);
=20
/* We only support ports that have a clock frequency properly
* encoded in the device-tree.
@@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
/* Add port, irq will be dealt with later. We passed a
translated
* IO port value. It will be fixed up later along with the irq
*/
- return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
flags, 0);
+ if (tsi && !strcmp(tsi->type, "tsi-bridge"))
+ return add_legacy_port(np, -1, UPIO_TSI, addr, addr,
NO_IRQ, flags, 0);
+ else=20
+ return add_legacy_port(np, -1, UPIO_MEM, addr, addr,
NO_IRQ, flags, 0);
}
=20
static int __init add_legacy_isa_port(struct device_node *np,
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
fixup_port_irq(i, np, port);
if (port->iotype =3D=3D UPIO_PORT)
fixup_port_pio(i, np, port);
- if (port->iotype =3D=3D UPIO_MEM)
+ if ((port->iotype =3D=3D UPIO_MEM) || (port->iotype =3D=3D
UPIO_TSI))
fixup_port_mmio(i, np, port);
}
=20
--=20
1.4.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 2:20 [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver Zang Roy-r61911
@ 2006-08-23 3:36 ` Benjamin Herrenschmidt
2006-08-23 8:45 ` Zang Roy-r61911
2006-08-23 4:30 ` Kumar Gala
1 sibling, 1 reply; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2006-08-23 3:36 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Wed, 2006-08-23 at 10:20 +0800, Zang Roy-r61911 wrote:
> The patch passes the UPIO_TSI flag to general 8259 serial driver
Patch looks damaged to me... appart from that, what it does looks ok to
me.
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
>
> ---
> arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/legacy_serial.c
> b/arch/powerpc/kernel/legacy_serial.c
> index 359ab89..07c2c00 100644
> --- a/arch/powerpc/kernel/legacy_serial.c
> +++ b/arch/powerpc/kernel/legacy_serial.c
> @@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
> u64 addr;
> u32 *addrp;
> upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
> + struct device_node *tsi = of_get_parent(np);
>
> /* We only support ports that have a clock frequency properly
> * encoded in the device-tree.
> @@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
> /* Add port, irq will be dealt with later. We passed a
> translated
> * IO port value. It will be fixed up later along with the irq
> */
> - return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
> flags, 0);
> + if (tsi && !strcmp(tsi->type, "tsi-bridge"))
> + return add_legacy_port(np, -1, UPIO_TSI, addr, addr,
> NO_IRQ, flags, 0);
> + else
> + return add_legacy_port(np, -1, UPIO_MEM, addr, addr,
> NO_IRQ, flags, 0);
> }
>
> static int __init add_legacy_isa_port(struct device_node *np,
> @@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
> fixup_port_irq(i, np, port);
> if (port->iotype == UPIO_PORT)
> fixup_port_pio(i, np, port);
> - if (port->iotype == UPIO_MEM)
> + if ((port->iotype == UPIO_MEM) || (port->iotype ==
> UPIO_TSI))
> fixup_port_mmio(i, np, port);
> }
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 2:20 [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver Zang Roy-r61911
2006-08-23 3:36 ` Benjamin Herrenschmidt
@ 2006-08-23 4:30 ` Kumar Gala
2006-08-23 6:13 ` Paul Mackerras
2006-08-23 6:27 ` Zang Roy-r61911
1 sibling, 2 replies; 14+ messages in thread
From: Kumar Gala @ 2006-08-23 4:30 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Aug 22, 2006, at 9:20 PM, Zang Roy-r61911 wrote:
> The patch passes the UPIO_TSI flag to general 8259 serial driver
>
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Maybe, I'm missing something, but why do we need this? Why doesn't
iotype == UPIO_MEM work for the TSI?
- kumar
>
> ---
> arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/legacy_serial.c
> b/arch/powerpc/kernel/legacy_serial.c
> index 359ab89..07c2c00 100644
> --- a/arch/powerpc/kernel/legacy_serial.c
> +++ b/arch/powerpc/kernel/legacy_serial.c
> @@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
> u64 addr;
> u32 *addrp;
> upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
> + struct device_node *tsi = of_get_parent(np);
>
> /* We only support ports that have a clock frequency properly
> * encoded in the device-tree.
> @@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
> /* Add port, irq will be dealt with later. We passed a
> translated
> * IO port value. It will be fixed up later along with the irq
> */
> - return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
> flags, 0);
> + if (tsi && !strcmp(tsi->type, "tsi-bridge"))
> + return add_legacy_port(np, -1, UPIO_TSI, addr, addr,
> NO_IRQ, flags, 0);
> + else
> + return add_legacy_port(np, -1, UPIO_MEM, addr, addr,
> NO_IRQ, flags, 0);
> }
>
> static int __init add_legacy_isa_port(struct device_node *np,
> @@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
> fixup_port_irq(i, np, port);
> if (port->iotype == UPIO_PORT)
> fixup_port_pio(i, np, port);
> - if (port->iotype == UPIO_MEM)
> + if ((port->iotype == UPIO_MEM) || (port->iotype ==
> UPIO_TSI))
> fixup_port_mmio(i, np, port);
> }
>
> --
> 1.4.0
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 4:30 ` Kumar Gala
@ 2006-08-23 6:13 ` Paul Mackerras
2006-08-23 6:27 ` Zang Roy-r61911
1 sibling, 0 replies; 14+ messages in thread
From: Paul Mackerras @ 2006-08-23 6:13 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev list, Yang Xin-Xin-r48390
Kumar Gala writes:
> Maybe, I'm missing something, but why do we need this? Why doesn't
> iotype == UPIO_MEM work for the TSI?
It seems that there are some workarounds for TSI "features" in
drivers/serial/8250.c that this will invoke.
Paul.
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 4:30 ` Kumar Gala
2006-08-23 6:13 ` Paul Mackerras
@ 2006-08-23 6:27 ` Zang Roy-r61911
2006-08-23 7:08 ` Kumar Gala
1 sibling, 1 reply; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-23 6:27 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
>=20
> On Aug 22, 2006, at 9:20 PM, Zang Roy-r61911 wrote:
>=20
> > The patch passes the UPIO_TSI flag to general 8259 serial driver
> >
> > Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
>=20
> Maybe, I'm missing something, but why do we need this? Why=20
> doesn't iotype =3D=3D UPIO_MEM work for the TSI?
>=20
> - kumar
>=20
Tsi108 serial port has some difference from the standard 8250 port.
I add UPIO_TSI in general 8250 serial driver to handle IIR and IER
register=20
in serial_in and serial_out.
(1) the reason to rewrite serial_in:
TSI108 rev Z1 version ERRATA. Reading the UART's Interrupt
Identification Register (IIR) clears the Transmit Holding Register
Empty (THRE) and Transmit buffer Empty (TEMP) interrupts even if
they
are not enabled in the Interrupt Enable Register (IER). This leads
to
loss of the interrupts. Interrupts are not cleared when reading
UART
registers as 32-bit word.
(2) the reason to rewrite serial_out:
Check for UART_IER_UUE bit in the autoconfig routine. This section
of autoconfig is excluded for Tsi108/109 because bits 7 and 6 are
reserved for internal use. They are R/W bits. In addition to
incorrect identification, changing these bits (from 00) will make
Tsi108/109 UART non-functional.
I need to pass UPIO_TSI flag to the 8250 driver when the tsi108 bridge
serial port is used.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 6:27 ` Zang Roy-r61911
@ 2006-08-23 7:08 ` Kumar Gala
0 siblings, 0 replies; 14+ messages in thread
From: Kumar Gala @ 2006-08-23 7:08 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Aug 23, 2006, at 1:27 AM, Zang Roy-r61911 wrote:
>>
>> On Aug 22, 2006, at 9:20 PM, Zang Roy-r61911 wrote:
>>
>>> The patch passes the UPIO_TSI flag to general 8259 serial driver
>>>
>>> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
>>
>> Maybe, I'm missing something, but why do we need this? Why
>> doesn't iotype == UPIO_MEM work for the TSI?
>>
>> - kumar
>>
>
> Tsi108 serial port has some difference from the standard 8250 port.
> I add UPIO_TSI in general 8250 serial driver to handle IIR and IER
> register
> in serial_in and serial_out.
Gotcha, that makes sense now.
- k
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 3:36 ` Benjamin Herrenschmidt
@ 2006-08-23 8:45 ` Zang Roy-r61911
2006-08-23 13:08 ` Paul Mackerras
2006-08-23 21:52 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-23 8:45 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
Benjamin Herrenschmidt wrote:
> On Wed, 2006-08-23 at 10:20 +0800, Zang Roy-r61911 wrote:
>
>> The patch passes the UPIO_TSI flag to general 8259 serial driver
>>
>
> Patch looks damaged to me... appart from that, what it does looks ok to
> me.
Sorry. It seems imported by my mail client. Please pick up the following
one.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
---
arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c
b/arch/powerpc/kernel/legacy_serial.c
index 359ab89..07c2c00 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
u64 addr;
u32 *addrp;
upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
+ struct device_node *tsi = of_get_parent(np);
/* We only support ports that have a clock frequency properly
* encoded in the device-tree.
@@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
/* Add port, irq will be dealt with later. We passed a translated
* IO port value. It will be fixed up later along with the irq
*/
- return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
+ if (tsi && !strcmp(tsi->type, "tsi-bridge"))
+ return add_legacy_port(np, -1, UPIO_TSI, addr, addr, NO_IRQ,
flags, 0);
+ else
+ return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
flags, 0);
}
static int __init add_legacy_isa_port(struct device_node *np,
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
fixup_port_irq(i, np, port);
if (port->iotype == UPIO_PORT)
fixup_port_pio(i, np, port);
- if (port->iotype == UPIO_MEM)
+ if ((port->iotype == UPIO_MEM) || (port->iotype == UPIO_TSI))
fixup_port_mmio(i, np, port);
}
--
1.4.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 8:45 ` Zang Roy-r61911
@ 2006-08-23 13:08 ` Paul Mackerras
2006-08-23 21:52 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 14+ messages in thread
From: Paul Mackerras @ 2006-08-23 13:08 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: Yang Xin-Xin-r48390, linuxppc-dev list
Zang Roy-r61911 writes:
> Sorry. It seems imported by my mail client. Please pick up the following
> one.
Still busted, but don't worry, I fixed it up by hand.
Paul.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 8:45 ` Zang Roy-r61911
2006-08-23 13:08 ` Paul Mackerras
@ 2006-08-23 21:52 ` Benjamin Herrenschmidt
2006-08-24 4:43 ` Zang Roy-r61911
1 sibling, 1 reply; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2006-08-23 21:52 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Wed, 2006-08-23 at 16:45 +0800, Zang Roy-r61911 wrote:
> Benjamin Herrenschmidt wrote:
> > On Wed, 2006-08-23 at 10:20 +0800, Zang Roy-r61911 wrote:
> >
> >> The patch passes the UPIO_TSI flag to general 8259 serial driver
> >>
> >
> > Patch looks damaged to me... appart from that, what it does looks ok to
> > me.
> Sorry. It seems imported by my mail client. Please pick up the following
> one.
Seems to be damaged as well ! What mail client do you use ?
Ben.
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
>
> ---
>
> arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/legacy_serial.c
> b/arch/powerpc/kernel/legacy_serial.c
> index 359ab89..07c2c00 100644
> --- a/arch/powerpc/kernel/legacy_serial.c
> +++ b/arch/powerpc/kernel/legacy_serial.c
> @@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
> u64 addr;
> u32 *addrp;
> upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
> + struct device_node *tsi = of_get_parent(np);
>
> /* We only support ports that have a clock frequency properly
> * encoded in the device-tree.
> @@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
> /* Add port, irq will be dealt with later. We passed a translated
> * IO port value. It will be fixed up later along with the irq
> */
> - return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
> + if (tsi && !strcmp(tsi->type, "tsi-bridge"))
> + return add_legacy_port(np, -1, UPIO_TSI, addr, addr, NO_IRQ,
> flags, 0);
> + else
> + return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
> flags, 0);
> }
>
> static int __init add_legacy_isa_port(struct device_node *np,
> @@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
> fixup_port_irq(i, np, port);
> if (port->iotype == UPIO_PORT)
> fixup_port_pio(i, np, port);
> - if (port->iotype == UPIO_MEM)
> + if ((port->iotype == UPIO_MEM) || (port->iotype == UPIO_TSI))
> fixup_port_mmio(i, np, port);
> }
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-23 21:52 ` Benjamin Herrenschmidt
@ 2006-08-24 4:43 ` Zang Roy-r61911
2006-08-24 5:17 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-24 4:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Thu, 2006-08-24 at 05:52, Benjamin Herrenschmidt wrote:
> On Wed, 2006-08-23 at 16:45 +0800, Zang Roy-r61911 wrote:
> > Benjamin Herrenschmidt wrote:
> > > On Wed, 2006-08-23 at 10:20 +0800, Zang Roy-r61911 wrote:
> > >
> > >> The patch passes the UPIO_TSI flag to general 8259 serial driver
> > >>
> > >
> > > Patch looks damaged to me... appart from that, what it does looks
> ok to
> > > me.
> > Sorry. It seems imported by my mail client. Please pick up the
> following
> > one.
>
> Seems to be damaged as well ! What mail client do you use ?
>
> Ben.
Evolution 1.2.2. I had found the reason and tested on my side.
Paul, if you do not modify it by hand, please select the following :-).
I will repost the mpic and mpc7448hph2 irq update patch.Very sorry for that.
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
---
arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
index 359ab89..07c2c00 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
u64 addr;
u32 *addrp;
upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
+ struct device_node *tsi = of_get_parent(np);
/* We only support ports that have a clock frequency properly
* encoded in the device-tree.
@@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
/* Add port, irq will be dealt with later. We passed a translated
* IO port value. It will be fixed up later along with the irq
*/
- return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
+ if (tsi && !strcmp(tsi->type, "tsi-bridge"))
+ return add_legacy_port(np, -1, UPIO_TSI, addr, addr, NO_IRQ, flags, 0);
+ else
+ return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
}
static int __init add_legacy_isa_port(struct device_node *np,
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
fixup_port_irq(i, np, port);
if (port->iotype == UPIO_PORT)
fixup_port_pio(i, np, port);
- if (port->iotype == UPIO_MEM)
+ if ((port->iotype == UPIO_MEM) || (port->iotype == UPIO_TSI))
fixup_port_mmio(i, np, port);
}
--
1.4.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-24 4:43 ` Zang Roy-r61911
@ 2006-08-24 5:17 ` Benjamin Herrenschmidt
2006-08-24 5:38 ` Zang Roy-r61911
0 siblings, 1 reply; 14+ messages in thread
From: Benjamin Herrenschmidt @ 2006-08-24 5:17 UTC (permalink / raw)
To: Zang Roy-r61911; +Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
> Evolution 1.2.2. I had found the reason and tested on my side.
> Paul, if you do not modify it by hand, please select the following :-).
> I will repost the mpic and mpc7448hph2 irq update patch.Very sorry for that.
Ok, the trick with evolution is to use the "preformat" style.
Typically, when posting a patch, I write my description, put the caret
where I want to insert the patch itself, set the style to
"Preformat" (from the pop-up menu just above the text editing zone), and
do Insert->Text File from the menu.
You can also select a bit of text/patch and change the style to
"Preformat" afterward if you missed it before doing the import.
Ben.
> Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
>
> ---
> arch/powerpc/kernel/legacy_serial.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
> index 359ab89..07c2c00 100644
> --- a/arch/powerpc/kernel/legacy_serial.c
> +++ b/arch/powerpc/kernel/legacy_serial.c
> @@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
> u64 addr;
> u32 *addrp;
> upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
> + struct device_node *tsi = of_get_parent(np);
>
> /* We only support ports that have a clock frequency properly
> * encoded in the device-tree.
> @@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
> /* Add port, irq will be dealt with later. We passed a translated
> * IO port value. It will be fixed up later along with the irq
> */
> - return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
> + if (tsi && !strcmp(tsi->type, "tsi-bridge"))
> + return add_legacy_port(np, -1, UPIO_TSI, addr, addr, NO_IRQ, flags, 0);
> + else
> + return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
> }
>
> static int __init add_legacy_isa_port(struct device_node *np,
> @@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
> fixup_port_irq(i, np, port);
> if (port->iotype == UPIO_PORT)
> fixup_port_pio(i, np, port);
> - if (port->iotype == UPIO_MEM)
> + if ((port->iotype == UPIO_MEM) || (port->iotype == UPIO_TSI))
> fixup_port_mmio(i, np, port);
> }
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-24 5:17 ` Benjamin Herrenschmidt
@ 2006-08-24 5:38 ` Zang Roy-r61911
2006-08-24 5:49 ` Li Yang-r58472
0 siblings, 1 reply; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-24 5:38 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
On Thu, 2006-08-24 at 13:17, Benjamin Herrenschmidt wrote:
> > Evolution 1.2.2. I had found the reason and tested on my side.
> > Paul, if you do not modify it by hand, please select the following
> :-).
> > I will repost the mpic and mpc7448hph2 irq update patch.Very sorry
> for that.
>
> Ok, the trick with evolution is to use the "preformat" style.
>
> Typically, when posting a patch, I write my description, put the caret
> where I want to insert the patch itself, set the style to
> "Preformat" (from the pop-up menu just above the text editing zone),
> and
> do Insert->Text File from the menu.
>
> You can also select a bit of text/patch and change the style to
> "Preformat" afterward if you missed it before doing the import.
>
You words are principle to post patch with evolution :-).
Roy
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-24 5:38 ` Zang Roy-r61911
@ 2006-08-24 5:49 ` Li Yang-r58472
2006-08-24 5:54 ` Zang Roy-r61911
0 siblings, 1 reply; 14+ messages in thread
From: Li Yang-r58472 @ 2006-08-24 5:49 UTC (permalink / raw)
To: Zang Roy-r61911, Benjamin Herrenschmidt
Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
> -----Original Message-----
> From: linuxppc-dev-bounces+leoli=3Dfreescale.com@ozlabs.org
> [mailto:linuxppc-dev-bounces+leoli=3Dfreescale.com@ozlabs.org] On =
Behalf
Of Zang
> Roy-r61911
> Sent: Thursday, August 24, 2006 1:39 PM
> To: Benjamin Herrenschmidt
> Cc: linuxppc-dev list; Paul Mackerras; Yang Xin-Xin-r48390
> Subject: Re: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial
driver
>=20
> On Thu, 2006-08-24 at 13:17, Benjamin Herrenschmidt wrote:
> > > Evolution 1.2.2. I had found the reason and tested on my side.
> > > Paul, if you do not modify it by hand, please select the following
> > :-).
> > > I will repost the mpic and mpc7448hph2 irq update patch.Very sorry
> > for that.
> >
> > Ok, the trick with evolution is to use the "preformat" style.
> >
> > Typically, when posting a patch, I write my description, put the
caret
> > where I want to insert the patch itself, set the style to
> > "Preformat" (from the pop-up menu just above the text editing zone),
> > and
> > do Insert->Text File from the menu.
> >
> > You can also select a bit of text/patch and change the style to
> > "Preformat" afterward if you missed it before doing the import.
> >
> You words are principle to post patch with evolution :-).
Why did no one ever add a mail client guide to the kernel documentation?
It seems such problem happens a lot.
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver
2006-08-24 5:49 ` Li Yang-r58472
@ 2006-08-24 5:54 ` Zang Roy-r61911
0 siblings, 0 replies; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-24 5:54 UTC (permalink / raw)
To: Li Yang-r58472, Benjamin Herrenschmidt
Cc: linuxppc-dev list, Paul Mackerras, Yang Xin-Xin-r48390
> > On Thu, 2006-08-24 at 13:17, Benjamin Herrenschmidt wrote:
> > > > Evolution 1.2.2. I had found the reason and tested on my side.
> > > > Paul, if you do not modify it by hand, please select=20
> the following
> > > :-).
> > > > I will repost the mpic and mpc7448hph2 irq update=20
> patch.Very sorry
> > > for that.
> > >
> > > Ok, the trick with evolution is to use the "preformat" style.
> > >
> > > Typically, when posting a patch, I write my description, put the=20
> > > caret where I want to insert the patch itself, set the style to=20
> > > "Preformat" (from the pop-up menu just above the text=20
> editing zone),=20
> > > and do Insert->Text File from the menu.
> > >
> > > You can also select a bit of text/patch and change the style to=20
> > > "Preformat" afterward if you missed it before doing the import.
> > >
> > You words are principle to post patch with evolution :-).
>=20
> Why did no one ever add a mail client guide to the kernel=20
> documentation? It seems such problem happens a lot.
>=20
I think there should be one in other place. But we do not know where it
is.
I have tried Thunderbird, but failed.
Roy
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-08-24 5:54 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 2:20 [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver Zang Roy-r61911
2006-08-23 3:36 ` Benjamin Herrenschmidt
2006-08-23 8:45 ` Zang Roy-r61911
2006-08-23 13:08 ` Paul Mackerras
2006-08-23 21:52 ` Benjamin Herrenschmidt
2006-08-24 4:43 ` Zang Roy-r61911
2006-08-24 5:17 ` Benjamin Herrenschmidt
2006-08-24 5:38 ` Zang Roy-r61911
2006-08-24 5:49 ` Li Yang-r58472
2006-08-24 5:54 ` Zang Roy-r61911
2006-08-23 4:30 ` Kumar Gala
2006-08-23 6:13 ` Paul Mackerras
2006-08-23 6:27 ` Zang Roy-r61911
2006-08-23 7:08 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).