summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2022-03-07 19:03:08 +0100
committerStefan Roese <[email protected]>2022-03-14 14:04:18 +0100
commit3782f55ae81825c6ce9f85ca4e6c6798e88087c5 (patch)
tree38b26bcbf02bb43f86cfc4cad2d33b99b52dec67 /include/linux
parenta79dea29127d2840277e6edc0f5c71dc1daec82b (diff)
tools: kwboot: Check if baudrate value is supported before sending image
Call kwboot_open_tty() which baudrate value which was specified at the command line by option -B. This function returns error if baudrate is not supported by selected tty device. Initial baudrate for image transfer is always 115200, so call kwboot_tty_change_baudrate() with value 115200 immediately after kwboot_open_tty() if baudrate specified by option -B is different than 115200. This makes kwboot fail immediately, informing that baudrate is unsupported, instead of failing only after the first part of image is already sent. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions