>>> Â Â Â Â Â struct usb_hcd __maybe_unused *hcd; >>> Â Â Â Â Â Â /* >>> Â Â Â Â Â Â * FIXME: Fix this layering violation. >>> Â Â Â Â Â Â */ >>> Â Â Â Â Â hcd = platform_get_drvdata(dwc->xhci); >>> +Â Â Â if (!hcd) >>> +Â Â Â Â Â Â Â return USB_SPEED_UNKNOWN; >>> Â Â #ifdef CONFIG_USB >> >> Perhaps this #ifdef shouldn't only be checking this. But that's for >> another patch >>Â Â Â Â Â Â udev = usb_hub_find_child(hcd->self.root_hub, >> port_index + 1); >>> --Â >>> 2.17.1 >>> >> >> BR, >> Thinh > Thanks, > Prashanth K Thanks, Faisal