]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b7d50c3765235b67dfa1f8d9fcd3e1814e81246
tree0b5fc9aa18a8970f2669439bb14ea6083d0fbcbd
parent96ede5d9f8bdd8c48b3f71588cc1d8e19dd2a612
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