commit | 41ce1456e1dbbc7355d0fcc10cf7c337c13def24 | [log] [tgz] |
---|---|---|
author | Roger Quadros <rogerq@ti.com> | Tue Apr 04 12:49:18 2017 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Apr 11 10:58:30 2017 +0300 |
tree | f5e52d7040ff415c60dceb757f598b5dc2330883 | |
parent | b202c42cbf812070ae1d47209d12512226d1d8a5 [diff] |
usb: dwc3: core: make dwc3_set_mode() work properly We can't have both Host and Peripheral roles active at the same time because of one detail on DWC3: it shares the same memory area for both Host and Peripheral registers. When swapping roles we must reinitialize the new role every time. Let's make sure this works for our debugfs interface. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>