All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] airspy: increase USB control message buffer size
@ 2015-11-07 12:22 Antti Palosaari
  0 siblings, 0 replies; only message in thread
From: Antti Palosaari @ 2015-11-07 12:22 UTC (permalink / raw)
  To: linux-media; +Cc: Antti Palosaari

Driver requested device firmware version string during probe using
only 24 byte long buffer. That buffer is too small for newer firmware
versions, which causes device firmware hang - device stops responding
to any commands after that. Increase buffer size to 128 which should
be enough for any current and future version strings.

Cc: <stable@vger.kernel.org> # 3.17+
Link: https://github.com/airspy/host/issues/27
Reported-by: Benjamin Vernoux <bvernoux@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
---
 drivers/media/usb/airspy/airspy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c
index fcbb497..565a593 100644
--- a/drivers/media/usb/airspy/airspy.c
+++ b/drivers/media/usb/airspy/airspy.c
@@ -134,7 +134,7 @@ struct airspy {
 	int            urbs_submitted;
 
 	/* USB control message buffer */
-	#define BUF_SIZE 24
+	#define BUF_SIZE 128
 	u8 buf[BUF_SIZE];
 
 	/* Current configuration */
-- 
http://palosaari.fi/


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-07 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 12:22 [PATCH] airspy: increase USB control message buffer size Antti Palosaari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.