linux/drivers/usb/dwc3
Roger Quadros 8261bd4e91 usb: dwc3: make macros safe to expression arguments
We must make sure that our macros are safe against expressions passed
as arguments. We have seen one problem where GTXFIFOSIZ(n) was failing
when passed the expression (epnum >> 1) as argument. The problem was
caused by operator precedence between >> and *.

To make sure macros are safe, we just wrap argument with () when using
it.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-04-11 10:58:18 +03:00
..
core.c usb: dwc3: make sure UX_EXIT_PX is cleared 2017-03-27 10:46:33 +03:00
core.h usb: dwc3: make macros safe to expression arguments 2017-04-11 10:58:18 +03:00
debug.h usb: dwc3: trace: purge dwc3_trace() 2016-11-08 12:52:13 +02:00
debugfs.c usb: dwc3: add DWC3_GUCTL1 reg for debug 2016-06-20 12:32:46 +03:00
dwc3-exynos.c USB: changes for v4.11 2017-01-26 15:36:28 +01:00
dwc3-keystone.c usb: dwc3: keystone: drop dma_mask configuration 2016-04-06 16:36:01 +03:00
dwc3-of-simple.c usb: dwc3: of-simple: add compatible for Cavium 2016-09-13 09:28:59 +03:00
dwc3-omap.c usb: dwc3-omap: Fix missing break in dwc3_omap_set_mailbox() 2017-03-06 16:59:34 +02:00
dwc3-pci.c usb: dwc3: pci: add Intel Gemini Lake PCI ID 2017-01-02 10:55:28 +02:00
dwc3-st.c usb: patches for v4.10 merge window 2016-11-18 16:02:15 +01:00
ep0.c usb: dwc3: ep0: Fix the possible missed request for handling delay STATUS phase 2017-01-24 11:04:15 +02:00
gadget.c usb: dwc3: gadget: delay unmap of bounced requests 2017-03-22 11:20:36 +02:00
gadget.h usb: dwc3: gadget: make Set Endpoint Configuration macros safe 2017-03-06 10:09:37 +02:00
host.c usb: dwc3: host: pass quirk-broken-port-ped property for known broken revisions 2017-01-26 11:17:37 +02:00
io.h usb: dwc3: trace: add a proper tracepoint for reg accessors 2016-11-03 10:38:30 +02:00
Kconfig usb: dwc3: pci: call _DSM for suspend/resume 2016-11-03 10:38:42 +02:00
Makefile usb: dwc3: trace: purge dwc3_trace() 2016-11-08 12:52:13 +02:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: remove dwc3_log_msg trace class 2017-03-27 10:46:34 +03:00
ulpi.c usb: dwc3: ulpi: make dwc3_ulpi_ops constant 2016-09-06 10:47:26 +03:00