* [PATCH] MIPS: OCTEON: Fix breakage due to 8250 changes.
@ 2012-08-14 16:42 David Daney
2012-08-14 16:56 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2012-08-14 16:42 UTC (permalink / raw)
To: linux-mips, ralf, linux-serial; +Cc: David Daney, Alan Cox, Greg Kroah-Hartman
From: David Daney <david.daney@cavium.com>
The changes in linux-next removing serial8250_register_port() cause
OCTEON to fail to compile.
Lets make OCTEON use the new serial8250_register_8250_port() instead.
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
Perhaps we can get an Acked-by from Ralf, and then merge this along
with the 8250 patches that caused the breakage? What do you think?
arch/mips/cavium-octeon/serial.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/arch/mips/cavium-octeon/serial.c b/arch/mips/cavium-octeon/serial.c
index 138b221..569f41b 100644
--- a/arch/mips/cavium-octeon/serial.c
+++ b/arch/mips/cavium-octeon/serial.c
@@ -47,40 +47,40 @@ static int __devinit octeon_serial_probe(struct platform_device *pdev)
{
int irq, res;
struct resource *res_mem;
- struct uart_port port;
+ struct uart_8250_port up;
/* All adaptors have an irq. */
irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
- memset(&port, 0, sizeof(port));
+ memset(&up, 0, sizeof(up));
- port.flags = ASYNC_SKIP_TEST | UPF_SHARE_IRQ | UPF_FIXED_TYPE;
- port.type = PORT_OCTEON;
- port.iotype = UPIO_MEM;
- port.regshift = 3;
- port.dev = &pdev->dev;
+ up.port.flags = ASYNC_SKIP_TEST | UPF_SHARE_IRQ | UPF_FIXED_TYPE;
+ up.port.type = PORT_OCTEON;
+ up.port.iotype = UPIO_MEM;
+ up.port.regshift = 3;
+ up.port.dev = &pdev->dev;
if (octeon_is_simulation())
/* Make simulator output fast*/
- port.uartclk = 115200 * 16;
+ up.port.uartclk = 115200 * 16;
else
- port.uartclk = octeon_get_io_clock_rate();
+ up.port.uartclk = octeon_get_io_clock_rate();
- port.serial_in = octeon_serial_in;
- port.serial_out = octeon_serial_out;
- port.irq = irq;
+ up.port.serial_in = octeon_serial_in;
+ up.port.serial_out = octeon_serial_out;
+ up.port.irq = irq;
res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res_mem == NULL) {
dev_err(&pdev->dev, "found no memory resource\n");
return -ENXIO;
}
- port.mapbase = res_mem->start;
- port.membase = ioremap(res_mem->start, resource_size(res_mem));
+ up.port.mapbase = res_mem->start;
+ up.port.membase = ioremap(res_mem->start, resource_size(res_mem));
- res = serial8250_register_port(&port);
+ res = serial8250_register_8250_port(&up);
return res >= 0 ? 0 : res;
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: OCTEON: Fix breakage due to 8250 changes.
2012-08-14 16:42 [PATCH] MIPS: OCTEON: Fix breakage due to 8250 changes David Daney
@ 2012-08-14 16:56 ` Ralf Baechle
2012-08-14 21:46 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2012-08-14 16:56 UTC (permalink / raw)
To: David Daney
Cc: linux-mips, linux-serial, David Daney, Alan Cox,
Greg Kroah-Hartman
On Tue, Aug 14, 2012 at 09:42:39AM -0700, David Daney wrote:
> From: David Daney <david.daney@cavium.com>
>
> The changes in linux-next removing serial8250_register_port() cause
> OCTEON to fail to compile.
>
> Lets make OCTEON use the new serial8250_register_8250_port() instead.
I think this one should go via the serial tree.
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Thanks,
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: OCTEON: Fix breakage due to 8250 changes.
2012-08-14 16:56 ` Ralf Baechle
@ 2012-08-14 21:46 ` Greg Kroah-Hartman
0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2012-08-14 21:46 UTC (permalink / raw)
To: Ralf Baechle; +Cc: David Daney, linux-mips, linux-serial, David Daney, Alan Cox
On Tue, Aug 14, 2012 at 06:56:07PM +0200, Ralf Baechle wrote:
> On Tue, Aug 14, 2012 at 09:42:39AM -0700, David Daney wrote:
>
> > From: David Daney <david.daney@cavium.com>
> >
> > The changes in linux-next removing serial8250_register_port() cause
> > OCTEON to fail to compile.
> >
> > Lets make OCTEON use the new serial8250_register_8250_port() instead.
>
> I think this one should go via the serial tree.
>
> Acked-by: Ralf Baechle <ralf@linux-mips.org>
Ok, I'll take it there, thanks.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-14 21:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 16:42 [PATCH] MIPS: OCTEON: Fix breakage due to 8250 changes David Daney
2012-08-14 16:56 ` Ralf Baechle
2012-08-14 21:46 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.