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
15751f2e
Commit
15751f2e
authored
Jun 02, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/core' into spi-next
parents
03689d2d
80874d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
drivers/spi/spi.c
drivers/spi/spi.c
+9
-11
No files found.
drivers/spi/spi.c
View file @
15751f2e
...
...
@@ -796,7 +796,7 @@ static int spi_transfer_one_message(struct spi_master *master,
if
(
ret
>
0
)
{
ret
=
0
;
ms
=
xfer
->
len
*
8
*
1000
/
xfer
->
speed_hz
;
ms
+=
1
0
;
/* some tolerance */
ms
+=
ms
+
10
0
;
/* some tolerance */
ms
=
wait_for_completion_timeout
(
&
master
->
xfer_completion
,
msecs_to_jiffies
(
ms
));
...
...
@@ -1268,11 +1268,10 @@ static void of_register_spi_devices(struct spi_master *master)
spi
->
mode
|=
SPI_TX_QUAD
;
break
;
default:
dev_err
(
&
master
->
dev
,
"spi-tx-bus-width %d not supported
\n
"
,
value
);
spi_dev_put
(
spi
);
continue
;
dev_warn
(
&
master
->
dev
,
"spi-tx-bus-width %d not supported
\n
"
,
value
);
break
;
}
}
...
...
@@ -1287,11 +1286,10 @@ static void of_register_spi_devices(struct spi_master *master)
spi
->
mode
|=
SPI_RX_QUAD
;
break
;
default:
dev_err
(
&
master
->
dev
,
"spi-rx-bus-width %d not supported
\n
"
,
value
);
spi_dev_put
(
spi
);
continue
;
dev_warn
(
&
master
->
dev
,
"spi-rx-bus-width %d not supported
\n
"
,
value
);
break
;
}
}
...
...
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