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
3e00803a
Commit
3e00803a
authored
Mar 06, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/err' of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
into spi-dw
parents
0b2e8915
b716c4ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
drivers/spi/spi.c
drivers/spi/spi.c
+3
-0
include/linux/spi/spi.h
include/linux/spi/spi.h
+4
-0
No files found.
drivers/spi/spi.c
View file @
3e00803a
...
...
@@ -851,6 +851,9 @@ static int spi_transfer_one_message(struct spi_master *master,
if
(
msg
->
status
==
-
EINPROGRESS
)
msg
->
status
=
ret
;
if
(
msg
->
status
)
master
->
handle_err
(
master
,
msg
);
spi_finalize_current_message
(
master
);
return
ret
;
...
...
include/linux/spi/spi.h
View file @
3e00803a
...
...
@@ -294,6 +294,8 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
* transfer_one_message are mutually exclusive; when both
* are set, the generic subsystem does not call your
* transfer_one callback.
* @handle_err: the subsystem calls the driver to handle and error that occurs
* in the generic implementation of transfer_one_message().
* @unprepare_message: undo any work done by prepare_message().
* @cs_gpios: Array of GPIOs to use as chip select lines; one per CS
* number. Any individual value may be -ENOENT for CS lines that
...
...
@@ -448,6 +450,8 @@ struct spi_master {
void
(
*
set_cs
)(
struct
spi_device
*
spi
,
bool
enable
);
int
(
*
transfer_one
)(
struct
spi_master
*
master
,
struct
spi_device
*
spi
,
struct
spi_transfer
*
transfer
);
void
(
*
handle_err
)(
struct
spi_master
*
master
,
struct
spi_message
*
message
);
/* gpio chip select */
int
*
cs_gpios
;
...
...
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