staging: dwc2: fix wrong setting of DMA masks
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Tue, 26 Mar 2013 00:03:36 +0000 (17:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2013 00:10:35 +0000 (17:10 -0700)
commitba0e60d18c5940ed6e9c58e61b7747e7170b6fbb
treec671c9d48ce3eaedbd591ccf156c976c0221b525
parente62662c7f3079e02a1e59229901648758a49464a
staging: dwc2: fix wrong setting of DMA masks

We were setting the DMA masks in dwc2_driver_probe(), but that is
before the driver parameters have been set to their default values.
That meant the DMA masks could be set wrong. Fix it by moving the
DMA mask setting into dwc2_hcd_init(), after the driver parameters
have been set.

Reported-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c
drivers/staging/dwc2/pci.c