Re: [PATCH RESEND v2] usb: dwc2: add pci_device_id driver_data parse support

From: Greg Kroah-Hartman
Date: Tue Aug 22 2023 - 08:49:50 EST


On Tue, Aug 15, 2023 at 02:58:33PM +0800, Yinbo Zhu wrote:
> The dwc2 driver has everything we need to run in PCI mode except
> for pci_device_id driver_data parse. With that to set Loongson
> dwc2 element and added identified as PCI_VENDOR_ID_LOONGSON
> and PCI_DEVICE_ID_LOONGSON_DWC2 in dwc2_pci_ids, the Loongson
> dwc2 controller will work.
>
> Signed-off-by: Yinbo Zhu <zhuyinbo@xxxxxxxxxxx>
> ---
> Change in v2:
> 1. Move the dwc2 pci ID from pci_ids.h to params.c.
> 2. Add some code logic to ensure that the current device is
> a PCI device.
> 3. Fix the compile issue when dwc2 pci driver as module.
>
> drivers/usb/dwc2/core.h | 1 +
> drivers/usb/dwc2/params.c | 39 ++++++++++++++++++++++++++++++++++++++-
> drivers/usb/dwc2/pci.c | 14 +-------------
> 3 files changed, 40 insertions(+), 14 deletions(-)

Ok, in looking at this again, I guess it's the best that can be done for
now, so I'll take it. Thanks for resending.

greg k-h