phy: uniphier-usb3ss: fix unintended writing zeros to PHY register
authorRyuta NAKANISHI <nakanishi.ryuta@socionext.com>
Wed, 22 Dec 2021 05:19:29 +0000 (14:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 11:02:08 +0000 (12:02 +0100)
commit3ba1c03537a2f7aa5268d8c79c521ecbb4b56fe3
treee67342c1e5aad7b571f6dfd8954fe22742708d48
parent7369b31ee7cd095dba8993a9a624c955bd390c43
phy: uniphier-usb3ss: fix unintended writing zeros to PHY register

[ Upstream commit 898c7a9ec81620125f2463714a0f4dea18ad6e54 ]

Similar to commit 4a90bbb478db ("phy: uniphier-pcie: Fix updating phy
parameters"), in function uniphier_u3ssphy_set_param(), unintentionally
write zeros to other fields when writing PHY registers.

Fixes: 5ab43d0f8697 ("phy: socionext: add USB3 PHY driver for UniPhier SoC")
Signed-off-by: Ryuta NAKANISHI <nakanishi.ryuta@socionext.com>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1640150369-4134-1-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/socionext/phy-uniphier-usb3ss.c