summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/hdm-dim2
diff options
context:
space:
mode:
authorChristian Gromm2015-09-28 17:18:40 +0200
committerGreg Kroah-Hartman2015-09-29 03:18:50 +0200
commitc31d9d12ef5b6937d8399fa9ede2bb11dc225363 (patch)
tree0a6b549bb021e1b483768cf0480a74703b71b016 /drivers/staging/most/hdm-dim2
parentstaging: most: remove macro cpu_to_le16 (diff)
downloadkernel-qcow2-linux-c31d9d12ef5b6937d8399fa9ede2bb11dc225363.tar.gz
kernel-qcow2-linux-c31d9d12ef5b6937d8399fa9ede2bb11dc225363.tar.xz
kernel-qcow2-linux-c31d9d12ef5b6937d8399fa9ede2bb11dc225363.zip
staging: most: fix buffer size for DIM2
This patch reduces the DBR buffer size to prevent an overflow in the DIM2 module. It is needed, because the MediaLB hardware has problems with DBR buffers that exceed the size of 255 messages. Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/hdm-dim2')
-rw-r--r--drivers/staging/most/hdm-dim2/dim2_hal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/hdm-dim2/dim2_hal.c b/drivers/staging/most/hdm-dim2/dim2_hal.c
index e334206e2eb0..0e548301e3bc 100644
--- a/drivers/staging/most/hdm-dim2/dim2_hal.c
+++ b/drivers/staging/most/hdm-dim2/dim2_hal.c
@@ -766,14 +766,14 @@ u8 DIM_InitControl(struct dim_channel *ch, u8 is_tx, u16 ch_address,
u16 max_buffer_size)
{
return init_ctrl_async(ch, CAT_CT_VAL_CONTROL, is_tx, ch_address,
- max_buffer_size * 2);
+ max_buffer_size);
}
u8 DIM_InitAsync(struct dim_channel *ch, u8 is_tx, u16 ch_address,
u16 max_buffer_size)
{
return init_ctrl_async(ch, CAT_CT_VAL_ASYNC, is_tx, ch_address,
- max_buffer_size * 2);
+ max_buffer_size);
}
u8 DIM_InitIsoc(struct dim_channel *ch, u8 is_tx, u16 ch_address,