-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set RS485 mode for ttyXRUSB2/3 on kontron devices #4235
Set RS485 mode for ttyXRUSB2/3 on kontron devices #4235
Conversation
pkg/grub/rootfs.cfg
Outdated
smbios -t 1 -s 5 --set smb_product | ||
# switch ttyXRUSB2/3 to RS485 Half-Duplex mode | ||
if regexp -- "Agora Gateway" "$smb_product"; then | ||
set_global hv_platform_tweaks "$hv_platform_tweaks xr_usb_serial_common.mode=2h,3h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be dom0_platform_tweaks
since you are applying to Linux kernel....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rene yes, I fixed that already
9ea8c07
to
84ebc53
Compare
pkg/grub/rootfs.cfg
Outdated
smbios -t 1 -s 5 --set smb_product | ||
# switch ttyXRUSB2/3 to RS485 Half-Duplex mode | ||
if regexp -- "Agora Gateway" "$smb_product"; then | ||
set_global dom0_platform_tweaks "$hv_platform_tweaks xr_usb_serial_common.mode=2h,3h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$hv_platform_tweaks xr_usb_seri...
-> $dom0_platform_tweaks xr_usb_seri...
On Kontron devices 402/403/202 set ports 2 and 3 to RS485 Half-duplaex mode Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
84ebc53
to
d127580
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. Do we have other dependencies, or is it ready to be merged?
On Kontron devices 402/403/202 set ports 2 and 3 to RS485 Half-duplaex mode
This PR depends on lf-edge/eve-kernel#131