From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753350AbdKFN1o (ORCPT ); Mon, 6 Nov 2017 08:27:44 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:46386 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752739AbdKFN1h (ORCPT ); Mon, 6 Nov 2017 08:27:37 -0500 X-Google-Smtp-Source: ABhQp+RIdGjKPetDWvfDm1OyQvigtA+FsFwjmyOaR99gwAVQBsrLyXAERyqxocaK3wLfA2ANYOdAffbxu9oI+HmOp50= MIME-Version: 1.0 In-Reply-To: <8760ao5hrp.wl%kuninori.morimoto.gx@renesas.com> References: <87bml4c5e0.wl%kuninori.morimoto.gx@renesas.com> <20171020061516.GM30097@localhost> <20171031114113.GR3187@localhost> <878tfqzov2.wl%kuninori.morimoto.gx@renesas.com> <8760ao5hrp.wl%kuninori.morimoto.gx@renesas.com> From: Geert Uytterhoeven Date: Mon, 6 Nov 2017 14:27:36 +0100 X-Google-Sender-Auth: W9GFKnmkpX2uv_uvt0MrOHSmuUw Message-ID: Subject: Re: [PATCH v3] dmaengine: rcar-dmac: use TCRB instead of TCR for residue To: Kuninori Morimoto Cc: Vinod Koul , Laurent Pinchart , Dan Williams , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , dmaengine@vger.kernel.org, "linux-kernel@vger.kernel.org" , Hiroyuki Yokoyama , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Morimoto-san, On Mon, Nov 6, 2017 at 2:24 AM, Kuninori Morimoto wrote: >> Large serial console input (copy and pasting long lines) works, as that uses >> DMA. Small serial console input (typing) doesn't work. >> >> Apparently for the serial port, TCR contains the value we need (< 0x20), >> while TCRB always contains 0x20. >> Perhaps the code should use the minimum of both registers instead? > > TCR(= read) happen 1st, and TCRB (= write) happen next. > "TCRB always contains 0x20" means, DMA didn't transfer data for some reason ? In the case of the serial console, the individual characters were actually transfered, as the console did manage to read them. With your patch, the serial driver doesn't know about them (residue == 0), and the console doesn't see them. 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