Skip to content

Commit ea137a8

Browse files
tmlindkishon
authored andcommitted
phy: cpcap-usb: Drop extra write to usb2 register
We are currently writing the same register twice. Let's enable the USB PHY only at the end of the function. Cc: Merlijn Wajer <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Sebastian Reichel <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
1 parent 9492535 commit ea137a8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/phy/motorola/phy-cpcap-usb.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,6 @@ static int cpcap_usb_set_usb_mode(struct cpcap_phy_ddata *ddata)
489489
if (error)
490490
goto out_err;
491491

492-
error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC2,
493-
CPCAP_BIT_USBXCVREN,
494-
CPCAP_BIT_USBXCVREN);
495-
if (error)
496-
goto out_err;
497-
498492
error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3,
499493
CPCAP_BIT_PU_SPI |
500494
CPCAP_BIT_DMPD_SPI |

0 commit comments

Comments
 (0)