Re: [Review request] sh-sci clock

Paul Mundt
2009-04-14T00:00:48Z

On Mon, Apr 13, 2009 at 01:17:59PM +0900, Kuninori Morimoto wrote:
> diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h
> index d0aa82d..5215b9d 100644
> --- a/drivers/serial/sh-sci.h
> +++ b/drivers/serial/sh-sci.h
> @@ -761,9 +761,9 @@ static inline int sci_rxd_in(struct uart_port *port)
> static inline int scbrr_calc(struct uart_port *port, int bps, int clk)
> {
> if (port->type = PORT_SCIF)
> - return (clk+16*bps)/(32*bps)-1;
> + return (clk/(32*bps))-1;
> else
> - return ((clk*2)+16*bps)/(16*bps)-1;
> + return (clk/(16*bps))-1;
> }
> #define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk)
> #elif defined(__H8300H__) || defined(__H8300S__)

This looks like an unrelated change, can you explain what this is about?