All of lore.kernel.org
 help / color / mirror / Atom feed
* corsair-cpro and hidraw
@ 2021-06-17  3:11 Aleksandr Mezin
  2021-06-17  4:33 ` Aleksandr Mezin
  2021-06-17  6:27 ` Marius Zachmann
  0 siblings, 2 replies; 14+ messages in thread
From: Aleksandr Mezin @ 2021-06-17  3:11 UTC (permalink / raw)
  To: Marius Zachmann, linux-hwmon

Hello.

I've noticed that corsair-cpro communicates with the device in
request-reply pattern, and also exposes hidraw interface, so userspace
can also send requests. How does the driver figure out that the
current input report is a response to the request sent by the driver,
and not for some other request from userspace? Also if userspace reads
from hidraw, how can it be sure that the report it read is the
response to its last request, and not to some driver's request?

I do not have the hardware, I was just looking at corsair-cpro as a
reference - I'm working on a driver for a similar device (nzxt rgb &
fan controller)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-06-18 19:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17  3:11 corsair-cpro and hidraw Aleksandr Mezin
2021-06-17  4:33 ` Aleksandr Mezin
2021-06-17  6:27 ` Marius Zachmann
2021-06-17  7:11   ` Aleksandr Mezin
2021-06-17 13:14     ` Guenter Roeck
2021-06-17 23:56       ` Aleksandr Mezin
2021-06-18  5:45         ` Wilken Gottwalt
2021-06-18  6:18           ` Marius Zachmann
2021-06-18  6:47             ` Wilken Gottwalt
2021-06-18  7:06               ` Marius Zachmann
2021-06-18 12:13                 ` Guenter Roeck
2021-06-18 12:22                   ` Marius Zachmann
2021-06-18 19:41                     ` Guenter Roeck
2021-06-18 12:10               ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.