]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Fix initializing tty device
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:07:08 +0000 (23:07 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitc704e0e1df93328a336780c8e3dd87ad44b4f351
tree16a55f5358017c65983c987b5ba953794138df49
parent99a3d02370b6b526594ee73eb26d39e8d8ced8d3
tools: kwboot: Fix initializing tty device

Retrieve current terminal settings via tcgetattr(), set to raw mode with
cfmakeraw(), enable receiver via CREAD and ignore modem control lines
via CLOCAL.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c