Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
canbus
CTU CAN FD IP Core
Commits
5e805bb5
Commit
5e805bb5
authored
Sep 19, 2021
by
Pavel Pisa
Browse files
driver: received extended frame has to be marked by CAN_EFF_FLAG.
Signed-off-by:
Pavel Pisa
<
pisa@cmp.felk.cvut.cz
>
parent
277bc91d
Pipeline
#38995
failed with stage
in 1 minute and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
driver/ctucanfd_base.c
View file @
5e805bb5
...
...
@@ -682,7 +682,11 @@ static void ctucan_read_rx_frame(struct ctucan_priv *priv, struct canfd_frame *c
unsigned
int
len
;
idw
=
ctucan_read32
(
priv
,
CTUCANFD_RX_DATA
);
cf
->
can_id
=
(
FIELD_GET
(
REG_FRAME_FORMAT_W_IDE
,
ffw
))
?
idw
:
((
idw
>>
18
)
&
CAN_SFF_MASK
);
if
(
FIELD_GET
(
REG_FRAME_FORMAT_W_IDE
,
ffw
))
{
cf
->
can_id
=
(
idw
&
CAN_EFF_MASK
)
|
CAN_EFF_FLAG
;
}
else
{
cf
->
can_id
=
(
idw
>>
18
)
&
CAN_SFF_MASK
;
}
/* BRS, ESI, RTR Flags */
cf
->
flags
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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