[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200805120102.23320.david-b@pacbell.net>
Date: Mon, 12 May 2008 01:02:22 -0700
From: David Brownell <david-b@...bell.net>
To: Marcin Slusarz <marcin.slusarz@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...e.de>, linux-usb@...r.kernel.org
Subject: Re: drivers/usb/misc/usbtest.c weirdness
On Sunday 11 May 2008, Marcin Slusarz wrote:
>
> test_ctrl_queue expects (?) positive and negative errnos.
> what is going on here?
The sign is just a way to flag something:
/* some faults are allowed, not required */
The negative ones are required. Positive codes are optional,
in the sense that, depending on how the peripheral happens
to be implemented, they won't necessarily be triggered.
For example, the test to fetch a device qualifier desriptor
must succeed if the device is running at high speed. So that
test is marked as negative. But when it's full speed, it
could legitimately fail; marked as positive. And so on for
other tests.
Look at how the codes are *interpreted* to see it work.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists