Re: [PATCH 2/2] usb: dwc3: Update dwc3 udc to use usb_endpoint_descriptor inside the struct usb_ep

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

 



> Hi,
>
> On Thu, Feb 09, 2012 at 02:04:30PM +0200, Ido Shayevitz wrote:
>> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
>> index 582df0b..c2fb969 100644
>> --- a/drivers/usb/dwc3/gadget.c
>> +++ b/drivers/usb/dwc3/gadget.c
>> @@ -518,7 +518,7 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep
>> *dep,
>>  		if (ret)
>>  			return ret;
>>
>> -		dep->desc = desc;
>> +		dep->endpoint.desc = desc;
>
> isn't this already set by choose_ep_by_config() ??

Yes, I agree, but I think that as long as the api is ep->enable(ep*,desc*)
then we should keep this line, since it means that we need to enable the
endpoint with the given descriptor and not rely on the desc inside the ep.
In my opinion, when changing the api to ep->enable(ep*) as Sebastian
suggested, then we can remove this line.

> --
> balbi
>

Ido
-- 
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux