[media] cx231xx: reset pipe endpoint when it is stalled
authorTerry Heo <terryheo@google.com>
Thu, 28 Jul 2016 09:52:04 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 6 Aug 2016 11:32:17 +0000 (08:32 -0300)
commit69b17abf38eda6e02bc208cb779c948b13f2ad90
treed22c0e752fd41caff02dec332fc0b7d87342be79
parent292eaf50c7df4ae2ae8aaa9e1ce3f1240a353ee8
[media] cx231xx: reset pipe endpoint when it is stalled

Sometimes, the USB pipe could enter into a stalled state,
and may need a reset to rework.

Add such logic.

[mchehab@osg.samsung.com: ported from Android's source:
 https://android.googlesource.com/kernel/x86_64/+/3a322adc0084fd277b43070712c7dc0dc9245435%5E%21]

Signed-off-by: Terry Heo <terryheo@google.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/cx231xx/cx231xx-core.c