Re: Q: weird hidraw behaviour
From: David Herrmann <hidden>
Date: 2013-10-10 09:41:07
Hi On Thu, Oct 10, 2013 at 11:39 AM, Mika Westerberg [off-list ref] wrote:
On Thu, Oct 10, 2013 at 11:26:45AM +0200, David Herrmann wrote:quoted
I don't know whether it's intentional, but it is hardcoded this way now. Logic is, ->close() is called on hidraw_disconnect() that is, when hidraw is unloaded on a device. It no longer depends on user-space processes. Any reason to change it back? It's no bug, so if no-one cares I'd leave it as it is now. Otherwise, we can try to change it again.Well, if you open the device and close it from userspace, the device stays opened forever. I'm not sure if that's the intention. I think that fix for this was already merged.
Indeed, fixed upstream in: http://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/commit/?h=for-3.12/upstream-fixes&id=0f5a24c6602063e014ee48892ebf56093241106e Thanks David