Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: host: ehci-platform: Add device_link between the ehci and companion
Rockchip ehci controller has companion ohci controller, and the ohci depends on the ehci, if the ehci controller has been suspend or shutdown, it shouldn't access the ohci controller, otherwise, the system may hang in ohci_readl or ohci_writel on Rockchip platforms. In order to enforce suspend/resume and shutdown ordering, this commit creates link between the ehci and ohci. This link avoids to suspend or shutdown ehci before its companion ohci. Corresponding, DL_FLAG_AUTOREMOVE_CONSUMER can't be added, then device_link_removed should be added explicitly. Meanwhile, the ehci must not be resumed after its companion if the companion is the consumer device of ehci. Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: If2935c651341917251c2178a6833357a73b71079
- Loading branch information