Commit graph

5 commits

Author SHA1 Message Date
Vijayavardhan Vennapusa
048d29e723 USB: CCID: Select TPDU level exchanges for CCID communication
Current CCID daemon is supporting TPDU level exhanges for CCID
communication. Hence report same in dwFeatures field of CCID class
descriptor.

Change-Id: If66a54bd74c76ccb417b202b224de5c79e9dfa05
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-12-04 20:48:05 -08:00
Vijayavardhan Vennapusa
c05883d268 usb: gadget: CCID: Add support for SuperSpeed enumeration
Currently CCID function supports only upto HighSpeed
enumeration. Add descriptors for SuperSpeed mode
and bind them to enable SuperSpeed enumeration of
USB CCID function.

Change-Id: I1908a9aa2daec7d1d361cb996e82cd1a0700f7cc
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-10-06 11:24:04 +05:30
Vijayavardhan Vennapusa
8d57aea469 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>
2017-08-04 14:08:44 +05:30
Hemant Kumar
12ad811e3f usb: gadget: add configfs support in ccid function driver
This allows ccid device to enumerate using usb compostion
driver supporting config file system. Also fix compliation
errors.

Change-Id: I363b8f967781ab162fbd7ded0b397c86cf3d3fc5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-02-01 15:24:20 -08:00
Hemant Kumar
3e8e6fa122 usb: gadget: Add snapshot of CCID function driver
This snapshot is taken as of msm-3.18 commit:
bf10764e3d1 (Merge "ARM: dts: msm: Update APC MEM ACC settings for
msm8920")

This USB CCID function driver will be a transport layer between
the userspace CCID component and the Windows Host. Data and control
commands from the Windows Host will be sent to the userspace
component and vice-versa.

Change-Id: Ie5eeda1550ac30cac47fd3799021598eac550652
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-01-16 14:28:20 -08:00