Search Linux Wireless

[PATCH] zd1211rw: change endpoint types of EP_REGS_OUT and EP_INT_IN from interrupt to bulk

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

 



Jussi Kivilinna wrote:
> +static int usb_endpoint_int_to_bulk(struct usb_device *udev, unsigned int pipe)
> +{
> +	struct usb_host_endpoint *ep;
> +
> +	ep = usb_pipe_endpoint(udev, pipe);
> +	if (!ep)
> +		return -EPIPE;
> +
> +	switch (ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) {
> +	case USB_ENDPOINT_XFER_INT:
> +		ep->desc.bmAttributes &= ~USB_ENDPOINT_XFERTYPE_MASK;
> +		ep->desc.bmAttributes |= USB_ENDPOINT_XFER_BULK;
> +		ep->desc.bInterval = 0;
> +		/* passthru */

ath9k_htc does the same thing (see ath/ath9k/hif_usb.c).
It does seem to be working properly but I am wondering if the
USB subsystem has to be updated after the driver messes around with bmAttributes.
(lsusb would still show the endpoint type as INT).

You have a usb_reset_configuration() call before changing
the endpoint type, why is that necessary ? And would that
reset the endpoints as well ?

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux