Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136943143
D53803.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
622 B
Referenced Files
None
Subscribers
None
D53803.diff
View Options
diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -271,6 +271,8 @@
iichid_cmd_read(struct iichid_softc* sc, void *buf, iichid_size_t maxlen,
iichid_size_t *actual_len)
{
+ int error;
+
/*
* 6.1.3 - Retrieval of Input Reports
* DEVICE returns the length (2 Bytes) and the entire Input Report.
@@ -280,7 +282,10 @@
struct iic_msg msgs[] = {
{ sc->addr, IIC_M_RD, maxlen, buf },
};
- int error;
+
+ if (!sc->reset_acked) {
+ msgs[0].len = 2;
+ }
error = iicbus_transfer(sc->dev, msgs, nitems(msgs));
if (error != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 6:55 PM (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25637359
Default Alt Text
D53803.diff (622 B)
Attached To
Mode
D53803: IICHID: Reset responses are only two bytes
Attached
Detach File
Event Timeline
Log In to Comment