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

Fix i2c_writeread for RTL8730E and SYU645B register read #6567

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abhishek-samsung
Copy link
Contributor

Test code output to write and read back the registers,

95 : 40, 00, 32, 10, 
success, ret = 4
verify
95 : 40, 00, 32, 10, 

96 : 10, 00, 5C, AA, 
success, ret = 4
verify
96 : 10, 00, 5C, AA, 

B0 : 00, 00, 07, FF, 
success, ret = 4
verify
B0 : 00, 00, 07, FF, 

19 : 15, 
success, ret = 1
verify
19 : 15, 

10 : 77, 
success, ret = 1
verify
10 : 77, 

i2c_writeread was not working. Fix the issue by sending stop signal
appropriately.

Signed-off-by: Abhishek Akkabathula <[email protected]>
according to datasheet, we need to do a repeated start during read
without sending stop. Hence, we need to use writeread to read the
registers.

Signed-off-by: Abhishek Akkabathula <[email protected]>
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.

1 participant