Skip to content
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

serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND #6540

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Dec 16, 2024

commit 068d35a upstream.

When specifying flag SER_RS485_RTS_ON_SEND in RS485 configuration, we get the following warning after commit 4afeced ("serial: core: fix sanitizing check for RTS settings"):

invalid RTS setting, using RTS_AFTER_SEND instead

This results in SER_RS485_RTS_AFTER_SEND being set and the driver always write to the register field SC16IS7XX_EFCR_RTS_INVERT_BIT, which breaks some hardware using these chips.

The hardware supports both RTS_ON_SEND and RTS_AFTER_SEND modes, so fix this by announcing support for RTS_ON_SEND.

Suggested-by: Konstantin Pugin [email protected]
Link: https://lore.kernel.org/lkml/[email protected]
Reviewed-by: Andy Shevchenko [email protected]
Tested-by: Hugo Villeneuve [email protected]
Link: https://lore.kernel.org/r/[email protected]

commit 068d35a upstream.

When specifying flag SER_RS485_RTS_ON_SEND in RS485 configuration,
we get the following warning after commit 4afeced ("serial: core:
fix sanitizing check for RTS settings"):

    invalid RTS setting, using RTS_AFTER_SEND instead

This results in SER_RS485_RTS_AFTER_SEND being set and the
driver always write to the register field SC16IS7XX_EFCR_RTS_INVERT_BIT,
which breaks some hardware using these chips.

The hardware supports both RTS_ON_SEND and RTS_AFTER_SEND modes, so fix
this by announcing support for RTS_ON_SEND.

Signed-off-by: Hugo Villeneuve <[email protected]>
Suggested-by: Konstantin Pugin <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Reviewed-by: Andy Shevchenko <[email protected]>
Tested-by: Hugo Villeneuve <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
@pelwell pelwell merged commit 6942471 into raspberrypi:rpi-6.6.y Dec 16, 2024
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 16, 2024
kernel: RP1 DPI: Add interlaced modes
See: raspberrypi/linux#6529

kernel: ASoC: allo-piano-dac-plus: Fix volume limit locking
See: raspberrypi/linux#6532

kernel: drm: vc4: txp: Do not allow 24bpp formats when transposing
See: raspberrypi/linux#6533

kernel: ASoC: allo-piano-dac-plus: Suppress -517 errors
See: raspberrypi/linux#6534

kernel: drm: rp1: rp1-dpi: Fix optional dependency on RP1_PIO
See: raspberrypi/linux#6535

kernel: serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND
See: raspberrypi/linux#6540
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Dec 16, 2024
kernel: RP1 DPI: Add interlaced modes
See: raspberrypi/linux#6529

kernel: ASoC: allo-piano-dac-plus: Fix volume limit locking
See: raspberrypi/linux#6532

kernel: drm: vc4: txp: Do not allow 24bpp formats when transposing
See: raspberrypi/linux#6533

kernel: ASoC: allo-piano-dac-plus: Suppress -517 errors
See: raspberrypi/linux#6534

kernel: drm: rp1: rp1-dpi: Fix optional dependency on RP1_PIO
See: raspberrypi/linux#6535

kernel: serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND
See: raspberrypi/linux#6540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants