Commit cb7d21b4 authored by Hans de Goede's avatar Hans de Goede Committed by Vinod Koul

phy: ti: tusb1210: Drop tusb->vendor_specific2 != 0 check from tusb1210_power_on()

Since commit eb445a15 ("phy: tusb1210: use bitmasks to set
VENDOR_SPECIFIC2") tusb->vendor_specific2 always contains a valid value
so there no need to check that it is set.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220213130524.18748-8-hdegoede@redhat.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 09a35126
...@@ -61,11 +61,8 @@ static int tusb1210_power_on(struct phy *phy) ...@@ -61,11 +61,8 @@ static int tusb1210_power_on(struct phy *phy)
gpiod_set_value_cansleep(tusb->gpio_cs, 1); gpiod_set_value_cansleep(tusb->gpio_cs, 1);
/* Restore the optional eye diagram optimization value */ /* Restore the optional eye diagram optimization value */
if (tusb->vendor_specific2) return tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2,
return tusb1210_ulpi_write(tusb, TUSB1210_VENDOR_SPECIFIC2, tusb->vendor_specific2);
tusb->vendor_specific2);
return 0;
} }
static int tusb1210_power_off(struct phy *phy) static int tusb1210_power_off(struct phy *phy)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment