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

drivers/sensor/ite/tach_ite_it8xxx2: don't clear both status at once #87326

Merged
merged 2 commits into from
Mar 21, 2025

Conversation

RuibinChang
Copy link
Collaborator

@RuibinChang RuibinChang commented Mar 19, 2025

When two tach use simultaneously, we find that both tach status will be cleared at once, which causes one of tach not to get r.p.m.
So I change it to clear status only one tach at a time, and also run clang format.

This issue is reported by Huaqin:
https://partnerissuetracker.corp.google.com/issues/404067663?pli=1

Copy link
Member

@ubieda ubieda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't mix formatting changes with functional changes. If reformatting is desired, please split in two patches.

@RuibinChang RuibinChang force-pushed the it8xxx2_tach branch 2 times, most recently from 304dcf0 to 04476e1 Compare March 20, 2025 02:36
@RuibinChang
Copy link
Collaborator Author

Please don't mix formatting changes with functional changes. If reformatting is desired, please split in two patches.

Done, split into two commits.

…once

When two tach use simultaneously, I find that the both tach status will
be cleared at once, which causes one of tach not to get rpm speed.
So I change it to clear status only one tach at a time.

This issue is reported by Huaqin:
https://partnerissuetracker.corp.google.com/issues/404067663?pli=1

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Run clang format.

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
@RuibinChang
Copy link
Collaborator Author

use existing macro IT8XXX2_PWM_T0DVS and IT8XXX2_PWM_T1DVS

@kartben kartben merged commit dcbd0d1 into zephyrproject-rtos:main Mar 21, 2025
21 checks passed
@RuibinChang RuibinChang deleted the it8xxx2_tach branch March 21, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants