diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-29 07:49:37 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-01 15:45:00 +0200 |
| commit | 5b864f8db0bd33216895f3fe0bb1ec245c596c8e (patch) | |
| tree | e38311ba0fbef583b49e2f356fb4e25c40ef14b4 /tools/lib/python/kdoc/python_version.py | |
| parent | 3e75af9f41c7509884d0955245dec2b791287e8c (diff) | |
pps: generators: wake up PPS_GEN_FETCHEVENT readers on unregister
A reader sleeping in PPS_GEN_FETCHEVENT waits for the next event, but
no event comes after pps_gen_unregister_source(), so the reader sleeps
until it gets a signal. A PPS_GEN_FETCHEVENT issued after the
unregister sleeps the same way.
Wake up the readers on unregister, and make PPS_GEN_FETCHEVENT fail
with -ENODEV once the generator is gone, like the other ioctls. The
wait checks info without info_lock, so clear it with WRITE_ONCE().
Fixes: 86b525bed275 ("drivers pps: add PPS generators support")
Suggested-by: Rodolfo Giometti <giometti@enneenne.com>
Assisted-by: LLM
Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Link: https://patch.msgid.link/20260929124937.51114-5-danishkhateeb03@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
