Re: [PATCH 3/9] pxa27x_udc: cleanup endpoints on configuration changes

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

 



On Saturday 17 January 2009, Robert Jarzmik wrote:
> My understanding of the gadget API is that it is the "setup()" duty to disable
> unecessary endpoints by calling pxa_ep_disable() when needed.

Of the three "disable that endpoint" cases that come quickly to
mind, two are driven by the gadget driver's setup() callback:

  - SET_CONFIGURATION ... puts a bunch of interfaces in altsetting 0
    and guarantees all other endpoints are disabled
  - SET_INTERFACE ... puts one interface in arbitrary altsetting,
    which can involve enabling/disabling any number of endpoints
  - disconnect ... scrubs all endpoint state

Those first two are "config change events".  SET_CONFIGURATION to zero
disables all endpoints except EP0.

- Dave
--
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