2020-07-17 15:25:26

by Al Cooper

[permalink] [raw]
Subject: [PATCH 2/7] usb: bdc: Add compatible string for new style USB DT nodes

Add compatible string for some newer boards that only have this
as there match sting.

Signed-off-by: Al Cooper <[email protected]>
---
drivers/usb/gadget/udc/bdc/bdc_core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 02a3a774670b..436a734ea0bc 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -629,6 +629,7 @@ static SIMPLE_DEV_PM_OPS(bdc_pm_ops, bdc_suspend,
bdc_resume);

static const struct of_device_id bdc_of_match[] = {
+ { .compatible = "brcm,bdc-udc-v2" },
{ .compatible = "brcm,bdc-v0.16" },
{ .compatible = "brcm,bdc" },
{ /* sentinel */ }
--
2.17.1


2020-07-17 16:56:36

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH 2/7] usb: bdc: Add compatible string for new style USB DT nodes



On 7/17/2020 8:23 AM, Al Cooper wrote:
> Add compatible string for some newer boards that only have this
> as there match sting.
>
> Signed-off-by: Al Cooper <[email protected]>

This looks good to me, however you should also include it in the binding
document.
--
Florian