Re: [PATCH 1/2] usb: dwc3-pci: Fix dr_mode misspelling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Hans de Goede <hdegoede@xxxxxxxxxx> writes:
> usb_get_dr_mode() expects the device-property to be spelled
> "dr_mode" not "dr-mode".
>
> Spelling it properly fixes the following warning showing up in dmesg:
> [ 8704.500545] dwc3 dwc3.2.auto: Configuration mismatch. dr_mode forced to gadget
>
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  drivers/usb/dwc3/dwc3-pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
> index 6df0f5d..9c65713 100644
> --- a/drivers/usb/dwc3/dwc3-pci.c
> +++ b/drivers/usb/dwc3/dwc3-pci.c
> @@ -81,7 +81,7 @@ static int dwc3_pci_quirks(struct pci_dev *pdev, struct platform_device *dwc3)
>  		int ret;
>  
>  		struct property_entry properties[] = {
> -			PROPERTY_ENTRY_STRING("dr-mode", "peripheral"),
> +			PROPERTY_ENTRY_STRING("dr_mode", "peripheral"),
>  			{ }
>  		};
>  

I've manually applied this to my testing/fixes. Please check that it's okay.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux