
Dear Simon Glass,
In message 1331325178-14634-1-git-send-email-sjg@chromium.org you wrote:
Sometimes we want to be sure that the output FIFO has fully drained (e.g. because we are about to reset or the port or reset the board). Add a
Seems there is one unintentional "or".
function for this.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2:
- Add function to drain the ns16550's FIFO
drivers/serial/ns16550.c | 11 +++++++++++ include/ns16550.h | 3 +++ 2 files changed, 14 insertions(+), 0 deletions(-)
I dislike this. This is mostly dead code, enabled for eveybody where it just increases the memory footprint for no use.
Also I do not understand why it would be needed at all. We did not have such a requirement for any system before, so I feel you must be doing something wrong, or at least very exotic.
Best regards,
Wolfgang Denk