Skip to content

Conversation

@jseely
Copy link

@jseely jseely commented Jan 30, 2026

Helps with #15

This PR is the first step towards SMBus support.
Currently if I2C functionality isn't available on the I2C bus the Ioctl call fails with unsupported.

This implements Read/Write Byte Data SMBus calls for transactions with (len(r)==1 && len(w)==1) and (len(r)==0 && len(w)==2) respectively.

@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 0% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.5%. Comparing base (9cd28b7) to head (760e25b).

Files with missing lines Patch % Lines
sysfs/i2c.go 0.0% 33 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main     #72     +/-   ##
=======================================
+ Coverage   27.2%   27.5%   +0.3%     
=======================================
  Files         96      96             
  Lines      11834    9514   -2320     
=======================================
- Hits        3220    2613    -607     
+ Misses      8479    6765   -1714     
- Partials     135     136      +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jseely
Copy link
Author

jseely commented Feb 2, 2026

@maruel I'm currently working on getting some tests in place around this code. Are there any other changes you would want made to this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant