usb: dwc2: Fix build in periphal-only mode
stable inclusion from stable-5.10.43 commit a4ed12f5edc41abbfe2bce4a215de2f6ff4993eb bugzilla: 109284 CVE: NA -------------------------------- In branches to which 24d209db ("usb: dwc2: Fix hibernation between host and device modes.") has been back-ported, the bus_suspended member of struct dwc2_hsotg is only present in builds that support host-mode. To avoid having to pull in several more non-Fix commits in order to get it to compile, wrap the usage of the member in a macro conditional. Fixes: 24d209db ("usb: dwc2: Fix hibernation between host and device modes.") Signed-off-by: NPhil Elwell <phil@raspberrypi.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录