[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <532BF695.3030900@meduna.org>
Date: Fri, 21 Mar 2014 09:21:41 +0100
From: Stanislav Meduna <stano@...una.org>
To: Peter Hurley <peter@...leysoftware.com>
CC: linux-serial@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Greg KH <gregkh@...uxfoundation.org>,
Linux ARM Kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: mxs-auart gives data from previous run after close and reopen
On 21.03.2014 02:39, Peter Hurley wrote:
> Does disabling the fifo on shutdown clear the fifo?
I did not try this, but if my theory is correct, it would
not help, as all this does is reducing the FIFO length
to one character. So you'd still get up to two characters:
one in the "FIFO" - it could get there a microsecond after
you disable the FIFO before you gate the clock - and one
being received into the shift register (garbled by shutting
down the clock in the middle of the reception that was
resumed when clock was resumed on startup). Note that one
can get preempted here, so the instructions next to each
other can be milliseconds apart in reality.
IMHO we need a soft-reset here.
Regards
--
Stano
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists