Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7a4e28ab
Commit
7a4e28ab
authored
Jan 26, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'spi/fix/imx' and 'spi/fix/sh-msiof' into spi-linus
parents
0c5b9b5d
d593574a
89434c3c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
drivers/spi/spi-imx.c
drivers/spi/spi-imx.c
+13
-2
drivers/spi/spi-sh-msiof.c
drivers/spi/spi-sh-msiof.c
+11
-1
No files found.
drivers/spi/spi-imx.c
View file @
7a4e28ab
...
...
@@ -1668,12 +1668,23 @@ static int spi_imx_remove(struct platform_device *pdev)
{
struct
spi_master
*
master
=
platform_get_drvdata
(
pdev
);
struct
spi_imx_data
*
spi_imx
=
spi_master_get_devdata
(
master
);
int
ret
;
spi_bitbang_stop
(
&
spi_imx
->
bitbang
);
ret
=
clk_enable
(
spi_imx
->
clk_per
);
if
(
ret
)
return
ret
;
ret
=
clk_enable
(
spi_imx
->
clk_ipg
);
if
(
ret
)
{
clk_disable
(
spi_imx
->
clk_per
);
return
ret
;
}
writel
(
0
,
spi_imx
->
base
+
MXC_CSPICTRL
);
clk_unprepare
(
spi_imx
->
clk_ipg
);
clk_unprepare
(
spi_imx
->
clk_per
);
clk_
disable_
unprepare
(
spi_imx
->
clk_ipg
);
clk_
disable_
unprepare
(
spi_imx
->
clk_per
);
spi_imx_sdma_exit
(
spi_imx
);
spi_master_put
(
master
);
...
...
drivers/spi/spi-sh-msiof.c
View file @
7a4e28ab
...
...
@@ -784,10 +784,20 @@ static int sh_msiof_dma_once(struct sh_msiof_spi_priv *p, const void *tx,
goto
stop_dma
;
}
/* wait for tx fifo to be emptied / rx fifo to be filled */
/* wait for tx/rx DMA completion */
ret
=
sh_msiof_wait_for_completion
(
p
);
if
(
ret
)
goto
stop_reset
;
if
(
!
rx
)
{
reinit_completion
(
&
p
->
done
);
sh_msiof_write
(
p
,
IER
,
IER_TEOFE
);
/* wait for tx fifo to be emptied */
ret
=
sh_msiof_wait_for_completion
(
p
);
if
(
ret
)
goto
stop_reset
;
}
/* clear status bits */
sh_msiof_reset_str
(
p
);
...
...
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