Skip to content

USB: serial: pl2303: account for deficits of clones #6689

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

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Feb 27, 2025

There are apparently incomplete clones of the HXD type chip in use. Those return -EPIPE on GET_LINE_REQUEST and BREAK_REQUEST. Avoid flooding the kernel log with those errors. Detect them during startup and then use the line_settings cache instead of GET_LINE_REQUEST. Signal missing break support via -ENOTTY.

[ johan: fix macro prefix, drop oom error message ]

There are apparently incomplete clones of the HXD type chip in use.
Those return -EPIPE on GET_LINE_REQUEST and BREAK_REQUEST. Avoid
flooding the kernel log with those errors. Detect them during startup
and then use the line_settings cache instead of GET_LINE_REQUEST. Signal
missing break support via -ENOTTY.

Signed-off-by: Jan Kiszka <[email protected]>
[ johan: fix macro prefix, drop oom error message ]
Signed-off-by: Johan Hovold <[email protected]>
@pelwell pelwell merged commit 5985ce3 into raspberrypi:rpi-6.12.y Feb 28, 2025
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Mar 5, 2025
See: raspberrypi/linux#6689

kernel: Revert "firmware: raspberrypi: Add backward compatible get_throttled"
See: raspberrypi/linux#6697

kernel: RP1 DPI: interlaced HSync/VSync alignment (6.12)
See: raspberrypi/linux#6695

kernel: dtoverlays: ov9281: Add continuous clock option as an override
See: raspberrypi/linux#6700

kernel: Fix clang compilation error for rpi5
See: raspberrypi/linux#6699

kernel: drm/vc4: Correct one logging message that got promoted from dbg to err
See: raspberrypi/linux#6702
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Mar 5, 2025
See: raspberrypi/linux#6689

kernel: Revert "firmware: raspberrypi: Add backward compatible get_throttled"
See: raspberrypi/linux#6697

kernel: RP1 DPI: interlaced HSync/VSync alignment (6.12)
See: raspberrypi/linux#6695

kernel: dtoverlays: ov9281: Add continuous clock option as an override
See: raspberrypi/linux#6700

kernel: Fix clang compilation error for rpi5
See: raspberrypi/linux#6699

kernel: drm/vc4: Correct one logging message that got promoted from dbg to err
See: raspberrypi/linux#6702
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.

2 participants