Bug 207751
Summary: | RS485 RTS(TXEN) inactivated too late, resulting in received frame distortion | ||
---|---|---|---|
Product: | Drivers | Reporter: | YuDong Zhang (mtwget) |
Component: | Serial | Assignee: | Russell King (rmk) |
Status: | NEW --- | ||
Severity: | high | CC: | slaveze, uwe+kernel |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.4.40 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | RTS delay oscilloscope |
Description
YuDong Zhang
2020-05-15 09:22:55 UTC
Hi Hi, I also confirm RTS signal delay when transmitting. (same imx serial IP, on i.MX6ULL) In rs485, using an external chip (UM3483EESA) it corrupts received frame. (see oscilloscope capture) This is not consistent and only happens every 10-20 frames in my case. Thanks, Sebastien Created attachment 304210 [details]
RTS delay oscilloscope
Tested on 6.1.14 and 5.10.162 (In reply to slaveze from comment #4) > Tested on 6.1.14 and 5.10.162 According to my test, this problem only occurs when power management is turned on. (In reply to YuDong Zhang from comment #5) > (In reply to slaveze from comment #4) > > Tested on 6.1.14 and 5.10.162 > According to my test, this problem only occurs when power management is > turned on. Tried disabling runtime pm: $ echo on > /sys/class/tty/ttymxc2/power/control But the behavior is still the same (In reply to slaveze from comment #6) > (In reply to YuDong Zhang from comment #5) > > (In reply to slaveze from comment #4) > > > Tested on 6.1.14 and 5.10.162 > > According to my test, this problem only occurs when power management is > > turned on. > > Tried disabling runtime pm: > $ echo on > /sys/class/tty/ttymxc2/power/control > > But the behavior is still the same I recompile the kernel after turning off CONFIG_PM. (In reply to slaveze from comment #6) > (In reply to YuDong Zhang from comment #5) > > (In reply to slaveze from comment #4) > > > Tested on 6.1.14 and 5.10.162 > > According to my test, this problem only occurs when power management is > > turned on. > > Tried disabling runtime pm: > $ echo on > /sys/class/tty/ttymxc2/power/control > > But the behavior is still the same It may be caused by other reasons, but I didn't investigate deeply. |