Re: [PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-09-08 Thread Greg KH
On Tue, Aug 12, 2014 at 04:12:16PM +0200, Matthias Brugger wrote: > The device has a highspeed register which influences the calcualtion of the > divisor. The chip lacks support for some baudrates. When requested, we set the > divisor to the next smaller baudrate and adjust the c_cflag

Re: [PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-09-08 Thread Greg KH
On Tue, Aug 12, 2014 at 04:12:16PM +0200, Matthias Brugger wrote: The device has a highspeed register which influences the calcualtion of the divisor. The chip lacks support for some baudrates. When requested, we set the divisor to the next smaller baudrate and adjust the c_cflag accordingly.

Re: [PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-09-02 Thread Mark Rutland
[...] > +static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port > *p, > +struct mtk8250_data *data) > +{ > + int err; > + struct device_node *np = pdev->dev.of_node; > + > + data->clk = of_clk_get(np, 0); > + if (IS_ERR(data->clk)) { >

Re: [PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-09-02 Thread Mark Rutland
[...] +static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port *p, +struct mtk8250_data *data) +{ + int err; + struct device_node *np = pdev-dev.of_node; + + data-clk = of_clk_get(np, 0); + if (IS_ERR(data-clk)) { +

[PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-08-12 Thread Matthias Brugger
The device has a highspeed register which influences the calcualtion of the divisor. The chip lacks support for some baudrates. When requested, we set the divisor to the next smaller baudrate and adjust the c_cflag accordingly. Signed-off-by: Matthias Brugger ---

[PATCH v4 1/2] tty: serial: 8250: Add Mediatek UART driver

2014-08-12 Thread Matthias Brugger
The device has a highspeed register which influences the calcualtion of the divisor. The chip lacks support for some baudrates. When requested, we set the divisor to the next smaller baudrate and adjust the c_cflag accordingly. Signed-off-by: Matthias Brugger matthias@gmail.com ---