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
5b380cb1
Commit
5b380cb1
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/tegra' into spi-next
parents
84b61465
e91d2352
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/spi/spi-tegra114.c
drivers/spi/spi-tegra114.c
+1
-1
drivers/spi/spi-tegra20-sflash.c
drivers/spi/spi-tegra20-sflash.c
+1
-1
drivers/spi/spi-tegra20-slink.c
drivers/spi/spi-tegra20-slink.c
+1
-1
No files found.
drivers/spi/spi-tegra114.c
View file @
5b380cb1
...
...
@@ -267,7 +267,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param(
unsigned
max_len
;
unsigned
total_fifo_words
;
tspi
->
bytes_per_word
=
(
bits_per_word
-
1
)
/
8
+
1
;
tspi
->
bytes_per_word
=
DIV_ROUND_UP
(
bits_per_word
,
8
)
;
if
(
bits_per_word
==
8
||
bits_per_word
==
16
)
{
tspi
->
is_packed
=
1
;
...
...
drivers/spi/spi-tegra20-sflash.c
View file @
5b380cb1
...
...
@@ -173,7 +173,7 @@ static unsigned tegra_sflash_calculate_curr_xfer_param(
unsigned
remain_len
=
t
->
len
-
tsd
->
cur_pos
;
unsigned
max_word
;
tsd
->
bytes_per_word
=
(
t
->
bits_per_word
-
1
)
/
8
+
1
;
tsd
->
bytes_per_word
=
DIV_ROUND_UP
(
t
->
bits_per_word
,
8
)
;
max_word
=
remain_len
/
tsd
->
bytes_per_word
;
if
(
max_word
>
SPI_FIFO_DEPTH
)
max_word
=
SPI_FIFO_DEPTH
;
...
...
drivers/spi/spi-tegra20-slink.c
View file @
5b380cb1
...
...
@@ -283,7 +283,7 @@ static unsigned tegra_slink_calculate_curr_xfer_param(
unsigned
total_fifo_words
;
bits_per_word
=
t
->
bits_per_word
;
tspi
->
bytes_per_word
=
(
bits_per_word
-
1
)
/
8
+
1
;
tspi
->
bytes_per_word
=
DIV_ROUND_UP
(
bits_per_word
,
8
)
;
if
(
bits_per_word
==
8
||
bits_per_word
==
16
)
{
tspi
->
is_packed
=
1
;
...
...
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