From f4c4ceb94b1048adb65b5938741887848b17c24e Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 21 May 2009 17:39:21 +0000 Subject: Improve device mode (gadget) stall handling. Some hardware easily comes out of sync with regard to whether the current or the next control transfer should be stalled, if a stall command is always issued before receiving the SETUP packet. After this patch the stall command will only be issued when a transfer should actually be stalled. Submitted by: Hans Petter Selasky --- sys/dev/usb/controller/atmegadci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/usb/controller/atmegadci.h') diff --git a/sys/dev/usb/controller/atmegadci.h b/sys/dev/usb/controller/atmegadci.h index cd4b4f1..8f5a538 100644 --- a/sys/dev/usb/controller/atmegadci.h +++ b/sys/dev/usb/controller/atmegadci.h @@ -222,6 +222,7 @@ struct atmegadci_std_temp { * short_pkt = 1: transfer should not be short terminated */ uint8_t setup_alt_next; + uint8_t did_stall; }; struct atmegadci_config_desc { -- cgit v1.1