From: Antti Palosaari Date: Mon, 26 Oct 2015 20:58:14 +0000 (-0200) Subject: [media] airspy: increase USB control message buffer size X-Git-Tag: MMI-PSA29.97-13-9~8851^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa0850e1d56623845b46350ffd971afa9241886d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] airspy: increase USB control message buffer size 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. Link: https://github.com/airspy/host/issues/27 Cc: # 3.17+ Reported-by: Benjamin Vernoux Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c index fcbb49757614..565a59310747 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 */