phy: phy-rockchip-inno-usb2: support #address_cells = 2
authorPeter Geis <pgwipeout@gmail.com>
Wed, 15 Dec 2021 21:02:47 +0000 (16:02 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 23 Dec 2021 11:24:48 +0000 (16:54 +0530)
commit9c19c531dc98d7ba49b44802a607042e763ebe21
tree0b5fc9aa18a8970f2669439bb14ea6083d0fbcbd
parent8eff5b99042dd2fe6494e82ab1dc39bcdd5b976c
phy: phy-rockchip-inno-usb2: support #address_cells = 2

New Rockchip devices have the usb phy nodes as standalone devices.
These nodes have register nodes with #address_cells = 2, but only use 32
bit addresses.

Adjust the driver to check if the returned address is "0", and adjust
the index in that case.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20211215210252.120923-4-pgwipeout@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c