summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-07-27 15:46:55 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-08-04 14:08:44 +0530
commit8d57aea4692c2815715d6538da18b62be93919e5 (patch)
treefefe69e43edd752566eb22da51abfd117b1054ab /lib/mpi/mpi-cmp.c
parente29d253ecf0480d4359ce41503741783d803ed6b (diff)
USB: f_ccid: Unblock ccid_ctrl_read() during disconnect
Whenever userspace calls read system call for ctrl_dev, ccid driver waits till it receives control request from host. Once it receives control data, it unblocks read and passes data to userspace. But if cable is disconnected, then ccid driver is not unblocking read due to which next open of ctrl_dev failing. This results in ccid functionality not working after cable reconnection as userspace not able to open ctrl_dev. Hence fix the issue by checking for online status and if online flag is cleared, unblock read and return -ENODEV. Also align request buffer length to OUT endpoint's max packet size, when userspace tries to queue buffer length that is not multiple of OUT endpoint max packet as USB controller expects length multiple of maxpacket. Change-Id: I97d1819c21919b6c66b7a1e5fbf1c452ec691639 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions