Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178110714
D62164.1795989459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62164.1795989459.diff
View Options
diff --git a/sys/dev/hid/ietp.c b/sys/dev/hid/ietp.c
--- a/sys/dev/hid/ietp.c
+++ b/sys/dev/hid/ietp.c
@@ -463,7 +463,7 @@
if (device_get_devclass(iichid) != devclass_find("iichid"))
return;
- addr = iicbus_get_addr(iichid) << 1;
+ addr = iicbus_get_addr(iichid);
msgs[0] = (struct iic_msg){ addr, IIC_M_WR | IIC_M_NOSTOP, sizeof(cmd), cmd };
msgs[1] = (struct iic_msg){ addr, IIC_M_RD, sizeof(resp), resp };
@@ -656,7 +656,7 @@
ietp_iic_read_reg(device_t dev, uint16_t reg, size_t len, void *val)
{
device_t iichid = device_get_parent(device_get_parent(dev));
- uint16_t addr = iicbus_get_addr(iichid) << 1;
+ uint16_t addr = iicbus_get_addr(iichid);
uint8_t cmd[2] = { reg & 0xff, (reg >> 8) & 0xff };
struct iic_msg msgs[2] = {
{ addr, IIC_M_WR | IIC_M_NOSTOP, sizeof(cmd), cmd },
@@ -680,7 +680,7 @@
ietp_iic_write_reg(device_t dev, uint16_t reg, uint16_t val)
{
device_t iichid = device_get_parent(device_get_parent(dev));
- uint16_t addr = iicbus_get_addr(iichid) << 1;
+ uint16_t addr = iicbus_get_addr(iichid);
uint8_t cmd[4] = { reg & 0xff, (reg >> 8) & 0xff,
val & 0xff, (val >> 8) & 0xff };
struct iic_msg msgs[1] = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 9:57 PM (22 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42087813
Default Alt Text
D62164.1795989459.diff (1 KB)
Attached To
Mode
D62164: ietp(4): Expect I2C address provided by iicbus(4) to be in 8-bit format
Attached
Detach File
Event Timeline