Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
L
linux-emcraft
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Kuzmenko
linux-emcraft
Commits
1effca2c
Commit
1effca2c
authored
Dec 14, 2018
by
Guido Gunther
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nwl-dsi: Detect tx transmit timeouts and fifo overflows
Signed-off-by:
Guido Günther
<
guido.gunther@puri.sm
>
parent
9b11c33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
drivers/gpu/drm/bridge/nwl-dsi.c
drivers/gpu/drm/bridge/nwl-dsi.c
+15
-3
No files found.
drivers/gpu/drm/bridge/nwl-dsi.c
View file @
1effca2c
...
...
@@ -458,8 +458,11 @@ static void nwl_dsi_init_interrupts(struct nwl_mipi_dsi *dsi)
nwl_dsi_write
(
dsi
,
IRQ_MASK
,
0xffffffff
);
nwl_dsi_write
(
dsi
,
IRQ_MASK2
,
0x7
);
irq_enable
=
~
(
u32
)(
TX_PKT_DONE_MASK
|
RX_PKT_HDR_RCVD_MASK
);
irq_enable
=
~
(
u32
)(
TX_PKT_DONE_MASK
|
RX_PKT_HDR_RCVD_MASK
|
TX_FIFO_OVFLW_MASK
|
HS_TX_TIMEOUT_MASK
);
nwl_dsi_write
(
dsi
,
IRQ_MASK
,
irq_enable
);
}
...
...
@@ -735,6 +738,16 @@ static void nwl_dsi_finish_transmission(struct nwl_mipi_dsi *dsi, u32 status)
if
(
!
xfer
)
return
;
if
(
status
&
TX_FIFO_OVFLW
)
{
DRM_DEV_ERROR_RATELIMITED
(
dsi
->
dev
,
"tx fifo overflow"
);
return
;
}
if
(
status
&
HS_TX_TIMEOUT
)
{
DRM_DEV_ERROR_RATELIMITED
(
dsi
->
dev
,
"HS tx timeout"
);
return
;
}
if
(
xfer
->
direction
==
DSI_PACKET_SEND
&&
status
&
TX_PKT_DONE
)
{
xfer
->
status
=
xfer
->
tx_len
;
end_packet
=
true
;
...
...
@@ -758,7 +771,6 @@ static void nwl_dsi_begin_transmission(struct nwl_mipi_dsi *dsi)
u32
val
;
/* Send the payload, if any */
/* TODO: Need to check the TX FIFO overflow */
length
=
pkt
->
payload_length
;
payload
=
pkt
->
payload
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment