aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/vt6656/baseband.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2019-12-20 21:15:24 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-03 11:46:57 +0100
commit69cc1f925e1aa74b96e2ace67e3453a50d091d2f (patch)
tree61b4eba9b3108e9ca19f2a1266211902abe130b3 /drivers/staging/vt6656/baseband.c
parentstaging: vt6656: correct return of vnt_init_registers. (diff)
downloadwireguard-linux-69cc1f925e1aa74b96e2ace67e3453a50d091d2f.tar.xz
wireguard-linux-69cc1f925e1aa74b96e2ace67e3453a50d091d2f.zip
staging: vt6656: limit reg output to block size
vnt_control_out appears to fail when BBREG is greater than 64 writes. Create new function that will relay an array in no larger than the indicated block size. It appears that this command has always failed but was ignored by driver until the introduction of error checking. Cc: stable <stable@vger.kernel.org> # v5.3+ Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Link: https://lore.kernel.org/r/a41f0601-df46-ce6e-ab7c-35e697946e2a@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/baseband.c')
-rw-r--r--drivers/staging/vt6656/baseband.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 8d19ae71e7cc..4e651b698617 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -449,8 +449,8 @@ int vnt_vt3184_init(struct vnt_private *priv)
memcpy(array, addr, length);
- ret = vnt_control_out(priv, MESSAGE_TYPE_WRITE, 0,
- MESSAGE_REQUEST_BBREG, length, array);
+ ret = vnt_control_out_blocks(priv, VNT_REG_BLOCK_SIZE,
+ MESSAGE_REQUEST_BBREG, length, array);
if (ret)
goto end;