]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Improve handling of host and device hwparams
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:17:31 +0000 (11:17 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 18:00:51 +0000 (12:00 -0600)
commit2f09767e867c06752612cf31ce3a4662462fd357
tree3932f964fcb76a9924d640053ce47f8009c408ff
parent1f56b43e0226e63bd01ad88d79e70b5fd66fb9a7
usb: dwc2: Improve handling of host and device hwparams

Adds separate functions to get the host and device specific hardware
parameters. The functions check whether the parameters need to be read
at all, depending on dr_mode, and forces the mode only if necessary.
This saves some delays during probe. This also adds two device mode
parameters that will be used by the gadget.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h