]> git.dujemihanovic.xyz Git - u-boot.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)
commitd538efb9adcfa28e238c26146f58e040b0ffdc5b
tree091c5d60df2f410b0528faaa2430d577638074a3
parent3dd126155c3749a1fb9c8a53fdffd26077bc4102
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