upstream: [media] fix mceusb endpoint type identification/handling
authorMatt DeVillier <matt.devillier@gmail.com>
Thu, 24 Apr 2014 14:16:31 +0000 (11:16 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:39 +0000 (11:59 +0900)
commit4f04842baae6b81d71bf7f464f62c4fa8c00ed94
treee6b794b6ad31ebe68b490257474f98b2038e9ed4
parentd0d38e6ed66a6eb3b56d7045fc9168c044cf302d
upstream: [media] fix mceusb endpoint type identification/handling

Change the I/O endpoint handling of the mceusb driver to respect the endpoint
type reported by device (bulk/interrupt), rather than treating all endpoints
as type interrupt, which breaks devices using bulk endpoints when connected
to a xhci controller.  Accordingly, change the function calls to initialize
an endpoint's transfer pipe and urb handlers to use the correct function based
on the endpoint type.

[m.chehab@samsung.com: Fix merge conflicts and compilation breakage]
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/mceusb.c