Re: [PATCH] USB: output an error message when the pipe type doesn't match the endpoint type

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Arlott
Date: Tuesday, August 31, 2010 - 4:31 am

On Tue, August 31, 2010 07:41, Clemens Ladisch wrote:

If the transfer type doesn't match the pipe type then yes, but only when
CONFIG_USB_DEBUG is enabled.

Perhaps these need to be moved to a CONFIG_USB_STRICT. Having a "debug" mode
change the behaviour is not a good idea, but some of the code in that ifdef
has been there since the import to git.

Regardless of which configuration option enables it, the pipe type
check needs an error message to explain why the driver received -EPIPE.

-- 
Simon Arlott
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] USB: output an error message when the pipe typ ..., Simon Arlott, (Tue Aug 31, 4:31 am)