Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
c647594f
Commit
c647594f
authored
Aug 29, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:spi: fix chip select deactivation
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5e21df20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
spi-ocores.c
software/kernel/spi-ocores.c
+15
-3
No files found.
software/kernel/spi-ocores.c
View file @
c647594f
...
...
@@ -517,6 +517,20 @@ static bool spi_ocores_sw_xfer_pending(struct spi_ocores *sp)
return
sp
->
cur_len
;
}
/**
* Finalize message transmission
* @sp: SPI OCORE controller
*/
static
void
spi_ocores_finalize_current_message
(
struct
spi_ocores
*
sp
)
{
unsigned
int
cs
=
sp
->
master
->
cur_msg
->
spi
->
chip_select
;
spi_ocores_hw_xfer_cs
(
sp
,
cs
,
0
);
sp
->
cur_xfer
=
NULL
;
sp
->
master
->
cur_msg
->
status
=
0
;
spi_finalize_current_message
(
sp
->
master
);
}
/**
* Process an SPI transfer
...
...
@@ -550,9 +564,7 @@ static int spi_ocores_process(struct spi_ocores *sp)
err
=
spi_ocores_sw_xfer_next_start
(
sp
);
if
(
err
)
{
/* Error or no more transfers */
sp
->
cur_xfer
=
NULL
;
sp
->
master
->
cur_msg
->
status
=
0
;
spi_finalize_current_message
(
sp
->
master
);
spi_ocores_finalize_current_message
(
sp
);
}
}
...
...
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