aboutsummaryrefslogtreecommitdiffstats
path: root/security/smc/tf_crypto_des.c
diff options
context:
space:
mode:
authorMoiz Sonasath <m-sonasath@ti.com>2011-10-03 12:14:18 -0500
committerBenoit Goby <benoit@android.com>2011-10-06 16:13:04 -0700
commit1d302801739680b2be1b21cb19436961db498ce6 (patch)
tree35ec827fc09bf3ae5a9b42b5a1bb8188dfddf8dd /security/smc/tf_crypto_des.c
parente26748eb528f38f4045c2bcc3e451e5cc6799a09 (diff)
downloadkernel_samsung_tuna-1d302801739680b2be1b21cb19436961db498ce6.zip
kernel_samsung_tuna-1d302801739680b2be1b21cb19436961db498ce6.tar.gz
kernel_samsung_tuna-1d302801739680b2be1b21cb19436961db498ce6.tar.bz2
usb: musb: Handle short packet for mode1 RX path
This patch adds the missing logic to handle a short packet when recieved in DMA mode1 RX. If the DMA is programmed in mode1 RX and the data recieved is less than the programed DMA count, we need to abort the dma xfer on recieving a short packet (which marks the end of the transfer), switch to mode0 and service the short packet. This logic is needed only for MTP/PTP case and breaks Mass-storage since Mass-storage doesnt require this additional handling of short packet, hence the short_not_ok flag (set only for mass-storage) is used as check for not executing this logic for mass-stoarge gadgets. Tested: MTP(Windows Host)/PTP/ADB(UBUNTU Host) using differnt size files between 512B-500MB. Change-Id: Ieb84bcccfcf4e7d951378bef4d9f1dc6dd5a45fd Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Diffstat (limited to 'security/smc/tf_crypto_des.c')
0 files changed, 0 insertions, 0 deletions