On Wed, 24 Jun 2009, Ramya Desai wrote: > Dear Experts, > > I am trying to develop an asynchronous mass storage driver for my custom device. > I am using the default mass storage driver as my basis. > > My first question, is the completion routine the first one to be > called if the request finishes? Are you talking about USB requests (i.e., URBs) and USB completion routines? Then the answer is yes. > I wanted to my command submit to USB stack (submitURB()) code in the > driver context and look for the another command from the upper layer. > To do so I wanted to move the rest of the code to completion routine. > If I return USB_STOR_TRANSPORT_GOOD in completion routine, where this > return is going to? USB completion routines always return void. You cannot return USB_STOR_TRANSPORT_GOOD from a completion routine. > Is there any Asynchronous mass storage reference code available? drivers/block/ub.c. Alan Stern -- 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