]> 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)
commita08c5c0e5fed06ac63aeb3729e642e232bb5e92a
treeb16cd2ee96df9c0e61b4116d7e54c5eeb16a9a31
parent890fcdd64047a0c9120b237799b69c2be8831d35
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: d1e4fc3a0301 ("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