phy: ti: tusb1210: Improve ulpi_read()/_write() error checking
authorHans de Goede <hdegoede@redhat.com>
Sun, 13 Feb 2022 13:05:21 +0000 (14:05 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 25 Feb 2022 08:58:07 +0000 (14:28 +0530)
commit09a3512681b359d7d18d1ff999831b0c63decdae
tree9dd8a6b758c011af33a91e53ffdb2b2527799d62
parent3153fa38e38af566cf6454a03b1dbadaf6f323c0
phy: ti: tusb1210: Improve ulpi_read()/_write() error checking

ulpi_read() and ulpi_write() calls can fail. Add wrapper functions to log
errors when this happens and add error checking to the read + write of
the phy parameters from the TUSB1210_VENDOR_SPECIFIC2 register.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220213130524.18748-7-hdegoede@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-tusb1210.c