OSDN Git Service

usb: dwc2: Set core parameters to default values
authorJohn Youn <John.Youn@synopsys.com>
Mon, 23 Jan 2017 22:55:14 +0000 (14:55 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 14:19:05 +0000 (16:19 +0200)
commit245977c967eee19de4d5e95ec67227dcfe57b0e2
tree37884b9d47093df1e7919a42a44a176b2393c4b4
parent0f3a7459ae2fd47cce099735ea3260979729cbfd
usb: dwc2: Set core parameters to default values

Initialize the core parameters to their default, auto-detected values.

Remove all the previous dwc2_set_param* methods. Most of what this code
is doing is handling defaults for "not set" values and other trivial
checks. The checking can be simplified and will be done in a later
commit.

This allows us to change only those parameters that won't work with
default settings. It also allows us to use non-int parameters.

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