usb: dwc3: Fix UTMI/UTMIW phy interface initialization
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 18 Dec 2019 07:30:02 +0000 (13:00 +0530)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 21 Dec 2019 19:35:16 +0000 (20:35 +0100)
commit5c207282f53f86ecbf8c25cb691030d8c643ba1c
tree5d77b00717b2cfb9c4b8ffb052eb8edab5b982e4
parent5c7fa84f4b356746a591cf2e726feeed11e1848e
usb: dwc3: Fix UTMI/UTMIW phy interface initialization

DWC3 support phy interfaces like 8/16-bit UTMI+. phy interface
initialization code would handle them properly along with UNKNOWN
type by default if none of the user/board doesn't need to use the
phy interfaces at all.

The current code is masking the 8/16-bit UTMI+ interface bits globally
which indeed effect the UNKNOWN cases, therefore it effects the platforms
which are not using phy interfaces at all.

So, handle the phy masking bits accordingly on respective interface
type cases.

Fixes: 6b7ebff00190 ("usb: dwc3: Add phy interface for dwc3_uboot")
Reported-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h