]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Do not set host parameter in peripheral mode
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 20 Nov 2016 21:26:02 +0000 (21:26 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 2 Jan 2017 08:55:28 +0000 (10:55 +0200)
commit47f1ad046b233c9ca2fd3bd6e40e5abaa30171d6
treeb16cd2ee96df9c0e61b4116d7e54c5eeb16a9a31
parenta780c2d5637d959a6133b349d5166a4148a42da3
usb: dwc2: Do not set host parameter in peripheral mode

Since commit "usb: dwc2: Improve handling of host and device hwparams" the
host mode specific hardware parameter aren't initialized in peripheral mode
from the register settings anymore. So we better do not set them in this
case which avoids the following warnings on bcm2835:

  256 invalid for host_nperio_tx_fifo_size. Check HW configuration.
  512 invalid for host_perio_tx_fifo_size. Check HW configuration.

Fixes: 2f09767e867c ("usb: dwc2: Improve handling of host and device hwparams")
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/params.c