aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2013-11-07 16:49:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 13:55:47 -0500
commit368289b373137db191a35ed9e6865e42ff7d0263 (patch)
treec5667882b8de78eb4125a1e42fdb6370d8956ae7 /drivers/staging
parent6871b98011fd07991f9259c9be339b1bde34d527 (diff)
staging: vt6656: [BUG] Fix for TX USB resets from vendors driver.
commit 9df682927c2e3a92f43803d6b52095992e3b2ab8 upstream. This fixes resets on heavy TX data traffic. Vendor driver VT6656_Linux_src_v1.21.03_x86_11.04.zip http://www.viaembedded.com/servlet/downloadSvl?id=1890&download_file_id=14704 This is GPL-licensed code. original code BBbVT3184Init ... //2007-0725, RobertChang add, Enable Squelch detect reset option(SQ_RST_Opt), USB (register4, bit1) CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ, (WORD)0x600+4, // USB's Reg4's bit1 MESSAGE_REQUEST_MEM, 1, (PBYTE) &byData); byData = byData|2 ; CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_WRITE, (WORD)0x600+4, // USB's Reg4's bit1 MESSAGE_REQUEST_MEM, 1, (PBYTE) &byData); return TRUE;//ntStatus; .... A back port patch is needed for kernels less than 3.10. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vt6656/baseband.c11
-rw-r--r--drivers/staging/vt6656/rndis.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 33fa76759bf1..3ff1126c9a53 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -941,6 +941,7 @@ int BBbVT3184Init(struct vnt_private *pDevice)
941 u8 * pbyAgc; 941 u8 * pbyAgc;
942 u16 wLengthAgc; 942 u16 wLengthAgc;
943 u8 abyArray[256]; 943 u8 abyArray[256];
944 u8 data;
944 945
945 ntStatus = CONTROLnsRequestIn(pDevice, 946 ntStatus = CONTROLnsRequestIn(pDevice,
946 MESSAGE_TYPE_READ, 947 MESSAGE_TYPE_READ,
@@ -1106,6 +1107,16 @@ else {
1106 ControlvWriteByte(pDevice,MESSAGE_REQUEST_BBREG,0x0D,0x01); 1107 ControlvWriteByte(pDevice,MESSAGE_REQUEST_BBREG,0x0D,0x01);
1107 1108
1108 RFbRFTableDownload(pDevice); 1109 RFbRFTableDownload(pDevice);
1110
1111 /* Fix for TX USB resets from vendors driver */
1112 CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ, USB_REG4,
1113 MESSAGE_REQUEST_MEM, sizeof(data), &data);
1114
1115 data |= 0x2;
1116
1117 CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_WRITE, USB_REG4,
1118 MESSAGE_REQUEST_MEM, sizeof(data), &data);
1119
1109 return true;//ntStatus; 1120 return true;//ntStatus;
1110} 1121}
1111 1122
diff --git a/drivers/staging/vt6656/rndis.h b/drivers/staging/vt6656/rndis.h
index 5e073062017a..5cf5e732a36f 100644
--- a/drivers/staging/vt6656/rndis.h
+++ b/drivers/staging/vt6656/rndis.h
@@ -66,6 +66,8 @@
66 66
67#define VIAUSB20_PACKET_HEADER 0x04 67#define VIAUSB20_PACKET_HEADER 0x04
68 68
69#define USB_REG4 0x604
70
69typedef struct _CMD_MESSAGE 71typedef struct _CMD_MESSAGE
70{ 72{
71 u8 byData[256]; 73 u8 byData[256];