Which ioctl can be used for this?I mean we can introduce a new ioctl for that in the future.
Yes, but I'd like to do that after the initial version is merged sinceYes, so you need an ioctl for userspace to update the device statusI wonder if it's better to do something similar to ccw:But NEEDS_RESET does not only happen in this case.
1) requires the userspace to update the status bit in the response
2) update the dev->status to the status in the response if no timeout
Then userspace could then set NEEDS_RESET if necessary.
(NEEDS_RESET) probably.
NEEDS_RESET is not supported now.