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
341e6df6
Commit
341e6df6
authored
Jan 23, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'spi/fix/rcar' into spi-linus
parents
8aeab58e
df900e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/spi/spi-rspi.c
drivers/spi/spi-rspi.c
+4
-3
No files found.
drivers/spi/spi-rspi.c
View file @
341e6df6
...
...
@@ -548,7 +548,7 @@ static void rspi_receive_init(const struct rspi_data *rspi)
rspi_read16
(
rspi
,
RSPI_SPDR
);
/* dummy read */
if
(
spsr
&
SPSR_OVRF
)
rspi_write8
(
rspi
,
rspi_read8
(
rspi
,
RSPI_SPSR
)
&
~
SPSR_OVRF
,
RSPI_SP
C
R
);
RSPI_SP
S
R
);
}
static
int
rspi_receive_pio
(
struct
rspi_data
*
rspi
,
struct
spi_message
*
mesg
,
...
...
@@ -984,8 +984,9 @@ static int rspi_probe(struct platform_device *pdev)
INIT_WORK
(
&
rspi
->
ws
,
rspi_work
);
init_waitqueue_head
(
&
rspi
->
wait
);
master
->
num_chipselect
=
rspi_pd
->
num_chipselect
;
if
(
!
master
->
num_chipselect
)
if
(
rspi_pd
&&
rspi_pd
->
num_chipselect
)
master
->
num_chipselect
=
rspi_pd
->
num_chipselect
;
else
master
->
num_chipselect
=
2
;
/* default */
master
->
bus_num
=
pdev
->
id
;
...
...
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