]> git.baikalelectronics.ru Git - uboot.git/commit
phy: rockchip: inno-usb2: Add support #address_cells = 2
authorJagan Teki <jagan@amarulasolutions.com>
Fri, 17 Feb 2023 11:58:39 +0000 (17:28 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:27 +0000 (18:07 +0800)
commit60c01a2b71e9c6dffbc0e63c2c85b99dda7d9128
tree091c5d60df2f410b0528faaa2430d577638074a3
parent53754a3e45382f50bed891ff3eb064634305f961
phy: rockchip: inno-usb2: Add 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.

Derived and adjusted the similar change from linux-next with below
 commit <9c19c531dc98> ("phy: phy-rockchip-inno-usb2: support
 #address_cells = 2")

Co-developed-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c