Re: [PATCH] ptp: ocp: Document sysfs output format for backward compatibility

From: patchwork-bot+netdevbpf
Date: Mon Nov 10 2025 - 19:30:54 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Fri, 7 Nov 2025 15:45:33 +0800 you wrote:
> Add a comment to ptp_ocp_tty_show() explaining that the sysfs output
> intentionally does not include a trailing newline. This is required for
> backward compatibility with existing userspace software that reads the
> sysfs attribute and uses the value directly as a device path.
>
> A previous attempt to add a newline to align with common kernel
> conventions broke userspace applications that were opening device paths
> like "/dev/ttyS4\n" instead of "/dev/ttyS4", resulting in ENOENT errors.
>
> [...]

Here is the summary with links:
- ptp: ocp: Document sysfs output format for backward compatibility
https://git.kernel.org/netdev/net-next/c/5b9192c2c075

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html