Skip to content

Commit f1ba4d9

Browse files
committed
DO NOT SUBMIT: usb: dwc3: Add "apple,t8103-dwc3" compatible
The upstream submission likely will use an apple specific glue driver and thus can not use "snps,dwc3" as fallback compatible. Add "apple,t8103-dwc3" now as additional compatible so that the downstream kernel keeps working with the upstream device trees. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 9252ca1 commit f1ba4d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/usb/dwc3/core.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,8 @@ int dwc3_core_probe(const struct dwc3_probe_data *data)
22612261
}
22622262

22632263
if (dev->of_node) {
2264-
if (of_device_is_compatible(dev->of_node, "apple,dwc3")) {
2264+
if (of_device_is_compatible(dev->of_node, "apple,dwc3") ||
2265+
of_device_is_compatible(dev->of_node, "apple,t8103-dwc3")) {
22652266
if (!IS_ENABLED(CONFIG_USB_ROLE_SWITCH) ||
22662267
!IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE)) {
22672268
dev_err(dev,
@@ -2832,6 +2833,10 @@ static const struct of_device_id of_dwc3_match[] = {
28322833
{
28332834
.compatible = "synopsys,dwc3"
28342835
},
2836+
/* downstream forwards compatible for upstream dt-bindings */
2837+
{
2838+
.compatible = "apple,t8103-dwc3"
2839+
},
28352840
{ },
28362841
};
28372842
MODULE_DEVICE_TABLE(of, of_dwc3_match);

0 commit comments

Comments
 (0)