Skip to content

Commit 4e2e6f7

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 7914ae5 commit 4e2e6f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/usb/dwc3/core.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,8 @@ static int dwc3_probe(struct platform_device *pdev)
22562256
goto err_put_psy;
22572257

22582258
if (dev->of_node) {
2259-
if (of_device_is_compatible(dev->of_node, "apple,dwc3")) {
2259+
if (of_device_is_compatible(dev->of_node, "apple,dwc3") ||
2260+
of_device_is_compatible(dev->of_node, "apple,t8103-dwc3")) {
22602261
if (!IS_ENABLED(CONFIG_USB_ROLE_SWITCH) ||
22612262
!IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE)) {
22622263
dev_err(dev,
@@ -2742,6 +2743,10 @@ static const struct of_device_id of_dwc3_match[] = {
27422743
{
27432744
.compatible = "synopsys,dwc3"
27442745
},
2746+
/* downstream forwards compatible for upstream dt-bindings */
2747+
{
2748+
.compatible = "apple,t8103-dwc3"
2749+
},
27452750
{ },
27462751
};
27472752
MODULE_DEVICE_TABLE(of, of_dwc3_match);

0 commit comments

Comments
 (0)