mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
OMAP: DSS2: DSI: fix VC channels in send_short and send_null
- dsi_vc_send_short() needs to use dest_per for the peripheral id - dsi_vc_send_null() was always using channel id 0 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
parent
6b7b284958
commit
397bb3c2e0
1 changed files with 2 additions and 2 deletions
|
@ -1999,7 +1999,7 @@ static int dsi_vc_send_short(int channel, u8 data_type, u16 data, u8 ecc)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
data_id = data_type | channel << 6;
|
||||
data_id = data_type | dsi.vc[channel].dest_per << 6;
|
||||
|
||||
r = (data_id << 0) | (data << 8) | (ecc << 24);
|
||||
|
||||
|
@ -2011,7 +2011,7 @@ static int dsi_vc_send_short(int channel, u8 data_type, u16 data, u8 ecc)
|
|||
int dsi_vc_send_null(int channel)
|
||||
{
|
||||
u8 nullpkg[] = {0, 0, 0, 0};
|
||||
return dsi_vc_send_long(0, DSI_DT_NULL_PACKET, nullpkg, 4, 0);
|
||||
return dsi_vc_send_long(channel, DSI_DT_NULL_PACKET, nullpkg, 4, 0);
|
||||
}
|
||||
EXPORT_SYMBOL(dsi_vc_send_null);
|
||||
|
||||
|
|
Loading…
Reference in a new issue