Repository navigation
Sync aurora-wip's aop_motion trigger and macsmc RTC fixes into integration/aurora - #1062
Merged
Merged
Conversation
iio-sensor-proxy finds a buffered sensor through its trigger: it looks for "<name>-dev<id>" or "<name>-trigger", and without one it logs "Could not find trigger name associated with ..." and does not offer the sensor at all. The AOP accelerometer and gyroscope fill their buffers as the AOP reports, with no trigger, so on the J616s the accelerometer was missing from iio-sensor-proxy (HasAccelerometer false) and every boot logged that warning. Register a "<name>-dev<id>" trigger per device and make it the default, the way the HID sensor hub drivers do: the buffer is a triggered buffer whose poll function only stamps the time, and the report listener keeps pushing the scans. The trigger never fires. Only the device's own trigger is accepted. Add the IIO trigger headers to the Rust bindings and a helper for the inline iio_trigger_get(). Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Enabling a motion buffer hit WARN_ON_ONCE(IRQF_ONESHOT && !thread_fn) in __setup_irq(): the triggered buffer requests its poll function as a oneshot interrupt, and this one only had the time-stamping top half. Add a threaded half that completes the trigger. The trigger never fires, so it never runs. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
iio: aop_motion: give each sensor its own trigger
On the parts that keep the RTC offset in whole seconds (the J700), the
clock's seconds tick with the 32768 Hz counter's. set_time() took the
counter down to whole seconds, so after a write the clock read up to a
whole second ahead of the time set. The Neo's RTC measured 0.63 s ahead
of NTP time, and chronyd stepped the system clock back 1.0 to 1.8 s on
most boots ("System clock wrong by -1.1 seconds").
Round the counter to the nearest second instead: the clock is then at
most half a second ahead or behind. The tick-offset parts are unchanged.
Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
rtc: macsmc: round the whole-second offset to the nearest second
…rora Brings the two hardware-tested Aurora fixes that landed on aurora-wip: - iio: aop_motion: own trigger per sensor + threaded poll half (J616s) - rtc: macsmc: round the whole-second offset to the nearest second (Neo) Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Contributor
Author
|
Merge train (MTR 11-07), gate:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the two Aurora fixes that are on
aurora-wipbut not yet onintegration/aurora, by mergingaurora-wipat ae2d2ca (the merge of #1045). Its ancestry overintegration/aurorais exactly these five commits:iio: aop_motion: each sensor gets its own trigger, and the poll function gets a threaded half (fixes "Could not find trigger name" and the oneshot-without-thread WARN on the J616s).rtc: macsmc: round the whole-second offset to the nearest second (the Neo RTC ran +0.63 s ahead and chronyd stepped 1-1.8 s each boot).The rest of
aurora-wip(the J813/J873 AOP audio series merged there on 11-06) is not part of this sync.Testing so far
aurora-wip: iio: aop_motion: give each sensor its own trigger #1038 on the J616s (accel 51/s and gyro 50/s buffered through their own triggers, a foreign trigger refused, no WARN, 0 AVC); rtc: macsmc: round the whole-second offset to the nearest second #1045 on the Neo (two one-shot boots, RTC phase +0.631 -> -0.372 s, no chronyd step on the next boot, 0 AVC).🤖 Generated with Claude Code