diff options
author | Mike Isely <isely@pobox.com> | 2006-08-30 05:07:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 20:58:59 +0200 |
commit | 78aef519ed07797f94cff1d0d66dd01704474916 (patch) | |
tree | a0faf74c0e128badd7e7989d45ca0076459d1627 /.gitignore | |
parent | cypress_m8: improve control endpoint error handling (diff) | |
download | linux-78aef519ed07797f94cff1d0d66dd01704474916.tar.xz linux-78aef519ed07797f94cff1d0d66dd01704474916.zip |
cypress_m8: implement graceful failure handling
When receiving a fatal error from the USB core, e.g. EILSEQ (which can
happen if the polling interval is too short), fail gracefully.
Previously the driver would fill the log with useless error messages
or (more alarmingly) silently spin forever trying to write updated
control information to the device. This change implements a new flag
which if cleared indicates that the driver has failed. The flag will
be set on initialization, cleared on fatal errors, and anything else
that touches the USB port in the driver will abort if the flag is
clear. When the flag is cleared, a message will be logged indicating
that the driver has failed.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions