Currently RESET handler calls read() for control endpoint after mtp
reset. However, as comparing with legacy slp handler, send reponse by
calling write() is the right way for sending response for RESET. Thus,
this fixes to send response instead of waiting additional request.
Change-Id: I79e42c40ac30015883db85b42c0cd941bbbbfb39
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
if (kernel_reset == FALSE) {
kernel_reset = TRUE;
}
- status = read(g_usb_ep0, NULL, 0);
+ status = write(g_usb_ep0, NULL, 0);
if (status < 0) {
- ERR("IOCTL MTP_SEND_RESET_ACK Failed [%d]\n",
+ ERR("Failed to write RESET ACK [%d]\n",
status);
}
break;