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

x/exp/io/i2c: Devfs should not use read() and write() calls #15264

Closed
rakyll opened this issue Apr 12, 2016 · 2 comments
Closed

x/exp/io/i2c: Devfs should not use read() and write() calls #15264

rakyll opened this issue Apr 12, 2016 · 2 comments

Comments

@rakyll
Copy link
Contributor

rakyll commented Apr 12, 2016

Only a subset of the I2C and SMBus protocols can be implemented by using read() and write() calls, e.g. full duplex transmission is not supported. Most user-space programs directly depend on the I2C driver functions.

See i2c_smbus_read_word_data and i2c_smbus_write_word_data at the kernel driver reference (https://www.kernel.org/doc/Documentation/i2c/dev-interface).

@rakyll rakyll self-assigned this Apr 12, 2016
@rakyll rakyll added this to the Unreleased milestone Apr 12, 2016
@rakyll rakyll changed the title exp/io/i2c: Devfs should not use read() and write() calls x/exp/io/i2c: Devfs should not use read() and write() calls Apr 12, 2016
@gopherbot
Copy link

CL https://golang.org/cl/21960 mentions this issue.

gopherbot pushed a commit to golang/exp that referenced this issue Apr 19, 2016
Tested with a Grove-LCD RGB Backlight.

Updates golang/go#15264.

Change-Id: Iba3653de83c2355686674907ee93bed0cb17a663
Reviewed-on: https://go-review.googlesource.com/21960
Reviewed-by: Minux Ma <minux@golang.org>
@ALTree
Copy link
Member

ALTree commented Sep 7, 2020

Since x/exp/io is no longer developed and essentially frozen, I'm closing this issue.

@ALTree ALTree closed this as completed Sep 7, 2020
@golang golang locked and limited conversation to collaborators Sep 7, 2021
@rsc rsc unassigned rakyll Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants