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
Kirill Smelkov
linux
Commits
4e72b427
Commit
4e72b427
authored
Nov 06, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'spi/fix/fsl-dspi' and 'spi/fix/pxa2xx' into spi-linus
parents
0df1f248
5cc7b047
2b9375b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
drivers/spi/spi-fsl-dspi.c
drivers/spi/spi-fsl-dspi.c
+2
-2
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.c
+5
-2
No files found.
drivers/spi/spi-fsl-dspi.c
View file @
4e72b427
...
...
@@ -46,7 +46,7 @@
#define SPI_TCR 0x08
#define SPI_CTAR(x) (0x0c + (
x
* 4))
#define SPI_CTAR(x) (0x0c + (
((x) & 0x3)
* 4))
#define SPI_CTAR_FMSZ(x) (((x) & 0x0000000f) << 27)
#define SPI_CTAR_CPOL(x) ((x) << 26)
#define SPI_CTAR_CPHA(x) ((x) << 25)
...
...
@@ -70,7 +70,7 @@
#define SPI_PUSHR 0x34
#define SPI_PUSHR_CONT (1 << 31)
#define SPI_PUSHR_CTAS(x) (((x) & 0x0000000
7
) << 28)
#define SPI_PUSHR_CTAS(x) (((x) & 0x0000000
3
) << 28)
#define SPI_PUSHR_EOQ (1 << 27)
#define SPI_PUSHR_CTCNT (1 << 26)
#define SPI_PUSHR_PCS(x) (((1 << x) & 0x0000003f) << 16)
...
...
drivers/spi/spi-pxa2xx.c
View file @
4e72b427
...
...
@@ -1274,6 +1274,8 @@ static int pxa2xx_spi_suspend(struct device *dev)
if
(
status
!=
0
)
return
status
;
write_SSCR0
(
0
,
drv_data
->
ioaddr
);
if
(
!
pm_runtime_suspended
(
dev
))
clk_disable_unprepare
(
ssp
->
clk
);
return
0
;
...
...
@@ -1288,6 +1290,7 @@ static int pxa2xx_spi_resume(struct device *dev)
pxa2xx_spi_dma_resume
(
drv_data
);
/* Enable the SSP clock */
if
(
!
pm_runtime_suspended
(
dev
))
clk_prepare_enable
(
ssp
->
clk
);
/* Restore LPSS private register bits */
...
...
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