[PATCH 1/2] Add can_do_streams to dummy_hcd

2014-05-29 Thread pktoss
From: Pantelis Koukousoulas Recent commit (14aec589327a6fc4035f5327d90ac5548f501c4c) added the "can_do_streams" field to the hcd structure but only set it to 1 in the XHCI driver. dummy_hcd can also do streams so set can_do_streams = 1 for that as well. This fixes the regression that uas host d

dummy_hcd performance / correctness

2014-05-29 Thread pktoss
I couldn't use dummy_hcd with g_tcm_gadget (UAS storage) with recent 3.15-rc kernels, firstly it wouldn't even work because stream support was broken and when I could get it to work with g_mass_storage, performance was horrible due to the driver using jiffies instead of hrtimers. With these two pa

[PATCH 2/2] Port dummy_hcd to hrtimers

2014-05-29 Thread pktoss
From: Pantelis Koukousoulas dummy_hcd uses jiffies and seems to assume that HZ=1000 and no tickless behavior. This makes for some horrible performance in ordinary desktop kernels (tickless / HZ=250) as found in distros. This patch ports dummy_hcd to use hrtimers instead, which allows for reasona