Re: [PATCH v2] usb: dwc2: Fix SET/CLEAR_FEATURE and GET_STATUS flows

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

 



Hi,

Minas Harutyunyan <Minas.Harutyunyan@xxxxxxxxxxxx> writes:
>> @@ -1768,16 +1771,17 @@ static int dwc2_hsotg_process_req_feature(struct dwc2_hsotg *hsotg,
>>   				return -EINVAL;
>>   
>>   			hsotg->test_mode = wIndex >> 8;
>> -			ret = dwc2_hsotg_send_reply(hsotg, ep0, NULL, 0);
>> -			if (ret) {
>> -				dev_err(hsotg->dev,
>> -					"%s: failed to send reply\n", __func__);
>> -				return ret;
>> -			}
>>   			break;
>>   		default:
>>   			return -ENOENT;
>>   		}
>> +
>> +		ret = dwc2_hsotg_send_reply(hsotg, ep0, NULL, 0);
>> +		if (ret) {
>> +			dev_err(hsotg->dev,
>> +				"%s: failed to send reply\n", __func__);
>> +			return ret;
>> +		}
>>   		break;
>>   
>>   	case USB_RECIP_ENDPOINT:
>> 
>
> What about this patch?

See:

https://lore.kernel.org/linux-usb/875zhd6pw0.fsf@xxxxxxxxxx/T/#u

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux