aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-11-03usb: dwc3: core: add dwc3_get_properties()Felipe Balbi1-41/+49
This helper will be responsible for reading and parsing our properties. No functional changes in this patch, cleanup only. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: core: remove unnecessary alignmentFelipe Balbi1-6/+2
Kernel will give us page aligned memory anyway. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: core: introduce dwc3_core_setup_global_control()Felipe Balbi1-42/+48
This little helper will be used to setup anything related to GCTL register. There are no functional changes, this is a cleanup only patch. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: core: introduce dwc3_core_is_valid()Felipe Balbi1-10/+22
This little helper will be used to make sure we're dealing with a valid Synopsys DWC3 or DWC3.1 core. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: Add support for device L1 exitJohn Youn2-0/+14
For the usb31 IP and from version 2.90a of the usb3 IP, the core supports HW exit from L1 in HS. Enable it, otherwise the controller may never exit from LPM to do a transfer. Signed-off-by: John Youn <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: remove unused struct member dwc3->memLu Baolu2-4/+0
Member @mem in struct dwc3 is not used in any places. Clean up it. Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: never ever kill the machineFelipe Balbi1-1/+2
We should never kill the machine just because some USB endpoint type is wrong. WARN about it and move on. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: only interrupt on short if short_not_ok is setFelipe Balbi1-2/+6
We don't need to know about short packets unless gadget driver told us it's not ok to see them on the bus. In the normal situation we can continue processing the list of requests if we get a Short packet. Also, note that we're making sure ISP is only set for OUT endpoints, where that setting is valid. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: CSP is only valid for OUT endpointsFelipe Balbi1-1/+2
CSP bit is only valid for OUT endpoints. Synopsys databook is unclear if HW ignores CSP for IN endpoints (chances are, it does) but to avoid problems, let's make sure to set CSP only when valid to do so. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: remove unused 'first_trb_index'Felipe Balbi2-3/+0
Recent changes have turned this field obsolete. Remove it. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: ep0: simplify dwc3_ep0_handle_feature()Felipe Balbi1-93/+164
By extracting smaller functions from dwc3_ep0_handle_feature(), it becomes far easier to understand what's going on. Cleanup only, no functional changes. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: host: extract dwc3_host_get_irq()Felipe Balbi1-30/+42
Cleanup only, no functional changes. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: extract dwc3_gadget_get_irq()Felipe Balbi1-23/+39
Cleanup only, no functional changes. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: trace: add a proper tracepoint for reg accessorsFelipe Balbi2-13/+28
We want to reduce the usage of dwc3_trace() in favor of proper tracepoints which can be enabled/disabled by the user. Let's start with our register accessors. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: Kconfig: allow all glues to build if COMPILE_TESTFelipe Balbi1-2/+2
We shouldn't have any glue layer which doesn't compile everywhere. In order to make sure this is always the case, make sure COMPILE_TEST is properly added at dependency list of a config entry. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: don't compile dwc3_trace() unless CONFIG_FTRACE=yFelipe Balbi2-1/+11
We don't need dwc3_trace() unless we're building a kernel with CONFIG_FTRACE. This patch reduces dwc3.ko text size a bit while also removing overhead of dwc3_trace() calls. text data bss dec hex filename 50796 581 0 51377 c8b1 drivers/usb/dwc3/dwc3.o 43961 581 0 44542 adfe drivers/usb/dwc3/dwc3.o.patched Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: gadget: offset Start Transfer latency for bulk EPsFelipe Balbi1-0/+29
We can offset the latency of a full Start Transfer command - where we _must_ poll for its completion - to usb_ep_enable() time. This means that once requests start showing up from the gadget driver, we can rely on No Response Update Transfer command - where we don't need to poll for completion. This patch, starts implementing this method for Bulk endpoints, even though, technically, we could extend it to all other endpoints in future commits. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: dwc3: trace: pretty print high-bandwidth transfers tooFelipe Balbi1-2/+23
In case of periodic transfers, let's pretty print the size field as a multiplier followed by length, such as : 3x 1024 instead of: 33555456 Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: mv: remove unnecessary & operationFelipe Balbi1-1/+0
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: fsl: remove unnecessary & operationFelipe Balbi1-1/+0
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Li Yang <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: ip: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Valentina Manea <[email protected]> Cc: Shuah Khan <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: misc: usbtest: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: s3c2410: remove unnecessary & operationFelipe Balbi1-2/+2
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: net2280: remove unnecessary & operationFelipe Balbi1-3/+3
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: net2272: remove unnecessary & operationFelipe Balbi1-2/+2
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: dummy: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Alan Stern <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: bdc: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Ashwini Pahuja <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: atmel: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Acked-by: Nicolas Ferre <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: composite: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: host: ehci: remove unnecessary max_packet() macroFelipe Balbi2-14/+9
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove this macro from the driver. Cc: Alan Stern <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: core: endpoint: remove unnecessary & operationFelipe Balbi1-2/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Greg Kroah-Hartman <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: core: devices: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Greg Kroah-Hartman <[email protected]> Cc: <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: chipidea: udc: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Peter Chen <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03media: usb: uvc: remove unnecessary & operationFelipe Balbi1-1/+1
Now that usb_endpoint_maxp() only returns the lowest 11 bits from wMaxPacketSize, we can remove the & operation from this driver. Cc: Laurent Pinchart <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: host: xhci: purge GET_MAX_PACKET()Felipe Balbi5-13/+8
usb_endpoint_maxp() is now returning maxpacket correctly - iow only bits 10:0. We can finaly remove XHCI's private GET_MAX_PACKET macro. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: ch9: make usb_endpoint_maxp() return only packet sizeFelipe Balbi1-2/+3
Now that we have a helper to gather periodic endpoints' multiplier bits from wMaxPacketSize and every driver is using it, we can safely make sure that usb_endpoint_maxp() returns only bits 10:0 of wMaxPacketSize which is where the actual packet size lies. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: musb: make use of new usb_endpoint_maxp_mult()Felipe Balbi2-5/+5
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Bin Liu <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: misc: usbtest: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-2/+2
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: host: xhci: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-3/+3
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Mathias Nyman <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: host: ehci: make use of new usb_endpoint_maxp_mult()Felipe Balbi2-5/+7
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Alan Stern <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: mv_udc: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: gr: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: fusb300: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: fsl: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Li Yang <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: dummy: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-2/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Alan Stern <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: bdc: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Ashwini Pahuja <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: gadget: udc: atmel: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+1
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Acked-by: Nicolas Ferre <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: core: devices: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-8/+2
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Cc: Greg Kroah-Hartman <[email protected]> Cc: <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-03usb: chipidea: udc: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-2/+2
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Acked-by: Peter Chen <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
2016-11-01media: usb: uvc: make use of new usb_endpoint_maxp_mult()Felipe Balbi1-1/+3
We have introduced a helper to calculate multiplier value from wMaxPacketSize. Start using it. Acked-by: Laurent Pinchart <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>