Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161994AbbKTIWU (ORCPT ); Fri, 20 Nov 2015 03:22:20 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:35793 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934844AbbKTIWR (ORCPT ); Fri, 20 Nov 2015 03:22:17 -0500 MIME-Version: 1.0 In-Reply-To: <1662323.uZlFXR9U2a@avalon> References: <1447958344-836-1-git-send-email-geert+renesas@glider.be> <1662323.uZlFXR9U2a@avalon> Date: Fri, 20 Nov 2015 09:22:16 +0100 X-Google-Sender-Auth: 4TMPaoHxPA647MxSWZ_uKz_vedQ Message-ID: Subject: Re: [PATCH 00/25] serial: sh-sci: Add external clock and BRG Support From: Geert Uytterhoeven To: Laurent Pinchart Cc: Geert Uytterhoeven , Greg Kroah-Hartman , Simon Horman , Magnus Damm , Yoshinori Sato , "linux-serial@vger.kernel.org" , Linux-sh list , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1918 Lines: 51 Hi Laurent, On Thu, Nov 19, 2015 at 10:08 PM, Laurent Pinchart wrote: > For patches 3-6, 13, 15-16 and 22 and 24, > > Reviewed-by: Laurent Pinchart Many thanks for your review comments! > I'm not sure I'd bother with patch 25/25, but I'm not against merging it > either. I'd be surprised if the serial driver still worked at all on SH :-) It should not cause problems, as long as sh7734 doesn't add the optional clocks ;-) > On Thursday 19 November 2015 19:38:39 Geert Uytterhoeven wrote: >> This patch series adds support to the Renesas SCI serial driver for >> - the optional external clock on (H)SCI(F) and some SCIFA, where this >> pin can serve as a clock input, >> - the optional clock sources for the Baud Rate Generator for External >> Clock (BRG), as found on some SCIF variants and on HSCIF. > > Could you briefly explain (and even better in a source code comment) how you > handle baud rate calculation with the chained BRGs ? I'll do that. Note that there's no chaining of BRGs, only muxing (so yes, it needs more clarification ;-). There can be 4 possible sources for the sampling clock: 1. Internal BRG (BRR register), 2. (H)SCK, 3. BRG for external clock a. Using SCIF_CLK, b. Using the bus clock. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/