Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Tony Lindgren and committed by
Kishon Vijay Abraham I
ea137a89 9492535e

-6
-6
drivers/phy/motorola/phy-cpcap-usb.c
··· 489 489 if (error) 490 490 goto out_err; 491 491 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 - 498 492 error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3, 499 493 CPCAP_BIT_PU_SPI | 500 494 CPCAP_BIT_DMPD_SPI |