Commit 6c450bdf authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Lee Jones

mfd: rave-sp: Initialize flow control and parity of the port

Relying on serial port defaults for flow control and parity can result
in complete breakdown of communication with RAVE SP on some platforms
where defaults are not what we need them to be. One such case is
VF610-base ZII SPU3 board (not supported upstream). To avoid this
problem in the future, add code to explicitly configure both.
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a6e3bb02
...@@ -766,6 +766,13 @@ static int rave_sp_probe(struct serdev_device *serdev) ...@@ -766,6 +766,13 @@ static int rave_sp_probe(struct serdev_device *serdev)
return ret; return ret;
serdev_device_set_baudrate(serdev, baud); serdev_device_set_baudrate(serdev, baud);
serdev_device_set_flow_control(serdev, false);
ret = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
if (ret) {
dev_err(dev, "Failed to set parity\n");
return ret;
}
ret = rave_sp_get_status(sp); ret = rave_sp_get_status(sp);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment