From a36e55b754325181b5616ba8fc60c7ac552ecd57 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 21 Jun 2013 17:39:26 +1000 Subject: [PATCH] Set the avalon preferred packet size to 512. --- driver-avalon.c | 1 + driver-avalon.h | 1 + 2 files changed, 2 insertions(+) diff --git a/driver-avalon.c b/driver-avalon.c index 1e71bbc2..f2ab833d 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -594,6 +594,7 @@ static bool avalon_detect_one(libusb_device *dev, struct usb_find_devices *found /* Even though this is an FTDI type chip, we want to do the parsing * all ourselves so set it to std usb type */ avalon->usbdev->usb_type = USB_TYPE_STD; + avalon->usbdev->PrefPacketSize = AVALON_USB_PACKETSIZE; /* We have a real Avalon! */ avalon_initialise(avalon); diff --git a/driver-avalon.h b/driver-avalon.h index 44a1ce88..844aa385 100644 --- a/driver-avalon.h +++ b/driver-avalon.h @@ -32,6 +32,7 @@ #define AVALON_DEFAULT_ASIC_NUM 0xA #define AVALON_FTDI_READSIZE 510 +#define AVALON_USB_PACKETSIZE 512 #define AVALON_READBUF_SIZE 8192 #define AVALON_RESET_TIMEOUT 100 #define AVALON_READ_TIMEOUT 18 /* Enough to only half fill the buffer */